win-chart 1.6.2 → 2.0.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/dist/bundle.cjs.js +306 -0
- package/dist/bundle.esm.js +306 -0
- package/dist/bundle.umd.js +306 -0
- package/dist/index.d.ts +111 -0
- package/{esm → dist/types}/components/win-card/components/ChartContent.d.ts +1 -2
- package/{esm/components/win-card-mobile → dist/types/components/win-card}/components/Indicator.d.ts +1 -1
- package/{esm/components/win-card-mobile → dist/types/components/win-card}/components/IndicatorArea.d.ts +1 -1
- package/dist/types/components/win-card/components/IndicatorInfo.d.ts +11 -0
- package/{esm → dist/types}/components/win-chart/index.d.ts +1 -3
- package/{esm → dist/types}/components/win-chart/utils/getAreaSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getBarSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getChartOptions.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getColumnSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getDualSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getFunnelSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getLineSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getPieSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getRadarSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/tool.d.ts +1 -1
- package/{esm → dist/types}/index.d.ts +2 -1
- package/dist/types/services/IndicatorService.d.ts +19 -0
- package/dist/types/services/WorkbenchService.d.ts +17 -0
- package/{esm/components/win-chart/utils/type.d.ts → dist/types/types/index.d.ts} +22 -9
- package/{esm → dist/types}/types/indicator.d.ts +2 -2
- package/{esm → dist/types}/types/interface.d.ts +11 -0
- package/{esm → dist/types}/utils/index.d.ts +0 -3
- package/{esm → dist/types}/utils/map.d.ts +1 -1
- package/{esm → dist/types}/utils/url.d.ts +0 -5
- package/dist/types/utils/util.d.ts +14 -0
- package/package.json +29 -34
- package/esm/api/request.js +0 -89
- package/esm/api/request.js.map +0 -1
- package/esm/components/NoContent.js +0 -70
- package/esm/components/NoContent.js.map +0 -1
- package/esm/components/VisionUserConfigContext.js +0 -4
- package/esm/components/VisionUserConfigContext.js.map +0 -1
- package/esm/components/hover-view.js +0 -27
- package/esm/components/hover-view.js.map +0 -1
- package/esm/components/icon.js +0 -36
- package/esm/components/icon.js.map +0 -1
- package/esm/components/panel-title-tab.js +0 -40
- package/esm/components/panel-title-tab.js.map +0 -1
- package/esm/components/win-card/components/ChartContent.js +0 -45
- package/esm/components/win-card/components/ChartContent.js.map +0 -1
- package/esm/components/win-card/components/Indicator.d.ts +0 -2
- package/esm/components/win-card/components/Indicator.js +0 -40
- package/esm/components/win-card/components/Indicator.js.map +0 -1
- package/esm/components/win-card/components/IndicatorArea.d.ts +0 -2
- package/esm/components/win-card/components/IndicatorArea.js +0 -57
- package/esm/components/win-card/components/IndicatorArea.js.map +0 -1
- package/esm/components/win-card/components/IndicatorInfo.d.ts +0 -14
- package/esm/components/win-card/components/IndicatorInfo.js +0 -67
- package/esm/components/win-card/components/IndicatorInfo.js.map +0 -1
- package/esm/components/win-card/components/MatterContent.js +0 -124
- package/esm/components/win-card/components/MatterContent.js.map +0 -1
- package/esm/components/win-card/components/MatterList.js +0 -115
- package/esm/components/win-card/components/MatterList.js.map +0 -1
- package/esm/components/win-card/components/SelectDecoration.js +0 -43
- package/esm/components/win-card/components/SelectDecoration.js.map +0 -1
- package/esm/components/win-card/components/WinRankContent.js +0 -99
- package/esm/components/win-card/components/WinRankContent.js.map +0 -1
- package/esm/components/win-card/index.js +0 -270
- package/esm/components/win-card/index.js.map +0 -1
- package/esm/components/win-card/utils/interface.d.ts +0 -12
- package/esm/components/win-card/utils/interface.js +0 -1
- package/esm/components/win-card/utils/tool.d.ts +0 -1
- package/esm/components/win-card/utils/tool.js +0 -14
- package/esm/components/win-card/utils/tool.js.map +0 -1
- package/esm/components/win-card-mobile/components/ChartContent.d.ts +0 -8
- package/esm/components/win-card-mobile/components/ChartContent.js +0 -36
- package/esm/components/win-card-mobile/components/ChartContent.js.map +0 -1
- package/esm/components/win-card-mobile/components/DualLineBar.d.ts +0 -2
- package/esm/components/win-card-mobile/components/DualLineBar.js +0 -41
- package/esm/components/win-card-mobile/components/DualLineBar.js.map +0 -1
- package/esm/components/win-card-mobile/components/Indicator.js +0 -40
- package/esm/components/win-card-mobile/components/Indicator.js.map +0 -1
- package/esm/components/win-card-mobile/components/IndicatorArea.js +0 -59
- package/esm/components/win-card-mobile/components/IndicatorArea.js.map +0 -1
- package/esm/components/win-card-mobile/components/IndicatorInfo.d.ts +0 -13
- package/esm/components/win-card-mobile/components/IndicatorInfo.js +0 -72
- package/esm/components/win-card-mobile/components/IndicatorInfo.js.map +0 -1
- package/esm/components/win-card-mobile/components/SelectDecoration.d.ts +0 -9
- package/esm/components/win-card-mobile/components/SelectDecoration.js +0 -33
- package/esm/components/win-card-mobile/components/SelectDecoration.js.map +0 -1
- package/esm/components/win-card-mobile/index.d.ts +0 -7
- package/esm/components/win-card-mobile/index.js +0 -215
- package/esm/components/win-card-mobile/index.js.map +0 -1
- package/esm/components/win-card-mobile/utils/interface.d.ts +0 -10
- package/esm/components/win-card-mobile/utils/interface.js +0 -1
- package/esm/components/win-card-mobile/utils/tool.d.ts +0 -1
- package/esm/components/win-card-mobile/utils/tool.js +0 -8
- package/esm/components/win-chart/components/chart-wrapper.js +0 -14
- package/esm/components/win-chart/components/chart-wrapper.js.map +0 -1
- package/esm/components/win-chart/index.js +0 -61
- package/esm/components/win-chart/index.js.map +0 -1
- package/esm/components/win-chart/theme/win-dark.json +0 -372
- package/esm/components/win-chart/theme/win-light.json +0 -372
- package/esm/components/win-chart/utils/const.js +0 -34
- package/esm/components/win-chart/utils/getAreaSpec.js +0 -149
- package/esm/components/win-chart/utils/getAreaSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getBarSpec.js +0 -66
- package/esm/components/win-chart/utils/getBarSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getChartOptions.js +0 -47
- package/esm/components/win-chart/utils/getChartOptions.js.map +0 -1
- package/esm/components/win-chart/utils/getColumnSpec.js +0 -119
- package/esm/components/win-chart/utils/getColumnSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getDualSpec.js +0 -168
- package/esm/components/win-chart/utils/getDualSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getFunnelSpec.js +0 -66
- package/esm/components/win-chart/utils/getFunnelSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getLineSpec.js +0 -52
- package/esm/components/win-chart/utils/getLineSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getPieSpec.js +0 -126
- package/esm/components/win-chart/utils/getPieSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getRadarSpec.js +0 -88
- package/esm/components/win-chart/utils/getRadarSpec.js.map +0 -1
- package/esm/components/win-chart/utils/tool.js +0 -163
- package/esm/components/win-chart/utils/tool.js.map +0 -1
- package/esm/components/win-chart/utils/type.js +0 -39
- package/esm/components/win-icon/index.js +0 -79
- package/esm/components/win-icon/index.js.map +0 -1
- package/esm/components/win-wrappers/card-wrapper.js +0 -170
- package/esm/components/win-wrappers/card-wrapper.js.map +0 -1
- package/esm/components/win-wrappers/dot-wrapper.js +0 -29
- package/esm/components/win-wrappers/dot-wrapper.js.map +0 -1
- package/esm/components/win-wrappers/iframe-wrapper.js +0 -14
- package/esm/components/win-wrappers/iframe-wrapper.js.map +0 -1
- package/esm/components/win-wrappers/request-wrapper.js +0 -170
- package/esm/components/win-wrappers/request-wrapper.js.map +0 -1
- package/esm/hooks/useCardOptionList.js +0 -58
- package/esm/hooks/useCardOptionList.js.map +0 -1
- package/esm/hooks/useHasIntersected.js +0 -33
- package/esm/hooks/useHasIntersected.js.map +0 -1
- package/esm/index.js +0 -7
- package/esm/index.js.map +0 -1
- package/esm/services/CardService.js +0 -183
- package/esm/services/CardService.js.map +0 -1
- package/esm/services/IndicatorService.d.ts +0 -138
- package/esm/services/IndicatorService.js +0 -732
- package/esm/services/IndicatorService.js.map +0 -1
- package/esm/services/WorkbenchService.d.ts +0 -129
- package/esm/services/WorkbenchService.js +0 -718
- package/esm/services/WorkbenchService.js.map +0 -1
- package/esm/types/enum.js +0 -98
- package/esm/types/index.d.ts +0 -14
- package/esm/types/index.js +0 -9
- package/esm/types/index.js.map +0 -1
- package/esm/types/indicator.js +0 -1
- package/esm/types/interface.js +0 -1
- package/esm/types/portal.js +0 -1
- package/esm/types/report.js +0 -1
- package/esm/types/type.js +0 -1
- package/esm/types/user.js +0 -1
- package/esm/typings.d.ts +0 -1
- package/esm/utils/arms.js +0 -46
- package/esm/utils/arr.js +0 -132
- package/esm/utils/arr.js.map +0 -1
- package/esm/utils/const.js +0 -11
- package/esm/utils/index.js +0 -14
- package/esm/utils/index.js.map +0 -1
- package/esm/utils/init.js +0 -7
- package/esm/utils/init.js.map +0 -1
- package/esm/utils/map.js +0 -509
- package/esm/utils/map.js.map +0 -1
- package/esm/utils/number.d.ts +0 -44
- package/esm/utils/number.js +0 -92
- package/esm/utils/number.js.map +0 -1
- package/esm/utils/str.js +0 -21
- package/esm/utils/tools.d.ts +0 -7
- package/esm/utils/tools.js +0 -35
- package/esm/utils/tools.js.map +0 -1
- package/esm/utils/tree.d.ts +0 -49
- package/esm/utils/tree.js +0 -153
- package/esm/utils/tree.js.map +0 -1
- package/esm/utils/url.js +0 -40
- package/esm/utils/url.js.map +0 -1
- package/esm/utils/util.d.ts +0 -38
- package/esm/utils/util.js +0 -89
- package/esm/utils/util.js.map +0 -1
- /package/{esm → dist/types}/api/request.d.ts +0 -0
- /package/{esm → dist/types}/components/NoContent.d.ts +0 -0
- /package/{esm → dist/types}/components/VisionUserConfigContext.d.ts +0 -0
- /package/{esm → dist/types}/components/hover-view.d.ts +0 -0
- /package/{esm → dist/types}/components/icon.d.ts +0 -0
- /package/{esm → dist/types}/components/panel-title-tab.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/MatterContent.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/MatterList.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/SelectDecoration.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/WinRankContent.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/index.d.ts +0 -0
- /package/{esm → dist/types}/components/win-chart/components/chart-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-chart/utils/const.d.ts +0 -0
- /package/{esm → dist/types}/components/win-icon/index.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/card-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/dot-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/iframe-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/request-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useCardOptionList.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useHasIntersected.d.ts +0 -0
- /package/{esm → dist/types}/services/CardService.d.ts +0 -0
- /package/{esm → dist/types}/types/enum.d.ts +0 -0
- /package/{esm → dist/types}/types/portal.d.ts +0 -0
- /package/{esm → dist/types}/types/report.d.ts +0 -0
- /package/{esm → dist/types}/types/type.d.ts +0 -0
- /package/{esm → dist/types}/types/user.d.ts +0 -0
- /package/{esm → dist/types}/utils/arr.d.ts +0 -0
- /package/{esm → dist/types}/utils/const.d.ts +0 -0
- /package/{esm → dist/types}/utils/init.d.ts +0 -0
- /package/{esm → dist/types}/utils/str.d.ts +0 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("util"),n=require("stream"),i=require("path"),o=require("http"),r=require("https"),a=require("url"),s=require("fs"),l=require("assert"),c=require("tty"),u=require("os"),p=require("zlib"),d=require("events"),h=require("@cainiaofe/cn-ui"),f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,v={exports:{}},y={};var x,b={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/"production"===process.env.NODE_ENV?v.exports=function(){if(m)return y;m=1;var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,i){var s,l={},c=null,u=null;for(s in void 0!==i&&(c=""+i),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:r.current}}return y.Fragment=i,y.jsx=s,y.jsxs=s,y}():v.exports=(x||(x=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];!function(e,t,n){var i=v.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(t+="%s",n=n.concat([i]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var x,_=!1,w=!1,S=!1,C=!1,M=!1;function T(e){return e.displayName||"Context"}function I(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case r:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return T(e)+".Consumer";case s:return T(e._context)+".Provider";case c:return function(e,t,n){var i=e.displayName;if(i)return i;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:I(e.type)||"Memo";case h:var n=e,f=n._payload,g=n._init;try{return I(g(f))}catch(e){return null}}return null}x=Symbol.for("react.module.reference");var A,D,k,E,O,L,N,P=Object.assign,R=0;function z(){}z.__reactDisabledLog=!0;var V,B=v.ReactCurrentDispatcher;function j(e,t,n){if(void 0===V)try{throw Error()}catch(e){var i=e.stack.trim().match(/\n( *(at )?)/);V=i&&i[1]||""}return"\n"+V+e}var F,G=!1,W="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||G)return"";var n,i=F.get(e);if(void 0!==i)return i;G=!0;var o,r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=B.current,B.current=null,function(){if(0===R){A=console.log,D=console.info,k=console.warn,E=console.error,O=console.group,L=console.groupCollapsed,N=console.groupEnd;var e={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}R++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var p="\n"+s[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,p),p}}while(c>=1&&u>=0);break}}}finally{G=!1,B.current=o,function(){if(0==--R){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:A}),info:P({},e,{value:D}),warn:P({},e,{value:k}),error:P({},e,{value:E}),group:P({},e,{value:O}),groupCollapsed:P({},e,{value:L}),groupEnd:P({},e,{value:N})})}R<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=r}var d=e?e.displayName||e.name:"",h=d?j(d):"";return"function"==typeof e&&F.set(e,h),h}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return j(e);switch(e){case u:return j("Suspense");case p:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return H(e.render,!1);case d:return U(e.type,t,n);case h:var i=e,o=i._payload,r=i._init;try{return U(r(o),t,n)}catch(e){}}return""}F=new W;var Y=Object.prototype.hasOwnProperty,q={},X=v.ReactDebugCurrentFrame;function $(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);X.setExtraStackFrame(n)}else X.setExtraStackFrame(null)}var Z=Array.isArray;function K(e){return Z(e)}function J(e){return""+e}function Q(e){if(function(e){try{return J(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var ee,te,ne,ie=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var re=function(e,t,i,o,r,a,s){var l={$$typeof:n,type:e,key:t,ref:i,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,i,o){var r,a={},s=null,l=null;for(r in void 0!==n&&(Q(n),s=""+n),function(e){if(Y.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),s=""+t.key),function(e){if(Y.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ie.current&&t&&ie.current.stateNode!==t){var n=I(ie.current.type);ne[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(ie.current.type),e.ref),ne[n]=!0)}}(t,o)),t)Y.call(t,r)&&!oe.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps){var c=e.defaultProps;for(r in c)void 0===a[r]&&(a[r]=c[r])}if(s||l){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),l&&function(e,t){var n=function(){te||(te=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return re(e,s,l,o,i,ie.current,a)}var se,le=v.ReactCurrentOwner,ce=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(n)}else ce.setExtraStackFrame(null)}function pe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=I(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var he={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!he[n]){he[n]=!0;var i="";e&&e._owner&&e._owner!==le.current&&(i=" It was passed a child from "+I(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),ue(null)}}}function ge(e,t){if("object"==typeof e)if(K(e))for(var n=0;n<e.length;n++){var i=e[n];pe(i)&&fe(i,t)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var r,a=o.call(e);!(r=a.next()).done;)pe(r.value)&&fe(r.value,t)}}function me(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;t=n.propTypes}if(t){var i=I(n);!function(e,t,n,i,o){var r=Function.call.bind(Y);for(var a in e)if(r(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((i||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||($(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,a,typeof s),$(null)),s instanceof Error&&!(s.message in q)&&(q[s.message]=!0,$(o),y("Failed %s type: %s",n,s.message),$(null))}}(t,e.props,"prop",i,e)}else void 0===n.PropTypes||se||(se=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ve(e,t,i,g,m,v){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||M||e===r||e===u||e===p||C||e===f||_||w||S)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===x||void 0!==e.getModuleId)}(e);if(!b){var T="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A,D=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);T+=D||de(),null===e?A="null":K(e)?A="array":void 0!==e&&e.$$typeof===n?(A="<"+(I(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):A=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,T)}var k=ae(e,t,i,m,v);if(null==k)return k;if(b){var E=t.children;if(void 0!==E)if(g)if(K(E)){for(var O=0;O<E.length;O++)ge(E[O],e);Object.freeze&&Object.freeze(E)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if("children"!==i&&"key"!==i){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(k):me(k),k}var ye=function(e,t,n){return ve(e,t,n,!1)},xe=function(e,t,n){return ve(e,t,n,!0)};b.Fragment=o,b.jsx=ye,b.jsxs=xe}()),b);var _=v.exports,w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)};function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function M(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function T(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var I=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,A=T((function(e){return I.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),D="-ms-",k="-moz-",E="-webkit-",O="comm",L="rule",N="decl",P="@import",R="@keyframes",z="@layer",V=Math.abs,B=String.fromCharCode,j=Object.assign;function F(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,n){return e.replace(t,n)}function H(e,t,n){return e.indexOf(t,n)}function U(e,t){return 0|e.charCodeAt(t)}function Y(e,t,n){return e.slice(t,n)}function q(e){return e.length}function X(e){return e.length}function $(e,t){return t.push(e),e}function Z(e,t){return e.filter((function(e){return!G(e,t)}))}var K=1,J=1,Q=0,ee=0,te=0,ne="";function ie(e,t,n,i,o,r,a,s){return{value:e,root:t,parent:n,type:i,props:o,children:r,line:K,column:J,length:a,return:"",siblings:s}}function oe(e,t){return j(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function re(e){for(;e.root;)e=oe(e.root,{children:[e]});$(e,e.siblings)}function ae(){return te=ee>0?U(ne,--ee):0,J--,10===te&&(J=1,K--),te}function se(){return te=ee<Q?U(ne,ee++):0,J++,10===te&&(J=1,K++),te}function le(){return U(ne,ee)}function ce(){return ee}function ue(e,t){return Y(ne,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function de(e){return F(ue(ee-1,ge(91===e?e+2:40===e?e+1:e)))}function he(e){for(;(te=le())&&te<33;)se();return pe(e)>2||pe(te)>3?"":" "}function fe(e,t){for(;--t&&se()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return ue(e,ce()+(t<6&&32==le()&&32==se()))}function ge(e){for(;se();)switch(te){case e:return ee;case 34:case 39:34!==e&&39!==e&&ge(te);break;case 40:41===e&&ge(e);break;case 92:se()}return ee}function me(e,t){for(;se()&&e+te!==57&&(e+te!==84||47!==le()););return"/*"+ue(t,ee-1)+"*"+B(47===e?e:se())}function ve(e){for(;!pe(le());)se();return ue(e,ee)}function ye(e){return function(e){return ne="",e}(xe("",null,null,null,[""],e=function(e){return K=J=1,Q=q(ne=e),ee=0,[]}(e),0,[0],e))}function xe(e,t,n,i,o,r,a,s,l){for(var c=0,u=0,p=a,d=0,h=0,f=0,g=1,m=1,v=1,y=0,x="",b=o,_=r,w=i,S=x;m;)switch(f=y,y=se()){case 40:if(108!=f&&58==U(S,p-1)){-1!=H(S+=W(de(y),"&","&\f"),"&\f",V(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=de(y);break;case 9:case 10:case 13:case 32:S+=he(f);break;case 92:S+=fe(ce()-1,7);continue;case 47:switch(le()){case 42:case 47:$(_e(me(se(),ce()),t,n,l),l);break;default:S+="/"}break;case 123*g:s[c++]=q(S)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==v&&(S=W(S,/\f/g,"")),h>0&&q(S)-p&&$(h>32?we(S+";",i,n,p-1,l):we(W(S," ","")+";",i,n,p-2,l),l);break;case 59:S+=";";default:if($(w=be(S,t,n,c,u,o,s,x,b=[],_=[],p,r),r),123===y)if(0===u)xe(S,t,w,w,b,r,p,s,_);else switch(99===d&&110===U(S,3)?100:d){case 100:case 108:case 109:case 115:xe(e,w,w,i&&$(be(e,w,w,0,0,o,s,x,o,b=[],p,_),_),o,_,p,s,i?b:_);break;default:xe(S,w,w,w,[""],_,0,s,_)}}c=u=h=0,g=v=1,x=S="",p=a;break;case 58:p=1+q(S),h=f;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==ae())continue;switch(S+=B(y),y*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(q(S)-1)*v,v=1;break;case 64:45===le()&&(S+=de(se())),d=le(),u=p=q(x=S+=ve(ce())),y++;break;case 45:45===f&&2==q(S)&&(g=0)}}return r}function be(e,t,n,i,o,r,a,s,l,c,u,p){for(var d=o-1,h=0===o?r:[""],f=X(h),g=0,m=0,v=0;g<i;++g)for(var y=0,x=Y(e,d+1,d=V(m=a[g])),b=e;y<f;++y)(b=F(m>0?h[y]+" "+x:W(x,/&\f/g,h[y])))&&(l[v++]=b);return ie(e,t,n,0===o?L:s,l,c,u,p)}function _e(e,t,n,i){return ie(e,t,n,O,B(te),Y(e,2,-2),0,i)}function we(e,t,n,i,o){return ie(e,t,n,N,Y(e,0,i),Y(e,i+1,-1),i,o)}function Se(e,t,n){switch(function(e,t){return 45^U(e,0)?(((t<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 4789:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+k+e+D+e+e;case 5936:switch(U(e,t+11)){case 114:return E+e+D+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+D+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+D+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return E+e+D+e+e;case 6165:return E+e+D+"flex-"+e+e;case 5187:return E+e+W(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return E+e+D+"flex-item-"+W(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":D+"grid-row-"+W(e,/flex-|-self/g,""))+e;case 4675:return E+e+D+"flex-line-pack"+W(e,/align-content|flex-|-self/g,"")+e;case 5548:return E+e+D+W(e,"shrink","negative")+e;case 5292:return E+e+D+W(e,"basis","preferred-size")+e;case 6060:return E+"box-"+W(e,"-grow","")+E+e+D+W(e,"grow","positive")+e;case 4554:return E+W(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4200:if(!G(e,/flex-|baseline/))return D+"grid-column-align"+Y(e,t)+e;break;case 2592:case 3360:return D+W(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,G(e.props,/grid-\w+-end/)}))?~H(e+(n=n[t].value),"span",0)?e:D+W(e,"-start","")+e+D+"grid-row-span:"+(~H(n,"span",0)?G(n,/\d+/):+G(n,/\d+/)-+G(e,/\d+/))+";":D+W(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return G(e.props,/grid-\w+-start/)}))?e:D+W(W(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(U(e,t+1)){case 109:if(45!==U(e,t+4))break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+k+(108==U(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch",0)?Se(W(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return W(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,i,o,r,a,s){return D+n+":"+i+s+(o?D+n+"-span:"+(r?a:+a-+i)+s:"")+e}));case 4949:if(121===U(e,t+6))return W(e,":",":"+E)+e;break;case 6444:switch(U(e,45===U(e,14)?18:11)){case 120:return W(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+E+(45===U(e,14)?"inline-":"")+"box$3$1"+E+"$2$3$1"+D+"$2box$3")+e;case 100:return W(e,":",":"+D)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return W(e,"scroll-","scroll-snap-")+e}return e}function Ce(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function Me(e,t,n,i){switch(e.type){case z:if(e.children.length)break;case P:case N:return e.return=e.return||e.value;case O:return"";case R:return e.return=e.value+"{"+Ce(e.children,i)+"}";case L:if(!q(e.value=e.props.join(",")))return""}return q(n=Ce(e.children,i))?e.return=e.value+"{"+n+"}":""}function Te(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case N:return void(e.return=Se(e.value,e.length,n));case R:return Ce([oe(e,{value:W(e.value,"@","@"+E)})],i);case L:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(G(t,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":re(oe(e,{props:[W(t,/:(read-\w+)/,":"+k+"$1")]})),re(oe(e,{props:[t]})),j(e,{props:Z(n,i)});break;case"::placeholder":re(oe(e,{props:[W(t,/:(plac\w+)/,":"+E+"input-$1")]})),re(oe(e,{props:[W(t,/:(plac\w+)/,":"+k+"$1")]})),re(oe(e,{props:[W(t,/:(plac\w+)/,D+"input-$1")]})),re(oe(e,{props:[t]})),j(e,{props:Z(n,i)})}return""}))}}var Ie={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ae="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",De="active",ke="data-styled-version",Ee="6.1.8",Oe="/*!sc*/\n",Le="undefined"!=typeof window&&"HTMLElement"in window,Ne=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Pe=/invalid hook call/i,Re=new Set,ze=function(t,n){if("production"!==process.env.NODE_ENV){var i=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(t).concat(i," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var a=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Pe.test(e)?(a=!1,Re.delete(o)):r.apply(void 0,M([e],t,!1))},e.useRef(),a&&!Re.has(o)&&(console.warn(o),Re.add(o))}catch(e){Pe.test(e.message)&&Re.delete(o)}finally{console.error=r}}},Ve=Object.freeze([]),Be=Object.freeze({});var je=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Fe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ge=/(^-|-$)/g;function We(e){return e.replace(Fe,"-").replace(Ge,"")}var He=/(a)(d)/gi,Ue=52,Ye=function(e){return String.fromCharCode(e+(e>25?39:97))};function qe(e){var t,n="";for(t=Math.abs(e);t>Ue;t=t/Ue|0)n=Ye(t%Ue)+n;return(Ye(t%Ue)+n).replace(He,"$1-$2")}var Xe,$e=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ze=function(e){return $e(5381,e)};function Ke(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Je(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Qe="function"==typeof Symbol&&Symbol.for,et=Qe?Symbol.for("react.memo"):60115,tt=Qe?Symbol.for("react.forward_ref"):60112,nt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},it={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ot={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt=((Xe={})[tt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xe[et]=ot,Xe);function at(e){return("type"in(t=e)&&t.type.$$typeof)===et?ot:"$$typeof"in e?rt[e.$$typeof]:nt;var t}var st=Object.defineProperty,lt=Object.getOwnPropertyNames,ct=Object.getOwnPropertySymbols,ut=Object.getOwnPropertyDescriptor,pt=Object.getPrototypeOf,dt=Object.prototype;function ht(e,t,n){if("string"!=typeof t){if(dt){var i=pt(t);i&&i!==dt&&ht(e,i,n)}var o=lt(t);ct&&(o=o.concat(ct(t)));for(var r=at(e),a=at(t),s=0;s<o.length;++s){var l=o[s];if(!(l in it||n&&n[l]||a&&l in a||r&&l in r)){var c=ut(t,l);try{st(e,l,c)}catch(e){}}}}return e}function ft(e){return"function"==typeof e}function gt(e){return"object"==typeof e&&"styledComponentId"in e}function mt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function vt(e,t){if(0===e.length)return"";for(var n=e[0],i=1;i<e.length;i++)n+=t?t+e[i]:e[i];return n}function yt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xt(e,t,n){if(void 0===n&&(n=!1),!n&&!yt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=xt(e[i],t[i]);else if(yt(t))for(var i in t)e[i]=xt(e[i],t[i]);return e}function bt(e,t){Object.defineProperty(e,"toString",{value:t})}var _t="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,r=e.length;o<r;o+=1)i.push(e[o]);return i.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function St(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(wt.apply(void 0,M([_t[e]],t,!1)).trim())}var Ct=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)if((o<<=1)<0)throw St(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var r=i;r<o;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(e+1),s=(r=0,t.length);r<s;r++)this.tag.insertRule(a,t[r])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,r=i;r<o;r++)t+="".concat(this.tag.getRule(r)).concat(Oe);return t},e}(),Mt=new Map,Tt=new Map,It=1,At=function(e){if(Mt.has(e))return Mt.get(e);for(;Tt.has(It);)It++;var t=It++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw St(16,"".concat(t));return Mt.set(e,t),Tt.set(t,e),t},Dt=function(e,t){It=t+1,Mt.set(e,t),Tt.set(t,e)},kt="style[".concat(Ae,"][").concat(ke,'="').concat(Ee,'"]'),Et=new RegExp("^".concat(Ae,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ot=function(e,t,n){for(var i,o=n.split(","),r=0,a=o.length;r<a;r++)(i=o[r])&&e.registerName(t,i)},Lt=function(e,t){for(var n,i=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Oe),o=[],r=0,a=i.length;r<a;r++){var s=i[r].trim();if(s){var l=s.match(Et);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Dt(u,c),Ot(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};var Nt=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ae,"]")));return t[t.length-1]}(n),r=void 0!==o?o.nextSibling:null;i.setAttribute(Ae,De),i.setAttribute(ke,Ee);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&i.setAttribute("nonce",a),n.insertBefore(i,r),i},Pt=function(){function e(e){this.element=Nt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n<i;n++){var o=t[n];if(o.ownerNode===e)return o}throw St(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Rt=function(){function e(e){this.element=Nt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),zt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Vt=Le,Bt={isServer:!Le,useCSSOMInjection:!Ne},jt=function(){function e(e,t,n){void 0===e&&(e=Be),void 0===t&&(t={});var i=this;this.options=C(C({},Bt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Le&&Vt&&(Vt=!1,function(e){for(var t=document.querySelectorAll(kt),n=0,i=t.length;n<i;n++){var o=t[n];o&&o.getAttribute(Ae)!==De&&(Lt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),bt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,i="",o=function(n){var o=function(e){return Tt.get(e)}(n);if(void 0===o)return"continue";var r=e.names.get(o),a=t.getGroup(n);if(void 0===r||0===a.length)return"continue";var s="".concat(Ae,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==r&&r.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),i+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Oe)},r=0;r<n;r++)o(r);return i}(i)}))}return e.registerId=function(e){return At(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(C(C({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new zt(n):t?new Pt(n):new Rt(n)}(this.options),new Ct(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(At(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(At(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(At(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Ft=/&/g,Gt=/^\s*\/\/.*$/gm;function Wt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Wt(e.children,t)),e}))}var Ht=new jt,Ut=function(e){var t,n,i,o=void 0===e?Be:e,r=o.options,a=void 0===r?Be:r,s=o.plugins,l=void 0===s?Ve:s,c=function(e,i,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===L&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ft,n).replace(i,c))})),a.prefix&&u.push(Te),u.push(Me);var p=function(e,o,r,s){void 0===o&&(o=""),void 0===r&&(r=""),void 0===s&&(s="&"),t=s,n=o,i=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Gt,""),c=ye(r||o?"".concat(r," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=Wt(c,a.namespace));var p,d=[];return Ce(c,function(e){var t=X(e);return function(n,i,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,i,o,r)||"";return a}}(u.concat((p=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&p(e)})))),d};return p.hash=l.length?l.reduce((function(e,t){return t.name||St(15),$e(e,t.name)}),5381).toString():"",p}(),Yt=e.createContext({shouldForwardProp:void 0,styleSheet:Ht,stylis:Ut});function qt(){return e.useContext(Yt)}Yt.Consumer,e.createContext(void 0);var Xt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ut);var i=n.name+t.hash;e.hasNameForId(n.id,i)||e.insertRules(n.id,i,t(n.rules,i,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,bt(this,(function(){throw St(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ut),this.name+e.hash},e}(),$t=function(e){return e>="A"&&e<="Z"};function Zt(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(1===n&&"-"===i&&"-"===e[0])return e;$t(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Kt=function(e){return null==e||!1===e||""===e},Jt=function(e){var t,n,i=[];for(var o in e){var r=e[o];e.hasOwnProperty(o)&&!Kt(r)&&(Array.isArray(r)&&r.isCss||ft(r)?i.push("".concat(Zt(o),":"),r,";"):yt(r)?i.push.apply(i,M(M(["".concat(o," {")],Jt(r),!1),["}"],!1)):i.push("".concat(Zt(o),": ").concat((t=o,null==(n=r)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Ie||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function Qt(e,t,n,i){if(Kt(e))return[];if(gt(e))return[".".concat(e.styledComponentId)];if(ft(e)){if(!ft(r=e)||r.prototype&&r.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Xt||yt(o)||null===o||console.error("".concat(Ke(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Qt(o,t,n,i)}var r;return e instanceof Xt?n?(e.inject(n,i),[e.getName(i)]):[e]:yt(e)?Jt(e):Array.isArray(e)?Array.prototype.concat.apply(Ve,e.map((function(e){return Qt(e,t,n,i)}))):[e.toString()]}var en=Ze(Ee),tn=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ft(n)&&!gt(n))return!1}return!0}(e),this.componentId=t,this.baseHash=$e(en,t),this.baseStyle=n,jt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=mt(i,this.staticRulesId);else{var o=vt(Qt(this.rules,e,t,n)),r=qe($e(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,r)){var a=n(o,".".concat(r),void 0,this.componentId);t.insertRules(this.componentId,r,a)}i=mt(i,r),this.staticRulesId=r}else{for(var s=$e(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(s=$e(s,u));else if(u){var p=vt(Qt(u,e,t,n));s=$e(s,p+c),l+=p}}if(l){var d=qe(s>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),i=mt(i,d)}}return i},e}(),nn=e.createContext(void 0);nn.Consumer;var on={},rn=new Set;function an(t,n,i){var o=gt(t),r=t,a=!Je(t),s=n.attrs,l=void 0===s?Ve:s,c=n.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":We(e);on[n]=(on[n]||0)+1;var i="".concat(n,"-").concat(function(e){return qe(Ze(e)>>>0)}(Ee+n+on[n]));return t?"".concat(t,"-").concat(i):i}(n.displayName,n.parentComponentId):c,p=n.displayName,d=void 0===p?function(e){return Je(e)?"styled.".concat(e):"Styled(".concat(Ke(e),")")}(t):p,h=n.displayName&&n.componentId?"".concat(We(n.displayName),"-").concat(n.componentId):n.componentId||u,f=o&&r.attrs?r.attrs.concat(l).filter(Boolean):l,g=n.shouldForwardProp;if(o&&r.shouldForwardProp){var m=r.shouldForwardProp;if(n.shouldForwardProp){var v=n.shouldForwardProp;g=function(e,t){return m(e,t)&&v(e,t)}}else g=m}var y=new tn(i,h,o?r.componentStyle:void 0);function x(t,n){return function(t,n,i){var o=t.attrs,r=t.componentStyle,a=t.defaultProps,s=t.foldedComponentIds,l=t.styledComponentId,c=t.target,u=e.useContext(nn),p=qt(),d=t.shouldForwardProp||p.shouldForwardProp;"production"!==process.env.NODE_ENV&&e.useDebugValue(l);var h=function(e,t,n){return void 0===n&&(n=Be),e.theme!==n.theme&&e.theme||t||n.theme}(n,u,a)||Be,f=function(e,t,n){for(var i,o=C(C({},t),{className:void 0,theme:n}),r=0;r<e.length;r+=1){var a=ft(i=e[r])?i(o):i;for(var s in a)o[s]="className"===s?mt(o[s],a[s]):"style"===s?C(C({},o[s]),a[s]):a[s]}return t.className&&(o.className=mt(o.className,t.className)),o}(o,n,h),g=f.as||c,m={};for(var v in f)void 0===f[v]||"$"===v[0]||"as"===v||"theme"===v&&f.theme===h||("forwardedAs"===v?m.as=f.forwardedAs:d&&!d(v,g)||(m[v]=f[v],d||"development"!==process.env.NODE_ENV||A(v)||rn.has(v)||!je.has(g)||(rn.add(v),console.warn('styled-components: it looks like an unknown prop "'.concat(v,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var y=function(t,n){var i=qt(),o=t.generateAndInjectStyles(n,i.styleSheet,i.stylis);return"production"!==process.env.NODE_ENV&&e.useDebugValue(o),o}(r,f);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(y);var x=mt(s,l);return y&&(x+=" "+y),f.className&&(x+=" "+f.className),m[Je(g)&&!je.has(g)?"class":"className"]=x,m.ref=i,e.createElement(g,m)}(b,t,n)}x.displayName=d;var b=e.forwardRef(x);return b.attrs=f,b.componentStyle=y,b.displayName=d,b.shouldForwardProp=g,b.foldedComponentIds=o?mt(r.foldedComponentIds,r.styledComponentId):"",b.styledComponentId=h,b.target=o?r.target:t,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,o=t;i<o.length;i++)xt(e,o[i],!0);return e}({},r.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(ze(d,h),b.warnTooManyClasses=function(e,t){var n={},i=!1;return function(o){if(!i&&(n[o]=!0,Object.keys(n).length>=200)){var r=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(r,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),i=!0,n={}}}}(d,h)),bt(b,(function(){return".".concat(b.styledComponentId)})),a&&ht(b,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function sn(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var ln=function(e){return Object.assign(e,{isCss:!0})};function cn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ft(e)||yt(e))return ln(Qt(sn(Ve,M([e],t,!0))));var i=e;return 0===t.length&&1===i.length&&"string"==typeof i[0]?Qt(i):ln(Qt(sn(i,t)))}function un(e,t,n){if(void 0===n&&(n=Be),!t)throw St(1,t);var i=function(i){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return e(t,n,cn.apply(void 0,M([i],o,!1)))};return i.attrs=function(i){return un(e,t,C(C({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i.withConfig=function(i){return un(e,t,C(C({},n),i))},i}var pn=function(e){return un(an,e)},dn=pn;je.forEach((function(e){dn[e]=pn(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var hn="__sc-".concat(Ae,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[hn]||(window[hn]=0),1===window[hn]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[hn]+=1);const fn=dn.div`
|
|
11
|
+
height: 100%;
|
|
12
|
+
`;var gn,mn,vn,yn;!function(e){e.NONE="none",e.ADD="add",e.COPY="copy",e.EDIT="edit",e.VIEW="view",e.DELETE="delete",e.FEEDBACK="feedback",e.REVIEW="review",e.BATCH_ADD="batch_add",e.BATCH_OPERATE="batch_operate",e.AUTHORIZED="authorized"}(gn||(gn={})),function(e){e.INDICATOR="INDICATOR",e.INDICATOR_AREA="INDICATOR_AREA",e.AREA_CHART="AREA_CHART",e.LINE_CHART="LINE_CHART",e.COLUMN_CHART="COLUMN_CHART",e.STACK_COLUMN_CHART="STACK_COLUMN_CHART",e.BAR_CHART="BAR_CHART",e.DUAL_LINE_BAR_CHART="DUAL_LINE_COLUMN_CHART",e.FUNNEL_CHART="FUNNEL_CHART",e.PIE_CHART="PIE_CHART",e.PIE_CHART_RESERVE="PIE_CHART_RESERVE",e.CYCLE_CHART="CYCLE_CHART",e.RADAR_CHART="RADAR_CHART",e.RADAR_CHART_RESERVE="RADAR_CHART_RESERVE",e.CUSTOM_CARD="CUSTOM_CARD"}(mn||(mn={})),function(e){e.PENDING="PENDING",e.CREATE="CREATE",e.COMPLETE="COMPLETE"}(vn||(vn={})),exports.WinChartType=void 0,(yn=exports.WinChartType||(exports.WinChartType={}))[yn.MINI_AREA=0]="MINI_AREA",yn[yn.AREA=1]="AREA",yn[yn.DUAL_LINE_BAR=2]="DUAL_LINE_BAR",yn[yn.STACK_DUAL_LINE_BAR=3]="STACK_DUAL_LINE_BAR",yn[yn.COLUMN=4]="COLUMN",yn[yn.STACK_COLUMN=5]="STACK_COLUMN",yn[yn.LINE=6]="LINE",yn[yn.BAR=7]="BAR",yn[yn.FUNNEL=8]="FUNNEL",yn[yn.PIE=9]="PIE",yn[yn.CYCLE=10]="CYCLE",yn[yn.RADAR=11]="RADAR";const xn=["#3D84FF","#00DCF0","#FCBC26","#00DB75","#BDB8FF","#40B4FF","#FFA101","#90ABE0","#6EE67A","#6B84FF","#FA6B69"],bn={grid:{top:24,left:0,right:12,bottom:32,containLabel:!0},color:xn,legend:{itemWidth:10,itemHeight:10,bottom:0,type:"scroll",icon:"circle"}};function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_n.apply(this,arguments)}function wn(e,t){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wn(e,t)}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Cn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cn=function(){return!!e})()}function Mn(e){var t="function"==typeof Map?new Map:void 0;return Mn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Cn())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var o=new(e.bind.apply(e,i));return n&&wn(o,n.prototype),o}(e,arguments,Sn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),wn(n,e)},Mn(e)}var Tn={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,o=t[0],r=[];for(i=1;i<t.length;i+=1)r.push(t[i]);return r.forEach((function(e){o=o.replace(/%[a-z]/,e)})),o}var An=function(e){var t,n;function i(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];n=e.call(this,In.apply(void 0,[Tn[t]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,wn(t,n),i}(Mn(Error));function Dn(e){return Math.round(255*e)}function kn(e,t,n){return Dn(e)+","+Dn(t)+","+Dn(n)}function En(e,t,n,i){if(void 0===i&&(i=kn),0===t)return i(n,n,n);var o=(e%360+360)%360/60,r=(1-Math.abs(2*n-1))*t,a=r*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=r,l=a):o>=1&&o<2?(s=a,l=r):o>=2&&o<3?(l=r,c=a):o>=3&&o<4?(l=a,c=r):o>=4&&o<5?(s=a,c=r):o>=5&&o<6&&(s=r,c=a);var u=n-r/2;return i(s+u,l+u,c+u)}var On={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Ln=/^#[a-fA-F0-9]{6}$/,Nn=/^#[a-fA-F0-9]{8}$/,Pn=/^#[a-fA-F0-9]{3}$/,Rn=/^#[a-fA-F0-9]{4}$/,zn=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Vn=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Bn=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,jn=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Fn(e){if("string"!=typeof e)throw new An(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return On[t]?"#"+On[t]:e}(e);if(t.match(Ln))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Nn)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Pn))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Rn)){var i=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:i}}var o=zn.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var r=Vn.exec(t.substring(0,50));if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])>1?parseFloat(""+r[4])/100:parseFloat(""+r[4])};var a=Bn.exec(t);if(a){var s="rgb("+En(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=zn.exec(s);if(!l)throw new An(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=jn.exec(t.substring(0,50));if(c){var u="rgb("+En(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",p=zn.exec(u);if(!p)throw new An(4,t,u);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new An(5)}function Gn(e){return function(e){var t,n=e.red/255,i=e.green/255,o=e.blue/255,r=Math.max(n,i,o),a=Math.min(n,i,o),s=(r+a)/2;if(r===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l=r-a,c=s>.5?l/(2-r-a):l/(r+a);switch(r){case n:t=(i-o)/l+(i<o?6:0);break;case i:t=(o-n)/l+2;break;default:t=(n-i)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:s,alpha:e.alpha}:{hue:t,saturation:c,lightness:s}}(Fn(e))}var Wn=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Hn(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Un(e){return Hn(Math.round(255*e))}function Yn(e,t,n){return Wn("#"+Un(e)+Un(t)+Un(n))}function qn(e,t,n){return En(e,t,n,Yn)}function Xn(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Wn("#"+Hn(e)+Hn(t)+Hn(n));if("object"==typeof e&&void 0===t&&void 0===n)return Wn("#"+Hn(e.red)+Hn(e.green)+Hn(e.blue));throw new An(6)}function $n(e,t,n,i){if("string"==typeof e&&"number"==typeof t){var o=Fn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i)return i>=1?Xn(e,t,n):"rgba("+e+","+t+","+n+","+i+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===i)return e.alpha>=1?Xn(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new An(7)}var Zn=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},Kn=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Jn=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},Qn=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function ei(e){if("object"!=typeof e)throw new An(8);if(Kn(e))return $n(e);if(Zn(e))return Xn(e);if(Qn(e))return function(e,t,n,i){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i)return i>=1?qn(e,t,n):"rgba("+En(e,t,n)+","+i+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===i)return e.alpha>=1?qn(e.hue,e.saturation,e.lightness):"rgba("+En(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new An(2)}(e);if(Jn(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return qn(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return qn(e.hue,e.saturation,e.lightness);throw new An(1)}(e);throw new An(8)}function ti(e,t,n){return function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):ti(e,t,i)}}function ni(e){return ti(e,e.length,[])}function ii(e,t,n){return Math.max(e,Math.min(t,n))}ni((function(e,t){if("transparent"===t)return t;var n=Gn(t);return ei(_n({},n,{hue:n.hue+parseFloat(e)}))})),ni((function(e,t){if("transparent"===t)return t;var n=Gn(t);return ei(_n({},n,{lightness:ii(0,1,n.lightness-parseFloat(e))}))})),ni((function(e,t){if("transparent"===t)return t;var n=Gn(t);return ei(_n({},n,{saturation:ii(0,1,n.saturation-parseFloat(e))}))})),ni((function(e,t){if("transparent"===t)return t;var n=Gn(t);return ei(_n({},n,{lightness:ii(0,1,n.lightness+parseFloat(e))}))}));var oi=ni((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var i=Fn(t),o=_n({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),r=Fn(n),a=_n({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),s=o.alpha-a.alpha,l=2*parseFloat(e)-1,c=((l*s==-1?l:l+s)/(1+l*s)+1)/2,u=1-c;return $n({red:Math.floor(o.red*c+a.red*u),green:Math.floor(o.green*c+a.green*u),blue:Math.floor(o.blue*c+a.blue*u),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),ri=oi;ni((function(e,t){if("transparent"===t)return t;var n=Fn(t);return $n(_n({},n,{alpha:ii(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))})),ni((function(e,t){if("transparent"===t)return t;var n=Gn(t);return ei(_n({},n,{saturation:ii(0,1,n.saturation+parseFloat(e))}))})),ni((function(e,t){return"transparent"===t?t:ei(_n({},Gn(t),{hue:parseFloat(e)}))})),ni((function(e,t){return"transparent"===t?t:ei(_n({},Gn(t),{lightness:parseFloat(e)}))})),ni((function(e,t){return"transparent"===t?t:ei(_n({},Gn(t),{saturation:parseFloat(e)}))})),ni((function(e,t){return"transparent"===t?t:ri(parseFloat(e),"rgb(0, 0, 0)",t)})),ni((function(e,t){return"transparent"===t?t:ri(parseFloat(e),"rgb(255, 255, 255)",t)})),ni((function(e,t){if("transparent"===t)return t;var n=Fn(t);return $n(_n({},n,{alpha:ii(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}));var ai=function(e){try{return!!e()}catch(e){return!0}},si=!ai((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),li=si,ci=Function.prototype,ui=ci.call,pi=li&&ci.bind.bind(ui,ui),di=li?pi:function(e){return function(){return ui.apply(e,arguments)}},hi=di,fi=hi({}.toString),gi=hi("".slice),mi=function(e){return gi(fi(e),8,-1)},vi=ai,yi=mi,xi=Object,bi=di("".split),_i=vi((function(){return!xi("z").propertyIsEnumerable(0)}))?function(e){return"String"==yi(e)?bi(e,""):xi(e)}:xi,wi=function(e){return null==e},Si=wi,Ci=TypeError,Mi=function(e){if(Si(e))throw Ci("Can't call method on "+e);return e},Ti=_i,Ii=Mi,Ai=function(e){return Ti(Ii(e))},Di=function(e){return e&&e.Math==Math&&e},ki=Di("object"==typeof globalThis&&globalThis)||Di("object"==typeof window&&window)||Di("object"==typeof self&&self)||Di("object"==typeof f&&f)||function(){return this}()||f||Function("return this")(),Ei={exports:{}},Oi=ki,Li=Object.defineProperty,Ni=function(e,t){try{Li(Oi,e,{value:t,configurable:!0,writable:!0})}catch(n){Oi[e]=t}return t},Pi=Ni,Ri="__core-js_shared__",zi=ki[Ri]||Pi(Ri,{}),Vi=zi;(Ei.exports=function(e,t){return Vi[e]||(Vi[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Bi,ji,Fi=Ei.exports,Gi=Mi,Wi=Object,Hi=function(e){return Wi(Gi(e))},Ui=Hi,Yi=di({}.hasOwnProperty),qi=Object.hasOwn||function(e,t){return Yi(Ui(e),t)},Xi=di,$i=0,Zi=Math.random(),Ki=Xi(1..toString),Ji=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ki(++$i+Zi,36)},Qi=ki,eo="undefined"!=typeof navigator&&String(navigator.userAgent)||"",to=Qi.process,no=Qi.Deno,io=to&&to.versions||no&&no.version,oo=io&&io.v8;oo&&(ji=(Bi=oo.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!ji&&eo&&(!(Bi=eo.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=eo.match(/Chrome\/(\d+)/))&&(ji=+Bi[1]);var ro=ji,ao=ro,so=ai,lo=ki.String,co=!!Object.getOwnPropertySymbols&&!so((function(){var e=Symbol();return!lo(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ao&&ao<41})),uo=co&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,po=Fi,ho=qi,fo=Ji,go=co,mo=uo,vo=ki.Symbol,yo=po("wks"),xo=mo?vo.for||vo:vo&&vo.withoutSetter||fo,bo=function(e){return ho(yo,e)||(yo[e]=go&&ho(vo,e)?vo[e]:xo("Symbol."+e)),yo[e]},_o="object"==typeof document&&document.all,wo={all:_o,IS_HTMLDDA:void 0===_o&&void 0!==_o},So=wo.all,Co=wo.IS_HTMLDDA?function(e){return"function"==typeof e||e===So}:function(e){return"function"==typeof e},Mo=Co,To=wo.all,Io=wo.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Mo(e)||e===To}:function(e){return"object"==typeof e?null!==e:Mo(e)},Ao=Io,Do=String,ko=TypeError,Eo=function(e){if(Ao(e))return e;throw ko(Do(e)+" is not an object")},Oo={},Lo=!ai((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),No=Lo&&ai((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Po={},Ro=Io,zo=ki.document,Vo=Ro(zo)&&Ro(zo.createElement),Bo=function(e){return Vo?zo.createElement(e):{}},jo=Bo,Fo=!Lo&&!ai((function(){return 7!=Object.defineProperty(jo("div"),"a",{get:function(){return 7}}).a})),Go=si,Wo=Function.prototype.call,Ho=Go?Wo.bind(Wo):function(){return Wo.apply(Wo,arguments)},Uo=ki,Yo=Co,qo=function(e,t){return arguments.length<2?(n=Uo[e],Yo(n)?n:void 0):Uo[e]&&Uo[e][t];var n},Xo=di({}.isPrototypeOf),$o=qo,Zo=Co,Ko=Xo,Jo=Object,Qo=uo?function(e){return"symbol"==typeof e}:function(e){var t=$o("Symbol");return Zo(t)&&Ko(t.prototype,Jo(e))},er=String,tr=function(e){try{return er(e)}catch(e){return"Object"}},nr=Co,ir=tr,or=TypeError,rr=function(e){if(nr(e))return e;throw or(ir(e)+" is not a function")},ar=rr,sr=wi,lr=function(e,t){var n=e[t];return sr(n)?void 0:ar(n)},cr=Ho,ur=Co,pr=Io,dr=TypeError,hr=Ho,fr=Io,gr=Qo,mr=lr,vr=function(e,t){var n,i;if("string"===t&&ur(n=e.toString)&&!pr(i=cr(n,e)))return i;if(ur(n=e.valueOf)&&!pr(i=cr(n,e)))return i;if("string"!==t&&ur(n=e.toString)&&!pr(i=cr(n,e)))return i;throw dr("Can't convert object to primitive value")},yr=TypeError,xr=bo("toPrimitive"),br=function(e,t){if(!fr(e)||gr(e))return e;var n,i=mr(e,xr);if(i){if(void 0===t&&(t="default"),n=hr(i,e,t),!fr(n)||gr(n))return n;throw yr("Can't convert object to primitive value")}return void 0===t&&(t="number"),vr(e,t)},_r=Qo,wr=function(e){var t=br(e,"string");return _r(t)?t:t+""},Sr=Lo,Cr=Fo,Mr=No,Tr=Eo,Ir=wr,Ar=TypeError,Dr=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,Er="enumerable",Or="configurable",Lr="writable";Po.f=Sr?Mr?function(e,t,n){if(Tr(e),t=Ir(t),Tr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Lr in n&&!n[Lr]){var i=kr(e,t);i&&i[Lr]&&(e[t]=n.value,n={configurable:Or in n?n[Or]:i[Or],enumerable:Er in n?n[Er]:i[Er],writable:!1})}return Dr(e,t,n)}:Dr:function(e,t,n){if(Tr(e),t=Ir(t),Tr(n),Cr)try{return Dr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ar("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Nr=Math.ceil,Pr=Math.floor,Rr=Math.trunc||function(e){var t=+e;return(t>0?Pr:Nr)(t)},zr=Rr,Vr=function(e){var t=+e;return t!=t||0===t?0:zr(t)},Br=Vr,jr=Math.max,Fr=Math.min,Gr=function(e,t){var n=Br(e);return n<0?jr(n+t,0):Fr(n,t)},Wr=Vr,Hr=Math.min,Ur=function(e){return e>0?Hr(Wr(e),9007199254740991):0},Yr=function(e){return Ur(e.length)},qr=Ai,Xr=Gr,$r=Yr,Zr=function(e){return function(t,n,i){var o,r=qr(t),a=$r(r),s=Xr(i,a);if(e&&n!=n){for(;a>s;)if((o=r[s++])!=o)return!0}else for(;a>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},Kr={includes:Zr(!0),indexOf:Zr(!1)},Jr={},Qr=qi,ea=Ai,ta=Kr.indexOf,na=Jr,ia=di([].push),oa=function(e,t){var n,i=ea(e),o=0,r=[];for(n in i)!Qr(na,n)&&Qr(i,n)&&ia(r,n);for(;t.length>o;)Qr(i,n=t[o++])&&(~ta(r,n)||ia(r,n));return r},ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aa=oa,sa=ra,la=Object.keys||function(e){return aa(e,sa)},ca=Lo,ua=No,pa=Po,da=Eo,ha=Ai,fa=la;Oo.f=ca&&!ua?Object.defineProperties:function(e,t){da(e);for(var n,i=ha(t),o=fa(t),r=o.length,a=0;r>a;)pa.f(e,n=o[a++],i[n]);return e};var ga,ma=qo("document","documentElement"),va=Ji,ya=Fi("keys"),xa=function(e){return ya[e]||(ya[e]=va(e))},ba=Eo,_a=Oo,wa=ra,Sa=Jr,Ca=ma,Ma=Bo,Ta="prototype",Ia="script",Aa=xa("IE_PROTO"),Da=function(){},ka=function(e){return"<"+Ia+">"+e+"</"+Ia+">"},Ea=function(e){e.write(ka("")),e.close();var t=e.parentWindow.Object;return e=null,t},Oa=function(){try{ga=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Oa="undefined"!=typeof document?document.domain&&ga?Ea(ga):(t=Ma("iframe"),n="java"+Ia+":",t.style.display="none",Ca.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(ka("document.F=Object")),e.close(),e.F):Ea(ga);for(var i=wa.length;i--;)delete Oa[Ta][wa[i]];return Oa()};Sa[Aa]=!0;var La=Object.create||function(e,t){var n;return null!==e?(Da[Ta]=ba(e),n=new Da,Da[Ta]=null,n[Aa]=e):n=Oa(),void 0===t?n:_a.f(n,t)},Na=bo,Pa=La,Ra=Po.f,za=Na("unscopables"),Va=Array.prototype;null==Va[za]&&Ra(Va,za,{configurable:!0,value:Pa(null)});var Ba,ja,Fa,Ga=function(e){Va[za][e]=!0},Wa={},Ha=Co,Ua=ki.WeakMap,Ya=Ha(Ua)&&/native code/.test(String(Ua)),qa=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xa=Po,$a=qa,Za=Lo?function(e,t,n){return Xa.f(e,t,$a(1,n))}:function(e,t,n){return e[t]=n,e},Ka=Ya,Ja=ki,Qa=Io,es=Za,ts=qi,ns=zi,is=xa,os=Jr,rs="Object already initialized",as=Ja.TypeError,ss=Ja.WeakMap;if(Ka||ns.state){var ls=ns.state||(ns.state=new ss);ls.get=ls.get,ls.has=ls.has,ls.set=ls.set,Ba=function(e,t){if(ls.has(e))throw as(rs);return t.facade=e,ls.set(e,t),t},ja=function(e){return ls.get(e)||{}},Fa=function(e){return ls.has(e)}}else{var cs=is("state");os[cs]=!0,Ba=function(e,t){if(ts(e,cs))throw as(rs);return t.facade=e,es(e,cs,t),t},ja=function(e){return ts(e,cs)?e[cs]:{}},Fa=function(e){return ts(e,cs)}}var us={set:Ba,get:ja,has:Fa,enforce:function(e){return Fa(e)?ja(e):Ba(e,{})},getterFor:function(e){return function(t){var n;if(!Qa(t)||(n=ja(t)).type!==e)throw as("Incompatible receiver, "+e+" required");return n}}},ps={},ds={},hs={}.propertyIsEnumerable,fs=Object.getOwnPropertyDescriptor,gs=fs&&!hs.call({1:2},1);ds.f=gs?function(e){var t=fs(this,e);return!!t&&t.enumerable}:hs;var ms=Lo,vs=Ho,ys=ds,xs=qa,bs=Ai,_s=wr,ws=qi,Ss=Fo,Cs=Object.getOwnPropertyDescriptor;ps.f=ms?Cs:function(e,t){if(e=bs(e),t=_s(t),Ss)try{return Cs(e,t)}catch(e){}if(ws(e,t))return xs(!vs(ys.f,e,t),e[t])};var Ms={exports:{}},Ts=Lo,Is=qi,As=Function.prototype,Ds=Ts&&Object.getOwnPropertyDescriptor,ks=Is(As,"name"),Es={EXISTS:ks,PROPER:ks&&"something"===function(){}.name,CONFIGURABLE:ks&&(!Ts||Ts&&Ds(As,"name").configurable)},Os=Co,Ls=zi,Ns=di(Function.toString);Os(Ls.inspectSource)||(Ls.inspectSource=function(e){return Ns(e)});var Ps=Ls.inspectSource,Rs=di,zs=ai,Vs=Co,Bs=qi,js=Lo,Fs=Es.CONFIGURABLE,Gs=Ps,Ws=us.enforce,Hs=us.get,Us=String,Ys=Object.defineProperty,qs=Rs("".slice),Xs=Rs("".replace),$s=Rs([].join),Zs=js&&!zs((function(){return 8!==Ys((function(){}),"length",{value:8}).length})),Ks=String(String).split("String"),Js=Ms.exports=function(e,t,n){"Symbol("===qs(Us(t),0,7)&&(t="["+Xs(Us(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Bs(e,"name")||Fs&&e.name!==t)&&(js?Ys(e,"name",{value:t,configurable:!0}):e.name=t),Zs&&n&&Bs(n,"arity")&&e.length!==n.arity&&Ys(e,"length",{value:n.arity});try{n&&Bs(n,"constructor")&&n.constructor?js&&Ys(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=Ws(e);return Bs(i,"source")||(i.source=$s(Ks,"string"==typeof t?t:"")),e};Function.prototype.toString=Js((function(){return Vs(this)&&Hs(this).source||Gs(this)}),"toString");var Qs=Ms.exports,el=Co,tl=Po,nl=Qs,il=Ni,ol=function(e,t,n,i){i||(i={});var o=i.enumerable,r=void 0!==i.name?i.name:t;if(el(n)&&nl(n,r,i),i.global)o?e[t]=n:il(t,n);else{try{i.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:tl.f(e,t,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e},rl={},al=oa,sl=ra.concat("length","prototype");rl.f=Object.getOwnPropertyNames||function(e){return al(e,sl)};var ll={};ll.f=Object.getOwnPropertySymbols;var cl,ul,pl,dl=qo,hl=rl,fl=ll,gl=Eo,ml=di([].concat),vl=dl("Reflect","ownKeys")||function(e){var t=hl.f(gl(e)),n=fl.f;return n?ml(t,n(e)):t},yl=qi,xl=vl,bl=ps,_l=Po,wl=ai,Sl=Co,Cl=/#|\.prototype\./,Ml=function(e,t){var n=Il[Tl(e)];return n==Dl||n!=Al&&(Sl(t)?wl(t):!!t)},Tl=Ml.normalize=function(e){return String(e).replace(Cl,".").toLowerCase()},Il=Ml.data={},Al=Ml.NATIVE="N",Dl=Ml.POLYFILL="P",kl=Ml,El=ki,Ol=ps.f,Ll=Za,Nl=ol,Pl=Ni,Rl=function(e,t,n){for(var i=xl(t),o=_l.f,r=bl.f,a=0;a<i.length;a++){var s=i[a];yl(e,s)||n&&yl(n,s)||o(e,s,r(t,s))}},zl=kl,Vl=function(e,t){var n,i,o,r,a,s=e.target,l=e.global,c=e.stat;if(n=l?El:c?El[s]||Pl(s,{}):(El[s]||{}).prototype)for(i in t){if(r=t[i],o=e.dontCallGetSet?(a=Ol(n,i))&&a.value:n[i],!zl(l?i:s+(c?".":"#")+i,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;Rl(r,o)}(e.sham||o&&o.sham)&&Ll(r,"sham",!0),Nl(n,i,r,e)}},Bl=!ai((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jl=qi,Fl=Co,Gl=Hi,Wl=Bl,Hl=xa("IE_PROTO"),Ul=Object,Yl=Ul.prototype,ql=Wl?Ul.getPrototypeOf:function(e){var t=Gl(e);if(jl(t,Hl))return t[Hl];var n=t.constructor;return Fl(n)&&t instanceof n?n.prototype:t instanceof Ul?Yl:null},Xl=ai,$l=Co,Zl=Io,Kl=ql,Jl=ol,Ql=bo("iterator"),ec=!1;[].keys&&("next"in(pl=[].keys())?(ul=Kl(Kl(pl)))!==Object.prototype&&(cl=ul):ec=!0);var tc=!Zl(cl)||Xl((function(){var e={};return cl[Ql].call(e)!==e}));tc&&(cl={}),$l(cl[Ql])||Jl(cl,Ql,(function(){return this}));var nc={IteratorPrototype:cl,BUGGY_SAFARI_ITERATORS:ec},ic=Po.f,oc=qi,rc=bo("toStringTag"),ac=function(e,t,n){e&&!n&&(e=e.prototype),e&&!oc(e,rc)&&ic(e,rc,{configurable:!0,value:t})},sc=nc.IteratorPrototype,lc=La,cc=qa,uc=ac,pc=Wa,dc=function(){return this},hc=di,fc=rr,gc=Co,mc=String,vc=TypeError,yc=function(e,t,n){try{return hc(fc(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},xc=Eo,bc=function(e){if("object"==typeof e||gc(e))return e;throw vc("Can't set "+mc(e)+" as a prototype")},_c=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=yc(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return xc(n),bc(i),t?e(n,i):n.__proto__=i,n}}():void 0),wc=Vl,Sc=Ho,Cc=Co,Mc=function(e,t,n,i){var o=t+" Iterator";return e.prototype=lc(sc,{next:cc(+!i,n)}),uc(e,o,!1),pc[o]=dc,e},Tc=ql,Ic=_c,Ac=ac,Dc=Za,kc=ol,Ec=Wa,Oc=Es.PROPER,Lc=Es.CONFIGURABLE,Nc=nc.IteratorPrototype,Pc=nc.BUGGY_SAFARI_ITERATORS,Rc=bo("iterator"),zc="keys",Vc="values",Bc="entries",jc=function(){return this},Fc=function(e,t,n,i,o,r,a){Mc(n,t,i);var s,l,c,u=function(e){if(e===o&&g)return g;if(!Pc&&e in h)return h[e];switch(e){case zc:case Vc:case Bc:return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",d=!1,h=e.prototype,f=h[Rc]||h["@@iterator"]||o&&h[o],g=!Pc&&f||u(o),m="Array"==t&&h.entries||f;if(m&&(s=Tc(m.call(new e)))!==Object.prototype&&s.next&&(Tc(s)!==Nc&&(Ic?Ic(s,Nc):Cc(s[Rc])||kc(s,Rc,jc)),Ac(s,p,!0)),Oc&&o==Vc&&f&&f.name!==Vc&&(Lc?Dc(h,"name",Vc):(d=!0,g=function(){return Sc(f,this)})),o)if(l={values:u(Vc),keys:r?g:u(zc),entries:u(Bc)},a)for(c in l)(Pc||d||!(c in h))&&kc(h,c,l[c]);else wc({target:t,proto:!0,forced:Pc||d},l);return h[Rc]!==g&&kc(h,Rc,g,{name:o}),Ec[t]=g,l},Gc=function(e,t){return{value:e,done:t}},Wc=Ai,Hc=Ga,Uc=Wa,Yc=us,qc=Po.f,Xc=Fc,$c=Gc,Zc=Lo,Kc="Array Iterator",Jc=Yc.set,Qc=Yc.getterFor(Kc),eu=Xc(Array,"Array",(function(e,t){Jc(this,{type:Kc,target:Wc(e),index:0,kind:t})}),(function(){var e=Qc(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,$c(void 0,!0)):$c("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values"),tu=Uc.Arguments=Uc.Array;if(Hc("keys"),Hc("values"),Hc("entries"),Zc&&"values"!==tu.name)try{qc(tu,"name",{value:"values"})}catch(bae){}var nu=mi,iu=di,ou=function(e){if("Function"===nu(e))return iu(e)},ru=rr,au=si,su=ou(ou.bind),lu=function(e,t){return ru(e),void 0===t?e:au?su(e,t):function(){return e.apply(t,arguments)}},cu=Wa,uu=bo("iterator"),pu=Array.prototype,du={};du[bo("toStringTag")]="z";var hu="[object z]"===String(du),fu=hu,gu=Co,mu=mi,vu=bo("toStringTag"),yu=Object,xu="Arguments"==mu(function(){return arguments}()),bu=fu?mu:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yu(e),vu))?n:xu?mu(t):"Object"==(i=mu(t))&&gu(t.callee)?"Arguments":i},_u=bu,wu=lr,Su=wi,Cu=Wa,Mu=bo("iterator"),Tu=function(e){if(!Su(e))return wu(e,Mu)||wu(e,"@@iterator")||Cu[_u(e)]},Iu=Ho,Au=rr,Du=Eo,ku=tr,Eu=Tu,Ou=TypeError,Lu=Ho,Nu=Eo,Pu=lr,Ru=lu,zu=Ho,Vu=Eo,Bu=tr,ju=function(e){return void 0!==e&&(cu.Array===e||pu[uu]===e)},Fu=Yr,Gu=Xo,Wu=function(e,t){var n=arguments.length<2?Eu(e):t;if(Au(n))return Du(Iu(n,e));throw Ou(ku(e)+" is not iterable")},Hu=Tu,Uu=function(e,t,n){var i,o;Nu(e);try{if(!(i=Pu(e,"return"))){if("throw"===t)throw n;return n}i=Lu(i,e)}catch(e){o=!0,i=e}if("throw"===t)throw n;if(o)throw i;return Nu(i),n},Yu=TypeError,qu=function(e,t){this.stopped=e,this.result=t},Xu=qu.prototype,$u=function(e,t,n){var i,o,r,a,s,l,c,u=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=Ru(t,u),m=function(e){return i&&Uu(i,"normal",e),new qu(!0,e)},v=function(e){return p?(Vu(e),f?g(e[0],e[1],m):g(e[0],e[1])):f?g(e,m):g(e)};if(d)i=e.iterator;else if(h)i=e;else{if(!(o=Hu(e)))throw Yu(Bu(e)+" is not iterable");if(ju(o)){for(r=0,a=Fu(e);a>r;r++)if((s=v(e[r]))&&Gu(Xu,s))return s;return new qu(!1)}i=Wu(e,o)}for(l=d?e.next:i.next;!(c=zu(l,i)).done;){try{s=v(c.value)}catch(e){Uu(i,"throw",e)}if("object"==typeof s&&s&&Gu(Xu,s))return s}return new qu(!1)},Zu=wr,Ku=Po,Ju=qa,Qu=function(e,t,n){var i=Zu(t);i in e?Ku.f(e,i,Ju(0,n)):e[i]=n},ep=$u,tp=Qu;Vl({target:"Object",stat:!0},{fromEntries:function(e){var t={};return ep(e,(function(e,n){tp(t,e,n)}),{AS_ENTRIES:!0}),t}});var np=ki;np.Object.fromEntries;var ip=Bo("span").classList,op=ip&&ip.constructor&&ip.constructor.prototype,rp=op===Object.prototype?void 0:op,ap=ki,sp={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lp=rp,cp=eu,up=Za,pp=bo,dp=pp("iterator"),hp=pp("toStringTag"),fp=cp.values,gp=function(e,t){if(e){if(e[dp]!==fp)try{up(e,dp,fp)}catch(t){e[dp]=fp}if(e[hp]||up(e,hp,t),sp[t])for(var n in cp)if(e[n]!==cp[n])try{up(e,n,cp[n])}catch(t){e[n]=cp[n]}}};for(var mp in sp)gp(ap[mp]&&ap[mp].prototype,mp);gp(lp,"DOMTokenList");var vp=bu,yp=String,xp=function(e){if("Symbol"===vp(e))throw TypeError("Cannot convert a Symbol value to a string");return yp(e)},bp=function(e,t){return void 0===e?arguments.length<2?"":t:xp(e)},_p=Lo,wp=ai,Sp=Eo,Cp=La,Mp=bp,Tp=Error.prototype.toString,Ip=wp((function(){if(_p){var e=Cp(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==Tp.call(e))return!0}return"2: 1"!==Tp.call({message:1,name:2})||"Error"!==Tp.call({})}))?function(){var e=Sp(this),t=Mp(e.name,"Error"),n=Mp(e.message);return t?n?t+": "+n:t:n}:Tp,Ap=ol,Dp=Ip,kp=Error.prototype;kp.toString!==Dp&&Ap(kp,"toString",Dp);var Ep=Hi,Op=la;Vl({target:"Object",stat:!0,forced:ai((function(){Op(1)}))},{keys:function(e){return Op(Ep(e))}});var Lp=bu,Np=hu?{}.toString:function(){return"[object "+Lp(this)+"]"};hu||ol(Object.prototype,"toString",Np,{unsafe:!0});var Pp={exports:{}},Rp={},zp=Gr,Vp=Yr,Bp=Qu,jp=Array,Fp=Math.max,Gp=mi,Wp=Ai,Hp=rl.f,Up=function(e,t,n){for(var i=Vp(e),o=zp(t,i),r=zp(void 0===n?i:n,i),a=jp(Fp(r-o,0)),s=0;o<r;o++,s++)Bp(a,s,e[o]);return a.length=s,a},Yp="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Rp.f=function(e){return Yp&&"Window"==Gp(e)?function(e){try{return Hp(e)}catch(e){return Up(Yp)}}(e):Hp(Wp(e))};var qp=ai((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Xp=ai,$p=Io,Zp=mi,Kp=qp,Jp=Object.isExtensible,Qp=Xp((function(){Jp(1)}))||Kp?function(e){return!!$p(e)&&((!Kp||"ArrayBuffer"!=Zp(e))&&(!Jp||Jp(e)))}:Jp,ed=!ai((function(){return Object.isExtensible(Object.preventExtensions({}))})),td=Vl,nd=di,id=Jr,od=Io,rd=qi,ad=Po.f,sd=rl,ld=Rp,cd=Qp,ud=ed,pd=!1,dd=Ji("meta"),hd=0,fd=function(e){ad(e,dd,{value:{objectID:"O"+hd++,weakData:{}}})},gd=Pp.exports={enable:function(){gd.enable=function(){},pd=!0;var e=sd.f,t=nd([].splice),n={};n[dd]=1,e(n).length&&(sd.f=function(n){for(var i=e(n),o=0,r=i.length;o<r;o++)if(i[o]===dd){t(i,o,1);break}return i},td({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ld.f}))},fastKey:function(e,t){if(!od(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!rd(e,dd)){if(!cd(e))return"F";if(!t)return"E";fd(e)}return e[dd].objectID},getWeakData:function(e,t){if(!rd(e,dd)){if(!cd(e))return!0;if(!t)return!1;fd(e)}return e[dd].weakData},onFreeze:function(e){return ud&&pd&&cd(e)&&!rd(e,dd)&&fd(e),e}};id[dd]=!0;var md=Pp.exports,vd=Xo,yd=TypeError,xd=function(e,t){if(vd(t,e))return e;throw yd("Incorrect invocation")},bd=bo("iterator"),_d=!1;try{var wd=0,Sd={next:function(){return{done:!!wd++}},return:function(){_d=!0}};Sd[bd]=function(){return this},Array.from(Sd,(function(){throw 2}))}catch(bae){}var Cd=Co,Md=Io,Td=_c,Id=function(e,t,n){var i,o;return Td&&Cd(i=t.constructor)&&i!==n&&Md(o=i.prototype)&&o!==n.prototype&&Td(e,o),e},Ad=Vl,Dd=ki,kd=di,Ed=kl,Od=ol,Ld=md,Nd=$u,Pd=xd,Rd=Co,zd=wi,Vd=Io,Bd=ai,jd=function(e,t){if(!t&&!_d)return!1;var n=!1;try{var i={};i[bd]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},Fd=ac,Gd=Id,Wd=function(e,t,n){var i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),r=i?"set":"add",a=Dd[e],s=a&&a.prototype,l=a,c={},u=function(e){var t=kd(s[e]);Od(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Vd(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Vd(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Vd(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Ed(e,!Rd(a)||!(o||s.forEach&&!Bd((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,i,r),Ld.enable();else if(Ed(e,!0)){var p=new l,d=p[r](o?{}:-0,1)!=p,h=Bd((function(){p.has(1)})),f=jd((function(e){new a(e)})),g=!o&&Bd((function(){for(var e=new a,t=5;t--;)e[r](t,t);return!e.has(-0)}));f||((l=t((function(e,t){Pd(e,s);var n=Gd(new a,e,l);return zd(t)||Nd(t,n[r],{that:n,AS_ENTRIES:i}),n}))).prototype=s,s.constructor=l),(h||g)&&(u("delete"),u("has"),i&&u("get")),(g||d)&&u(r),o&&s.clear&&delete s.clear}return c[e]=l,Ad({global:!0,constructor:!0,forced:l!=a},c),Fd(l,e),o||n.setStrong(l,e,i),l},Hd=Qs,Ud=Po,Yd=function(e,t,n){return n.get&&Hd(n.get,t,{getter:!0}),n.set&&Hd(n.set,t,{setter:!0}),Ud.f(e,t,n)},qd=ol,Xd=qo,$d=Yd,Zd=Lo,Kd=bo("species"),Jd=La,Qd=Yd,eh=function(e,t,n){for(var i in t)qd(e,i,t[i],n);return e},th=lu,nh=xd,ih=wi,oh=$u,rh=Fc,ah=Gc,sh=function(e){var t=Xd(e);Zd&&t&&!t[Kd]&&$d(t,Kd,{configurable:!0,get:function(){return this}})},lh=Lo,ch=md.fastKey,uh=us.set,ph=us.getterFor,dh={getConstructor:function(e,t,n,i){var o=e((function(e,o){nh(e,r),uh(e,{type:t,index:Jd(null),first:void 0,last:void 0,size:0}),lh||(e.size=0),ih(o)||oh(o,e[i],{that:e,AS_ENTRIES:n})})),r=o.prototype,a=ph(t),s=function(e,t,n){var i,o,r=a(e),s=l(e,t);return s?s.value=n:(r.last=s={index:o=ch(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=s),i&&(i.next=s),lh?r.size++:e.size++,"F"!==o&&(r.index[o]=s)),e},l=function(e,t){var n,i=a(e),o=ch(t);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==t)return n};return eh(r,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,lh?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),i=l(t,e);if(i){var o=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==i&&(n.first=o),n.last==i&&(n.last=r),lh?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=a(this),i=th(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),eh(r,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),lh&&Qd(r,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var i=t+" Iterator",o=ph(t),r=ph(i);rh(e,t,(function(e,t){uh(this,{type:i,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=r(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?ah("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,ah(void 0,!0))}),n?"entries":"values",!n,!0),sh(t)}};Wd("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),dh),Wd("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),dh);var hh="undefined"!=typeof process&&"process"==mi(process),fh=hh,gh={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},mh=Error,vh=di("".replace),yh=String(mh("zxcasd").stack),xh=/\n\s*at [^:]*:[^\n]*/,bh=xh.test(yh),_h=function(e,t){if(bh&&"string"==typeof e&&!mh.prepareStackTrace)for(;t--;)e=vh(e,xh,"");return e},wh=Vl,Sh=function(e){try{if(fh)return Function('return require("'+e+'")')()}catch(e){}},Ch=qo,Mh=ai,Th=La,Ih=qa,Ah=Po.f,Dh=ol,kh=Yd,Eh=qi,Oh=xd,Lh=Eo,Nh=Ip,Ph=bp,Rh=gh,zh=_h,Vh=us,Bh=Lo,jh="DOMException",Fh="DATA_CLONE_ERR",Gh=Ch("Error"),Wh=Ch(jh)||function(){try{(new(Ch("MessageChannel")||Sh("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name==Fh&&25==e.code)return e.constructor}}(),Hh=Wh&&Wh.prototype,Uh=Gh.prototype,Yh=Vh.set,qh=Vh.getterFor(jh),Xh="stack"in Gh(jh),$h=function(e){return Eh(Rh,e)&&Rh[e].m?Rh[e].c:0},Zh=function(){Oh(this,Kh);var e=arguments.length,t=Ph(e<1?void 0:arguments[0]),n=Ph(e<2?void 0:arguments[1],"Error"),i=$h(n);if(Yh(this,{type:jh,name:n,message:t,code:i}),Bh||(this.name=n,this.message=t,this.code=i),Xh){var o=Gh(t);o.name=jh,Ah(this,"stack",Ih(1,zh(o.stack,1)))}},Kh=Zh.prototype=Th(Uh),Jh=function(e){return{enumerable:!0,configurable:!0,get:e}},Qh=function(e){return Jh((function(){return qh(this)[e]}))};Bh&&(kh(Kh,"code",Qh("code")),kh(Kh,"message",Qh("message")),kh(Kh,"name",Qh("name"))),Ah(Kh,"constructor",Ih(1,Zh));var ef=Mh((function(){return!(new Wh instanceof Gh)})),tf=ef||Mh((function(){return Uh.toString!==Nh||"2: 1"!==String(new Wh(1,2))})),nf=ef||Mh((function(){return 25!==new Wh(1,"DataCloneError").code}));ef||25!==Wh[Fh]||Hh[Fh];wh({global:!0,constructor:!0,forced:ef},{DOMException:ef?Zh:Wh});var of=Ch(jh),rf=of.prototype;for(var af in tf&&Wh===of&&Dh(rf,"toString",Nh),nf&&Bh&&Wh===of&&kh(rf,"code",Jh((function(){return $h(Lh(this).name)}))),Rh)if(Eh(Rh,af)){var sf=Rh[af],lf=sf.s,cf=Ih(6,sf.c);Eh(of,lf)||Ah(of,lf,cf),Eh(rf,lf)||Ah(rf,lf,cf)}var uf=Vl,pf=ki,df=qo,hf=qa,ff=Po.f,gf=qi,mf=xd,vf=Id,yf=bp,xf=gh,bf=_h,_f=Lo,wf="DOMException",Sf=df("Error"),Cf=df(wf),Mf=function(){mf(this,Tf);var e=arguments.length,t=yf(e<1?void 0:arguments[0]),n=yf(e<2?void 0:arguments[1],"Error"),i=new Cf(t,n),o=Sf(t);return o.name=wf,ff(i,"stack",hf(1,bf(o.stack,1))),vf(i,this,Mf),i},Tf=Mf.prototype=Cf.prototype,If="stack"in Sf(wf),Af="stack"in new Cf(1,2),Df=Cf&&_f&&Object.getOwnPropertyDescriptor(pf,wf),kf=!(!Df||Df.writable&&Df.configurable),Ef=If&&!kf&&!Af;uf({global:!0,constructor:!0,forced:Ef},{DOMException:Ef?Mf:Cf});var Of=df(wf),Lf=Of.prototype;if(Lf.constructor!==Of)for(var Nf in ff(Lf,"constructor",hf(1,Of)),xf)if(gf(xf,Nf)){var Pf=xf[Nf],Rf=Pf.s;gf(Of,Rf)||ff(Of,Rf,hf(6,Pf.c))}var zf="DOMException";ac(qo(zf),zf);var Vf=di,Bf=ai,jf=Co,Ff=bu,Gf=Ps,Wf=function(){},Hf=[],Uf=qo("Reflect","construct"),Yf=/^\s*(?:class|function)\b/,qf=Vf(Yf.exec),Xf=!Yf.exec(Wf),$f=function(e){if(!jf(e))return!1;try{return Uf(Wf,Hf,e),!0}catch(e){return!1}},Zf=function(e){if(!jf(e))return!1;switch(Ff(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xf||!!qf(Yf,Gf(e))}catch(e){return!0}};Zf.sham=!0;var Kf,Jf=!Uf||Bf((function(){var e;return $f($f.call)||!$f(Object)||!$f((function(){e=!0}))||e}))?Zf:$f,Qf=TypeError,eg=Eo,tg=Ho,ng=qi,ig=Xo,og=function(){var e=eg(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},rg=RegExp.prototype,ag=di,sg=Map.prototype,lg={Map:Map,set:ag(sg.set),get:ag(sg.get),has:ag(sg.has),remove:ag(sg.delete),proto:sg},cg=di,ug=Set.prototype,pg={Set:Set,add:cg(ug.add),has:cg(ug.has),remove:cg(ug.delete),proto:ug},dg=qa,hg=!ai((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",dg(1,7)),7!==e.stack)})),fg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,gg=!fg&&!hh&&"object"==typeof window&&"object"==typeof document,mg=ai,vg=ro,yg=gg,xg=fg,bg=hh,_g=ki.structuredClone,wg=!!_g&&!mg((function(){if(xg&&vg>92||bg&&vg>94||yg&&vg>97)return!1;var e=new ArrayBuffer(8),t=_g(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength})),Sg=Vl,Cg=ki,Mg=qo,Tg=di,Ig=ai,Ag=Ji,Dg=Co,kg=Jf,Eg=wi,Og=Io,Lg=Qo,Ng=$u,Pg=Eo,Rg=bu,zg=qi,Vg=Qu,Bg=Za,jg=Yr,Fg=function(e,t){if(e<t)throw Qf("Not enough arguments");return e},Gg=function(e){var t=e.flags;return void 0!==t||"flags"in rg||ng(e,"flags")||!ig(rg,e)?t:tg(og,e)},Wg=lg,Hg=pg,Ug=hg,Yg=wg,qg=Cg.Object,Xg=Cg.Array,$g=Cg.Date,Zg=Cg.Error,Kg=Cg.EvalError,Jg=Cg.RangeError,Qg=Cg.ReferenceError,em=Cg.SyntaxError,tm=Cg.TypeError,nm=Cg.URIError,im=Cg.PerformanceMark,om=Cg.WebAssembly,rm=om&&om.CompileError||Zg,am=om&&om.LinkError||Zg,sm=om&&om.RuntimeError||Zg,lm=Mg("DOMException"),cm=Wg.Map,um=Wg.has,pm=Wg.get,dm=Wg.set,hm=Hg.Set,fm=Hg.add,gm=Mg("Object","keys"),mm=Tg([].push),vm=Tg((!0).valueOf),ym=Tg(1..valueOf),xm=Tg("".valueOf),bm=Tg($g.prototype.getTime),_m=Ag("structuredClone"),wm="DataCloneError",Sm="Transferring",Cm=function(e){return!Ig((function(){var t=new Cg.Set([7]),n=e(t),i=e(qg(7));return n==t||!n.has(7)||"object"!=typeof i||7!=i}))&&e},Mm=function(e,t){return!Ig((function(){var n=new t,i=e({a:n,b:n});return!(i&&i.a===i.b&&i.a instanceof t&&i.a.stack===n.stack)}))},Tm=Cg.structuredClone,Im=!Mm(Tm,Zg)||!Mm(Tm,lm)||(Kf=Tm,!!Ig((function(){var e=Kf(new Cg.AggregateError([1],_m,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=_m||3!=e.cause}))),Am=!Tm&&Cm((function(e){return new im(_m,{detail:e}).detail})),Dm=Cm(Tm)||Am,km=function(e){throw new lm("Uncloneable type: "+e,wm)},Em=function(e,t){throw new lm((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",wm)},Om=function(e,t){return Dm||Em(t),Dm(e)},Lm=function(e,t,n){if(um(t,e))return pm(t,e);var i,o,r,a,s,l;if("SharedArrayBuffer"===(n||Rg(e)))i=Dm?Dm(e):e;else{var c=Cg.DataView;c||"function"==typeof e.slice||Em("ArrayBuffer");try{if("function"!=typeof e.slice||e.resizable){o=e.byteLength,r="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,i=new ArrayBuffer(o,r),a=new c(e),s=new c(i);for(l=0;l<o;l++)s.setUint8(l,a.getUint8(l))}else i=e.slice(0)}catch(e){throw new lm("ArrayBuffer is detached",wm)}}return dm(t,e,i),i},Nm=function(e,t,n,i,o){var r=Cg[t];return Og(r)||Em(t),new r(Lm(e.buffer,o),n,i)},Pm=function(e,t,n){this.object=e,this.type=t,this.metadata=n},Rm=function(e,t,n){if(Lg(e)&&km("Symbol"),!Og(e))return e;if(t){if(um(t,e))return pm(t,e)}else t=new cm;var i,o,r,a,s,l,c,u,p=Rg(e);switch(p){case"Array":r=Xg(jg(e));break;case"Object":r={};break;case"Map":r=new cm;break;case"Set":r=new hm;break;case"RegExp":r=new RegExp(e.source,Gg(e));break;case"Error":switch(o=e.name){case"AggregateError":r=Mg("AggregateError")([]);break;case"EvalError":r=Kg();break;case"RangeError":r=Jg();break;case"ReferenceError":r=Qg();break;case"SyntaxError":r=em();break;case"TypeError":r=tm();break;case"URIError":r=nm();break;case"CompileError":r=rm();break;case"LinkError":r=am();break;case"RuntimeError":r=sm();break;default:r=Zg()}break;case"DOMException":r=new lm(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":r=n?new Pm(e,p):Lm(e,t,p);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===p?e.byteLength:e.length,r=n?new Pm(e,p,{offset:e.byteOffset,length:l}):Nm(e,p,e.byteOffset,l,t);break;case"DOMQuad":try{r=new DOMQuad(Rm(e.p1,t,n),Rm(e.p2,t,n),Rm(e.p3,t,n),Rm(e.p4,t,n))}catch(t){r=Om(e,p)}break;case"File":if(Dm)try{r=Dm(e),Rg(r)!==p&&(r=void 0)}catch(e){}if(!r)try{r=new File([e],e.name,e)}catch(e){}r||Em(p);break;case"FileList":if(a=function(){var e;try{e=new Cg.DataTransfer}catch(t){try{e=new Cg.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(s=0,l=jg(e);s<l;s++)a.items.add(Rm(e[s],t,n));r=a.files}else r=Om(e,p);break;case"ImageData":try{r=new ImageData(Rm(e.data,t,n),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){r=Om(e,p)}break;default:if(Dm)r=Dm(e);else switch(p){case"BigInt":r=qg(e.valueOf());break;case"Boolean":r=qg(vm(e));break;case"Number":r=qg(ym(e));break;case"String":r=qg(xm(e));break;case"Date":r=new $g(bm(e));break;case"Blob":try{r=e.slice(0,e.size,e.type)}catch(e){Em(p)}break;case"DOMPoint":case"DOMPointReadOnly":i=Cg[p];try{r=i.fromPoint?i.fromPoint(e):new i(e.x,e.y,e.z,e.w)}catch(e){Em(p)}break;case"DOMRect":case"DOMRectReadOnly":i=Cg[p];try{r=i.fromRect?i.fromRect(e):new i(e.x,e.y,e.width,e.height)}catch(e){Em(p)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=Cg[p];try{r=i.fromMatrix?i.fromMatrix(e):new i(e)}catch(e){Em(p)}break;case"AudioData":case"VideoFrame":Dg(e.clone)||Em(p);try{r=e.clone()}catch(e){km(p)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Em(p);default:km(p)}}switch(dm(t,e,r),p){case"Array":case"Object":for(c=gm(e),s=0,l=jg(c);s<l;s++)u=c[s],Vg(r,u,Rm(e[u],t,n));break;case"Map":e.forEach((function(e,i){dm(r,Rm(i,t,n),Rm(e,t,n))}));break;case"Set":e.forEach((function(e){fm(r,Rm(e,t,n))}));break;case"Error":Bg(r,"message",Rm(e.message,t,n)),zg(e,"cause")&&Bg(r,"cause",Rm(e.cause,t,n)),"AggregateError"==o&&(r.errors=Rm(e.errors,t,n));case"DOMException":Ug&&Bg(r,"stack",Rm(e.stack,t,n))}return r},zm=function(e,t){if(!Og(e))return e;if(um(t,e))return pm(t,e);var n,i,o,r,a,s,l,c;if(e instanceof Pm)switch(n=e.type,i=e.object,n){case"ArrayBuffer":case"SharedArrayBuffer":c=Lm(i,t,n);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":o=e.metadata,c=Nm(i,n,o.offset,o.length,t)}else switch(Rg(e)){case"Array":case"Object":for(s=gm(e),r=0,a=jg(s);r<a;r++)e[l=s[r]]=zm(e[l],t);break;case"Map":c=new cm,e.forEach((function(e,n){dm(c,zm(n,t),zm(e,t))}));break;case"Set":c=new hm,e.forEach((function(e){fm(c,zm(e,t))}));break;case"Error":e.message=zm(e.message,t),zg(e,"cause")&&(e.cause=zm(e.cause,t)),"AggregateError"==e.name&&(e.errors=zm(e.errors,t));case"DOMException":Ug&&(e.stack=zm(e.stack,t))}return dm(t,e,c||e),c||e};Sg({global:!0,enumerable:!0,sham:!Yg,forced:Im},{structuredClone:function(e){var t,n,i=Fg(arguments.length,1)>1&&!Eg(arguments[1])?Pg(arguments[1]):void 0,o=i?i.transfer:void 0,r=!1;void 0!==o&&(n=function(e,t){if(!Og(e))throw tm("Transfer option cannot be converted to a sequence");var n=[];Ng(e,(function(e){mm(n,Pg(e))}));for(var i,o,r,a,s,l=0,c=jg(n),u=[];l<c;)if(i=n[l++],"ArrayBuffer"!==(o=Rg(i))){if(um(t,i))throw new lm("Duplicate transferable",wm);if(Yg)a=Tm(i,{transfer:[i]});else switch(o){case"ImageBitmap":r=Cg.OffscreenCanvas,kg(r)||Em(o,Sm);try{(s=new r(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),a=s.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":Dg(i.clone)&&Dg(i.close)||Em(o,Sm);try{a=i.clone(),i.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Em(o,Sm)}if(void 0===a)throw new lm("This object cannot be transferred: "+o,wm);dm(t,i,a)}else mm(u,i);return u}(o,t=new cm),r=!!jg(n));var a=Rm(e,t,r);return r&&(function(e,t){for(var n,i,o=0,r=jg(e);o<r;){if(n=e[o++],um(t,n))throw new lm("Duplicate transferable",wm);Yg?i=Tm(n,{transfer:[n]}):(Dg(n.transfer)||Em("ArrayBuffer",Sm),i=n.transfer()),dm(t,n,i)}}(o,t=new cm),a=zm(a,t)),a}}),np.structuredClone;var Vm=Hi,Bm=Yr,jm=Vr,Fm=Ga;Vl({target:"Array",proto:!0},{at:function(e){var t=Vm(this),n=Bm(t),i=jm(e),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}}),Fm("at");var Gm=ki,Wm=di;(function(e,t){Wm(Gm[e].prototype[t])})("Array","at"),Vl({target:"Object",stat:!0},{hasOwn:qi}),np.Object.hasOwn;var Hm=ki;Vl({global:!0,forced:Hm.globalThis!==Hm},{globalThis:Hm});const Um="/workbench/widget/data",Ym=(e,t)=>{const n=Object.entries(t).filter((e=>![null,void 0].includes(e[1]))).map((e=>e.join("="))).join("&");return e.includes("?")?`${e}&${n}`:`${e}?${n}`},qm=e=>()=>!!e&&globalThis.open(e);function Xm({success:e,data:t,errorMsg:n}){if(!e)throw new Error(n);return t}function $m(e,t){return e.find((e=>e.value===t))?.label}const Zm=[{label:"平米",value:"smeter"},{label:"元",value:"yuan"},{label:"%",value:"percent"},{label:"个",value:"number"},{label:"分",value:"score"},{label:"万元",value:"wan_yuan"},{label:"百万",value:"million"},{label:"亿元",value:"billion"},{label:"万方",value:"wan_square"}];mn.INDICATOR,(new Map).set("ALL",{label:"全部"}).set("CARD",{label:"卡片"}).set("MENU",{label:"菜单"}).set("REPORT",{label:"报表"}).set("CONTRACT",{label:"招商合同"}).set("BUSINESS_APPLY",{label:"商务条件申请"}).set("SECURITY",{label:"安全隐患"}).set("RISK",{label:"风险"}).set("PARK_REFORM",{label:"园区改造"}),vn.PENDING,vn.CREATE,vn.COMPLETE,mn.INDICATOR,mn.INDICATOR_AREA,mn.AREA_CHART,mn.LINE_CHART,mn.DUAL_LINE_BAR_CHART,mn.COLUMN_CHART,mn.STACK_COLUMN_CHART,mn.BAR_CHART,mn.FUNNEL_CHART,mn.PIE_CHART,mn.PIE_CHART_RESERVE,mn.CYCLE_CHART,mn.RADAR_CHART,mn.RADAR_CHART_RESERVE;const Km=new Map;Km.set(mn.CUSTOM_CARD,{templateUrl:"https://img.alicdn.com/imgextra/i3/O1CN011Bi11a1YzaZCM32a3_!!6000000003130-2-tps-1376-800.png",type:"Custom",sizeList:[{label:"1行 × 1列",value:"1,1"},{label:"1行 × 2列",value:"1,2"},{label:"2行 × 1列",value:"2,1"},{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"4行 × 4列",value:"4,4"}]}),Km.set(mn.DUAL_LINE_BAR_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i1/O1CN01oW8CLa1lrsvlcyBHV_!!6000000004873-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}]}),Km.set(mn.INDICATOR,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01FnE5KR1EV5typW3ya_!!6000000000356-2-tps-332-272.png",type:"Indicator",sizeList:[{label:"1行 × 1列",value:"1,1"}]}),Km.set(mn.INDICATOR_AREA,{templateUrl:"https://img.alicdn.com/imgextra/i3/O1CN01IiUDn81hQctefyf11_!!6000000004272-2-tps-680-272.png",type:"IndicatorChart",sizeList:[{label:"1行 × 2列",value:"1,2"}]}),Km.set(mn.AREA_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01I6IkaB1iE5fcXcIXU_!!6000000004380-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"}],winChartType:exports.WinChartType.AREA}),Km.set(mn.LINE_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN0181hNue1nRRIIpXPUf_!!6000000005086-2-tps-1376-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}],winChartType:exports.WinChartType.LINE}),Km.set(mn.COLUMN_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01iIxIfy1jYWxlzTSGb_!!6000000004560-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}]}),Km.set(mn.STACK_COLUMN_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i3/O1CN01G9tHC81ImHE4RVLbC_!!6000000000935-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}]}),Km.set(mn.BAR_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i1/O1CN01fS4z2F1lBI66teufq_!!6000000004780-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"}]}),Km.set(mn.PIE_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01aG0pam21xPZ0KAldD_!!6000000007051-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),Km.set(mn.PIE_CHART_RESERVE,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01aG0pam21xPZ0KAldD_!!6000000007051-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),Km.set(mn.CYCLE_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01ZkptA11f6M8UT8XGw_!!6000000003957-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),Km.set(mn.FUNNEL_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i1/O1CN01Cmqcqi1HWsHscvuPN_!!6000000000766-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),Km.set(mn.RADAR_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01Pk7XU01hztOlrBMQe_!!6000000004349-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),Km.set(mn.RADAR_CHART_RESERVE,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01Pk7XU01hztOlrBMQe_!!6000000004349-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),(new Map).set("INDICATOR_CENTER",{iconType:"icon-zhibiaozhongxin1",color:"#347FFF"}).set("NEWS_NOTICE",{iconType:"icon-xinxiansudi1",color:"#00C267"}).set("EARTH_SCREEN",{iconType:"icon-xinxiansudi1",color:"#00C267"}).set("GOOD_HABITS",{iconType:"icon-v-function",color:"#347FFF"}).set("OPERATE_SCORE",{iconType:"icon-jingyingpaihang",color:"#FFA101"}).set("QUARTERLY_SCORE",{iconType:"icon-jidupingfen",color:"#FFA101"}).set("RISK",{iconType:"icon-fengxiandapan1",color:"#F15451"});function Jm(e){return Array.isArray(e)&&e.length>0}!function(){var e=1e3,t=6e4,n=36e5,i="millisecond",o="second",r="minute",a="hour",s="day",l="week",c="month",u="quarter",p="year",d="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(i,c),r=n-o<0,a=t.clone().add(i+(r?-1:1),c);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:p,w:l,d:s,D:d,h:a,m:r,s:o,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",b={};b[x]=m;var _="$isDayjsObject",w=function(e){return e instanceof T||!(!e||!e[_])},S=function e(t,n,i){var o;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();b[r]&&(o=r),n&&(b[r]=n,o=r);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!i&&o&&(x=o),o||!i&&x},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},M=y;M.l=S,M.i=w,M.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return M},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return C(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<C(e)},v.$g=function(e,t,n){return M.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,i=!!M.u(t)||t,u=M.p(e),h=function(e,t){var o=M.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?o:o.endOf(s)},f=function(e,t){return M.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case p:return i?h(1,0):h(31,11);case c:return i?h(1,m):h(0,m+1);case l:var x=this.$locale().weekStart||0,b=(g<x?g+7:g)-x;return h(i?v-b:v+(6-b),m);case s:case d:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case o:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=M.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[s]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[p]=u+"FullYear",n[a]=u+"Hours",n[r]=u+"Minutes",n[o]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===p){var g=this.clone().set(d,1);g.$d[h](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[M.p(e)]()},v.add=function(i,u){var d,h=this;i=Number(i);var f=M.p(u),g=function(e){var t=C(h);return M.w(t.date(t.date()+Math.round(e*i)),h)};if(f===c)return this.set(c,this.$M+i);if(f===p)return this.set(p,this.$y+i);if(f===s)return g(1);if(f===l)return g(7);var m=(d={},d[r]=t,d[a]=n,d[o]=e,d)[f]||1,v=this.$d.getTime()+i*m;return M.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",o=M.z(this),r=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,p=function(e,n,o,r){return e&&(e[n]||e(t,i))||o[n].slice(0,r)},d=function(e){return M.s(r%12||12,e,"0")},f=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(g,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return s+1;case"MM":return M.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return M.s(r,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(r,a,!0);case"A":return f(r,a,!1);case"m":return String(a);case"mm":return M.s(a,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,d,h){var f,g=this,m=M.p(d),v=C(i),y=(v.utcOffset()-this.utcOffset())*t,x=this-v,b=function(){return M.m(g,v)};switch(m){case p:f=b()/12;break;case c:f=b();break;case u:f=b()/3;break;case l:f=(x-y)/6048e5;break;case s:f=(x-y)/864e5;break;case a:f=x/n;break;case r:f=x/t;break;case o:f=x/e;break;default:f=x}return h?f:M.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=S(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return M.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),I=T.prototype;C.prototype=I,[["$ms",i],["$s",o],["$m",r],["$H",a],["$W",s],["$M",c],["$y",p],["$D",d]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=S,C.isDayjs=w,C.unix=function(e){return C(1e3*e)},C.en=b[x],C.Ls=b,C.p={}}();const Qm=(e,t=2)=>"number"==typeof e?`${Number((100*e).toFixed(t))}%`:"-%";function ev(e){return Array.isArray(e)?[...new Set(e)]:[]}const tv=e=>Array.isArray(e)&&0!==e.length?e.reduce(((e,t)=>{const n=Number(t);return e+(Object.is(n,NaN)?0:n)}),0):0,nv=e=>Array.isArray(e)?e.sort(((e,t)=>t.value-e.value)):e,iv=e=>({boundaryGap:!0,axisTick:{alignWithLabel:!0},data:ev(e.data?.map((e=>e.label))),axisLabel:{rotate:e.xAxisLabelRotate,formatter:t=>{const n=e.xAxisLabelLength;return"number"==typeof n&&t.length>n?`${t.slice(0,n)}...`:t}}}),ov=(e,t)=>(e.sort(((e,n)=>t.indexOf(e.label)-t.indexOf(n.label))),e);var rv=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},av=new function(){this.browser=new rv,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(av.wxa=!0,av.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?av.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(av.node=!0,av.svgSupported=!0):function(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),r=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]);o&&(n.ie=!0,n.version=o[1]);r&&(n.edge=!0,n.version=r[1],n.newEdge=+r[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,av);var sv=12,lv="sans-serif",cv=sv+"px "+lv;var uv,pv,dv=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),o=(e.charCodeAt(n)-20)/100;t[i]=o}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),hv={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!uv){var n=hv.createCanvas();uv=n&&n.getContext("2d")}if(uv)return pv!==t&&(pv=uv.font=t||cv),uv.measureText(e);e=e||"";var i=/(\d+)px/.exec(t=t||cv),o=i&&+i[1]||sv,r=0;if(t.indexOf("mono")>=0)r=o*e.length;else for(var a=0;a<e.length;a++){var s=dv[e[a]];r+=null==s?o:s*o}return{width:r}},loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}},fv=Vv(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),gv=Vv(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),mv=Object.prototype.toString,vv=Array.prototype,yv=vv.forEach,xv=vv.filter,bv=vv.slice,_v=vv.map,wv=function(){}.constructor,Sv=wv?wv.prototype:null,Cv="__proto__",Mv=2311;function Tv(){return Mv++}function Iv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function Av(e){if(null==e||"object"!=typeof e)return e;var t=e,n=mv.call(e);if("[object Array]"===n){if(!uy(e)){t=[];for(var i=0,o=e.length;i<o;i++)t[i]=Av(e[i])}}else if(gv[n]){if(!uy(e)){var r=e.constructor;if(r.from)t=r.from(e);else{t=new r(e.length);for(i=0,o=e.length;i<o;i++)t[i]=e[i]}}}else if(!fv[n]&&!uy(e)&&!Kv(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==Cv&&(t[a]=Av(e[a]));return t}function Dv(e,t,n){if(!Xv(t)||!Xv(e))return n?Av(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Cv){var o=e[i],r=t[i];!Xv(r)||!Xv(o)||Wv(r)||Wv(o)||Kv(r)||Kv(o)||$v(r)||$v(o)||uy(r)||uy(o)?!n&&i in e||(e[i]=Av(t[i])):Dv(o,r,n)}return e}function kv(e,t){for(var n=e[0],i=1,o=e.length;i<o;i++)n=Dv(n,e[i],t);return n}function Ev(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Cv&&(e[n]=t[n]);return e}function Ov(e,t,n){for(var i=jv(t),o=0;o<i.length;o++){var r=i[o];(n?null!=t[r]:null==e[r])&&(e[r]=t[r])}return e}function Lv(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function Nv(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=t[r]:null==e[r])&&(e[r]=t[r])}else Ov(e,t,n)}function Pv(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function Rv(e,t,n){if(e&&t)if(e.forEach&&e.forEach===yv)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e);else for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function zv(e,t,n){if(!e)return[];if(!t)return oy(e);if(e.map&&e.map===_v)return e.map(t,n);for(var i=[],o=0,r=e.length;o<r;o++)i.push(t.call(n,e[o],o,e));return i}function Vv(e,t,n,i){if(e&&t){for(var o=0,r=e.length;o<r;o++)n=t.call(i,n,e[o],o,e);return n}}function Bv(e,t,n){if(!e)return[];if(!t)return oy(e);if(e.filter&&e.filter===xv)return e.filter(t,n);for(var i=[],o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)&&i.push(e[o]);return i}function jv(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var Fv=Sv&&Hv(Sv.bind)?Sv.call.bind(Sv.bind):function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(bv.call(arguments)))}};function Gv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(bv.call(arguments)))}}function Wv(e){return Array.isArray?Array.isArray(e):"[object Array]"===mv.call(e)}function Hv(e){return"function"==typeof e}function Uv(e){return"string"==typeof e}function Yv(e){return"[object String]"===mv.call(e)}function qv(e){return"number"==typeof e}function Xv(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function $v(e){return!!fv[mv.call(e)]}function Zv(e){return!!gv[mv.call(e)]}function Kv(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function Jv(e){return null!=e.colorStops}function Qv(e){return"[object RegExp]"===mv.call(e)}function ey(e){return e!=e}function ty(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function ny(e,t){return null!=e?e:t}function iy(e,t,n){return null!=e?e:null!=t?t:n}function oy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return bv.apply(e,t)}function ry(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ay(e,t){if(!e)throw new Error(t)}function sy(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ly="__ec_primitive__";function cy(e){e[ly]=!0}function uy(e){return e[ly]}var py=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return jv(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),dy="function"==typeof Map;var hy=function(){function e(t){var n=Wv(t);this.data=dy?new Map:new py;var i=this;function o(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(o):t&&Rv(t,o)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,i){e.call(t,n,i)}))},e.prototype.keys=function(){var e=this.data.keys();return dy?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function fy(e){return new hy(e)}function gy(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var o=e.length;for(i=0;i<t.length;i++)n[i+o]=t[i];return n}function my(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&Ev(n,t),n}function vy(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function yy(e,t){return e.hasOwnProperty(t)}function xy(){}var by=180/Math.PI;function _y(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function wy(e,t){return e[0]=t[0],e[1]=t[1],e}function Sy(e){return[e[0],e[1]]}function Cy(e,t,n){return e[0]=t,e[1]=n,e}function My(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ty(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Iy(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ay(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}function Dy(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function ky(e,t){var n=Ay(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ey(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Oy=Ey;var Ly=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Ny(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function Py(e,t,n){var i=t[0],o=t[1];return e[0]=n[0]*i+n[2]*o+n[4],e[1]=n[1]*i+n[3]*o+n[5],e}function Ry(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function zy(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Vy=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},By=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Vy(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,o=n-this._x,r=i-this._y;this._x=n,this._y=i,t.drift(o,r,e),this.handler.dispatchToElement(new Vy(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Vy(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Vy(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Vy(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Vy(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),jy=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var r=this._$eventProcessor;null!=t&&r&&r.normalizeQuery&&(t=r.normalizeQuery(t)),o[e]||(o[e]=[]);for(var a=0;a<o[e].length;a++)if(o[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=o[e].length-1,c=o[e][l];return c&&c.callAtLast?o[e].splice(l,0,s):o[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],o=0,r=n[e].length;o<r;o++)n[e][o].h!==t&&i.push(n[e][o]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var r=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(e,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var r=t.length,a=t[r-1],s=i.length,l=0;l<s;l++){var c=i[l];if(!o||!o.filter||null==c.query||o.filter(e,c.query))switch(r){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,r-1))}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e}(),Fy=Math.log(2);function Gy(e,t,n,i,o,r){var a=i+"-"+o,s=e.length;if(r.hasOwnProperty(a))return r[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~o)/Fy);return e[n][l]}for(var c=i|1<<n,u=n+1;i&1<<u;)u++;for(var p=0,d=0,h=0;d<s;d++){var f=1<<d;f&o||(p+=(h%2?-1:1)*e[n][d]*Gy(e,t-1,u,c,o|f,r),h++)}return r[a]=p,p}function Wy(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},o=Gy(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*Gy(n,7,0===a?1:0,1<<a,1<<s,i)/o*t[a];return function(e,t,n){var i=t*r[6]+n*r[7]+1;e[0]=(t*r[0]+n*r[1]+r[2])/i,e[1]=(t*r[3]+n*r[4]+r[5])/i}}}var Hy="___zrEVENTSAVED",Uy=[];function Yy(e,t,n,i,o){if(t.getBoundingClientRect&&av.domSupported&&!qy(t)){var r=t[Hy]||(t[Hy]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=r%2,l=(r>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",o[l]+":0",i[1-s]+":auto",o[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,r),s=function(e,t,n){for(var i=n?"invTrans":"trans",o=t[i],r=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),p=2*c,d=u.left,h=u.top;a.push(d,h),l=l&&r&&d===r[p]&&h===r[p+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&o?o:(t.srcCoords=a,t[i]=n?Wy(s,a):Wy(a,s))}(a,r,o);if(s)return s(e,n,i),!0}return!1}function qy(e){return"CANVAS"===e.nodeName.toUpperCase()}var Xy=/([&<>"'])/g,$y={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zy(e){return null==e?"":(e+"").replace(Xy,(function(e,t){return $y[t]}))}var Ky=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jy=[],Qy=av.browser.firefox&&+av.browser.version.split(".")[0]<39;function ex(e,t,n,i){return n=n||{},i?tx(e,t,n):Qy&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):tx(e,t,n),n}function tx(e,t,n){if(av.domSupported&&e.getBoundingClientRect){var i=t.clientX,o=t.clientY;if(qy(e)){var r=e.getBoundingClientRect();return n.zrX=i-r.left,void(n.zrY=o-r.top)}if(Yy(Jy,e,i,o))return n.zrX=Jy[0],void(n.zrY=Jy[1])}n.zrX=n.zrY=0}function nx(e){return e||window.event}function ix(e,t,n){if(null!=(t=nx(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ex(e,o,t,n)}else{ex(e,t,t,n);var r=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=r?r/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&Ky.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function ox(e,t,n,i){e.addEventListener(t,n,i)}var rx=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ax(e){return 2===e.which||3===e.which}var sx=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var o={points:[],touches:[],target:t,event:e},r=0,a=i.length;r<a;r++){var s=i[r],l=ex(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},e.prototype._recognize=function(e){for(var t in cx)if(cx.hasOwnProperty(t)){var n=cx[t](this._track,e);if(n)return n}},e}();function lx(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var cx={pinch:function(e,t){var n=e.length;if(n){var i,o=(e[n-1]||{}).points,r=(e[n-2]||{}).points||o;if(r&&r.length>1&&o&&o.length>1){var a=lx(o)/lx(r);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=o)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function ux(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function px(e,t){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}function dx(e,t,n){var i=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],r=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=o,e[2]=r,e[3]=a,e[4]=s,e[5]=l,e}function hx(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fx(e,t,n,i){void 0===i&&(i=[0,0]);var o=t[0],r=t[2],a=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(n),p=Math.cos(n);return e[0]=o*p+s*u,e[1]=-o*u+s*p,e[2]=r*p+l*u,e[3]=-r*u+p*l,e[4]=p*(a-i[0])+u*(c-i[1])+i[0],e[5]=p*(c-i[1])-u*(a-i[0])+i[1],e}function gx(e,t,n){var i=n[0],o=n[1];return e[0]=t[0]*i,e[1]=t[1]*o,e[2]=t[2]*i,e[3]=t[3]*o,e[4]=t[4]*i,e[5]=t[5]*o,e}function mx(e,t){var n=t[0],i=t[2],o=t[4],r=t[1],a=t[3],s=t[5],l=n*a-r*i;return l?(l=1/l,e[0]=a*l,e[1]=-r*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*o)*l,e[5]=(r*o-n*s)*l,e):null}var vx=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var o=1-i;e.x=o*t.x+i*n.x,e.y=o*t.y+i*n.y},e}(),yx=Math.min,xx=Math.max,bx=new vx,_x=new vx,Sx=new vx,Cx=new vx,Mx=new vx,Tx=new vx,Ix=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=yx(e.x,this.x),n=yx(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xx(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=xx(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,o=[1,0,0,1,0,0];return hx(o,o,[-t.x,-t.y]),gx(o,o,[n,i]),hx(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,c=t.x+t.width,u=t.y,p=t.y+t.height,d=!(r<l||c<o||s<u||p<a);if(n){var h=1/0,f=0,g=Math.abs(r-l),m=Math.abs(c-o),v=Math.abs(s-u),y=Math.abs(p-a),x=Math.min(g,m),b=Math.min(v,y);r<l||c<o?x>f&&(f=x,g<m?vx.set(Tx,-g,0):vx.set(Tx,m,0)):x<h&&(h=x,g<m?vx.set(Mx,g,0):vx.set(Mx,-m,0)),s<u||p<a?b>f&&(f=b,v<y?vx.set(Tx,0,-v):vx.set(Tx,0,y)):x<h&&(h=x,v<y?vx.set(Mx,0,v):vx.set(Mx,0,-y))}return n&&vx.copy(n,d?Mx:Tx),d},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];return t.x=n.x*o+a,t.y=n.y*r+s,t.width=n.width*o,t.height=n.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}bx.x=Sx.x=n.x,bx.y=Cx.y=n.y,_x.x=Cx.x=n.x+n.width,_x.y=Sx.y=n.y+n.height,bx.transform(i),Cx.transform(i),_x.transform(i),Sx.transform(i),t.x=yx(bx.x,_x.x,Sx.x,Cx.x),t.y=yx(bx.y,_x.y,Sx.y,Cx.y);var l=xx(bx.x,_x.x,Sx.x,Cx.x),c=xx(bx.y,_x.y,Sx.y,Cx.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),Ax=Ix,Dx="silent";function kx(){rx(this.event)}var Ex=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return S(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(jy),Ox=function(e,t){this.x=e,this.y=t},Lx=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Nx=new Ax(0,0,0,0),Px=function(e){function t(t,n,i,o,r){var a=e.call(this)||this;return a._hovered=new Ox(0,0),a.storage=t,a.painter=n,a.painterRoot=o,a._pointerSize=r,i=i||new Ex,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new By(a),a}return S(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Rv(Lx,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Vx(this,t,n),o=this._hovered,r=o.target;r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target);var a=this._hovered=i?new Ox(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==r&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ox(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var o="on"+t,r=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:kx}}(t,e,n);i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(t,r),i=i.__hostTarget?i.__hostTarget:i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(t,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[o]&&e[o].call(e,r),e.trigger&&e.trigger(t,r)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),o=new Ox(e,t);if(zx(i,o,e,t,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new Ax(e-s,t-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Nx.copy(u.getBoundingRect()),u.transform&&Nx.applyTransform(u.transform),Nx.intersect(l)&&r.push(u))}if(r.length)for(var p=Math.PI/12,d=2*Math.PI,h=0;h<s;h+=4)for(var f=0;f<d;f+=p){if(zx(r,o,e+h*Math.cos(f),t+h*Math.sin(f),n),o.target)return o}}return o},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new sx);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var o=i.type;e.gestureEvent=o;var r=new Ox;r.target=i.target,this.dispatchToElement(r,o,i.event)}},t}(jy);function Rx(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1}i.silent&&(o=!0);var s=i.__hostTarget;i=s||i.parent}return!o||Dx}return!1}function zx(e,t,n,i,o){for(var r=e.length-1;r>=0;r--){var a=e[r],s=void 0;if(a!==o&&!a.ignore&&(s=Rx(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==Dx)){t.target=a;break}}}function Vx(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}Rv(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Px.prototype[e]=function(t){var n,i,o=t.zrX,r=t.zrY,a=Vx(this,o,r);if("mouseup"===e&&a||(i=(n=this.findHover(o,r)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Oy(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var Bx=Px,jx=32,Fx=7;function Gx(e,t,n,i){var o=t+1;if(o===n)return 1;if(i(e[o++],e[t])<0){for(;o<n&&i(e[o],e[o-1])<0;)o++;!function(e,t,n){n--;for(;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,o)}else for(;o<n&&i(e[o],e[o-1])>=0;)o++;return o-t}function Wx(e,t,n,i,o){for(i===t&&i++;i<n;i++){for(var r,a=e[i],s=t,l=i;s<l;)o(a,e[r=s+l>>>1])<0?l=r:s=r+1;var c=i-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=a}}function Hx(e,t,n,i,o,r){var a=0,s=0,l=1;if(r(e,t[n+o])>0){for(s=i-o;l<s&&r(e,t[n+o+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(e,t[n+o-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}for(a++;a<l;){var u=a+(l-a>>>1);r(e,t[n+u])>0?a=u+1:l=u}return l}function Ux(e,t,n,i,o,r){var a=0,s=0,l=1;if(r(e,t[n+o])<0){for(s=o+1;l<s&&r(e,t[n+o-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}else{for(s=i-o;l<s&&r(e,t[n+o+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(e,t[n+u])<0?l=u:a=u+1}return l}function Yx(e,t){var n,i,o=Fx,r=0,a=[];function s(s){var l=n[s],c=i[s],u=n[s+1],p=i[s+1];i[s]=c+p,s===r-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),r--;var d=Ux(e[u],e,l,c,0,t);l+=d,0!==(c-=d)&&0!==(p=Hx(e[l+c-1],e,u,p,p-1,t))&&(c<=p?function(n,i,r,s){var l=0;for(l=0;l<i;l++)a[l]=e[n+l];var c=0,u=r,p=n;if(e[p++]=e[u++],0==--s){for(l=0;l<i;l++)e[p+l]=a[c+l];return}if(1===i){for(l=0;l<s;l++)e[p+l]=e[u+l];return void(e[p+s]=a[c])}var d,h,f,g=o;for(;;){d=0,h=0,f=!1;do{if(t(e[u],a[c])<0){if(e[p++]=e[u++],h++,d=0,0==--s){f=!0;break}}else if(e[p++]=a[c++],d++,h=0,1==--i){f=!0;break}}while((d|h)<g);if(f)break;do{if(0!==(d=Ux(e[u],a,c,i,0,t))){for(l=0;l<d;l++)e[p+l]=a[c+l];if(p+=d,c+=d,(i-=d)<=1){f=!0;break}}if(e[p++]=e[u++],0==--s){f=!0;break}if(0!==(h=Hx(a[c],e,u,s,0,t))){for(l=0;l<h;l++)e[p+l]=e[u+l];if(p+=h,u+=h,0===(s-=h)){f=!0;break}}if(e[p++]=a[c++],1==--i){f=!0;break}g--}while(d>=Fx||h>=Fx);if(f)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===i){for(l=0;l<s;l++)e[p+l]=e[u+l];e[p+s]=a[c]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[p+l]=a[c+l]}}(l,c,u,p):function(n,i,r,s){var l=0;for(l=0;l<s;l++)a[l]=e[r+l];var c=n+i-1,u=s-1,p=r+s-1,d=0,h=0;if(e[p--]=e[c--],0==--i){for(d=p-(s-1),l=0;l<s;l++)e[d+l]=a[l];return}if(1===s){for(h=(p-=i)+1,d=(c-=i)+1,l=i-1;l>=0;l--)e[h+l]=e[d+l];return void(e[p]=a[u])}var f=o;for(;;){var g=0,m=0,v=!1;do{if(t(a[u],e[c])<0){if(e[p--]=e[c--],g++,m=0,0==--i){v=!0;break}}else if(e[p--]=a[u--],m++,g=0,1==--s){v=!0;break}}while((g|m)<f);if(v)break;do{if(0!==(g=i-Ux(a[u],e,n,i,i-1,t))){for(i-=g,h=(p-=g)+1,d=(c-=g)+1,l=g-1;l>=0;l--)e[h+l]=e[d+l];if(0===i){v=!0;break}}if(e[p--]=a[u--],1==--s){v=!0;break}if(0!==(m=s-Hx(e[c],a,0,s,s-1,t))){for(s-=m,h=(p-=m)+1,d=(u-=m)+1,l=0;l<m;l++)e[h+l]=a[d+l];if(s<=1){v=!0;break}}if(e[p--]=e[c--],0==--i){v=!0;break}f--}while(g>=Fx||m>=Fx);if(v)break;f<0&&(f=0),f+=2}(o=f)<1&&(o=1);if(1===s){for(h=(p-=i)+1,d=(c-=i)+1,l=i-1;l>=0;l--)e[h+l]=e[d+l];e[p]=a[u]}else{if(0===s)throw new Error;for(d=p-(s-1),l=0;l<s;l++)e[d+l]=a[l]}}(l,c,u,p))}return n=[],i=[],{mergeRuns:function(){for(;r>1;){var e=r-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;s(e)}},forceMergeRuns:function(){for(;r>1;){var e=r-2;e>0&&i[e-1]<i[e+1]&&e--,s(e)}},pushRun:function(e,t){n[r]=e,i[r]=t,r+=1}}}function qx(e,t,n,i){n||(n=0),i||(i=e.length);var o=i-n;if(!(o<2)){var r=0;if(o<jx)Wx(e,n,i,n+(r=Gx(e,n,i,t)),t);else{var a=Yx(e,t),s=function(e){for(var t=0;e>=jx;)t|=1&e,e>>=1;return e+t}(o);do{if((r=Gx(e,n,i,t))<s){var l=o;l>s&&(l=s),Wx(e,n,n+l,n+r,t),r=l}a.pushRun(n,r),a.mergeRuns(),o-=r,n+=r}while(0!==o);a.forceMergeRuns()}}}var Xx=1,$x=4,Zx=!1;function Kx(){Zx||(Zx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jx(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Qx=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jx}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,o=t.length;i<o;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,qx(n,Jx)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var o=i,r=e;o;)o.parent=r,o.updateTransform(),t.push(o),r=o,o=o.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=Xx),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Kx(),c.z=0),isNaN(c.z2)&&(Kx(),c.z2=0),isNaN(c.zlevel)&&(Kx(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=Lv(this._roots,e);i>=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),eb=av.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},tb={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-tb.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*tb.bounceIn(2*e):.5*tb.bounceOut(2*e-1)+.5}},nb=Math.pow,ib=Math.sqrt,ob=1e-8,rb=1e-4,ab=ib(3),sb=1/3,lb=_y(),cb=_y(),ub=_y();function pb(e){return e>-ob&&e<ob}function db(e){return e>ob||e<-ob}function hb(e,t,n,i,o){var r=1-o;return r*r*(r*e+3*o*t)+o*o*(o*i+3*r*n)}function fb(e,t,n,i,o){var r=1-o;return 3*(((t-e)*r+2*(n-t)*o)*r+(i-n)*o*o)}function gb(e,t,n,i,o,r){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-o,u=s*s-3*a*l,p=s*l-9*a*c,d=l*l-3*s*c,h=0;if(pb(u)&&pb(p)){if(pb(s))r[0]=0;else(C=-l/s)>=0&&C<=1&&(r[h++]=C)}else{var f=p*p-4*u*d;if(pb(f)){var g=p/u,m=-g/2;(C=-s/a+g)>=0&&C<=1&&(r[h++]=C),m>=0&&m<=1&&(r[h++]=m)}else if(f>0){var v=ib(f),y=u*s+1.5*a*(-p+v),x=u*s+1.5*a*(-p-v);(C=(-s-((y=y<0?-nb(-y,sb):nb(y,sb))+(x=x<0?-nb(-x,sb):nb(x,sb))))/(3*a))>=0&&C<=1&&(r[h++]=C)}else{var b=(2*u*s-3*a*p)/(2*ib(u*u*u)),_=Math.acos(b)/3,w=ib(u),S=Math.cos(_),C=(-s-2*w*S)/(3*a),M=(m=(-s+w*(S+ab*Math.sin(_)))/(3*a),(-s+w*(S-ab*Math.sin(_)))/(3*a));C>=0&&C<=1&&(r[h++]=C),m>=0&&m<=1&&(r[h++]=m),M>=0&&M<=1&&(r[h++]=M)}}return h}function mb(e,t,n,i,o){var r=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(pb(a)){if(db(r))(u=-s/r)>=0&&u<=1&&(o[l++]=u)}else{var c=r*r-4*a*s;if(pb(c))o[0]=-r/(2*a);else if(c>0){var u,p=ib(c),d=(-r-p)/(2*a);(u=(-r+p)/(2*a))>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}function vb(e,t,n,i,o,r){var a=(t-e)*o+e,s=(n-t)*o+t,l=(i-n)*o+n,c=(s-a)*o+a,u=(l-s)*o+s,p=(u-c)*o+c;r[0]=e,r[1]=a,r[2]=c,r[3]=p,r[4]=p,r[5]=u,r[6]=l,r[7]=i}function yb(e,t,n,i,o,r,a,s,l,c,u){var p,d,h,f,g,m=.005,v=1/0;lb[0]=l,lb[1]=c;for(var y=0;y<1;y+=.05)cb[0]=hb(e,n,o,a,y),cb[1]=hb(t,i,r,s,y),(f=Ly(lb,cb))<v&&(p=y,v=f);v=1/0;for(var x=0;x<32&&!(m<rb);x++)d=p-m,h=p+m,cb[0]=hb(e,n,o,a,d),cb[1]=hb(t,i,r,s,d),f=Ly(cb,lb),d>=0&&f<v?(p=d,v=f):(ub[0]=hb(e,n,o,a,h),ub[1]=hb(t,i,r,s,h),g=Ly(ub,lb),h<=1&&g<v?(p=h,v=g):m*=.5);return u&&(u[0]=hb(e,n,o,a,p),u[1]=hb(t,i,r,s,p)),ib(v)}function xb(e,t,n,i,o,r,a,s,l){for(var c=e,u=t,p=0,d=1/l,h=1;h<=l;h++){var f=h*d,g=hb(e,n,o,a,f),m=hb(t,i,r,s,f),v=g-c,y=m-u;p+=Math.sqrt(v*v+y*y),c=g,u=m}return p}function bb(e,t,n,i){var o=1-i;return o*(o*e+2*i*t)+i*i*n}function _b(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function wb(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function Sb(e,t,n,i,o){var r=(t-e)*i+e,a=(n-t)*i+t,s=(a-r)*i+r;o[0]=e,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=n}function Cb(e,t,n,i,o,r,a,s,l){var c,u=.005,p=1/0;lb[0]=a,lb[1]=s;for(var d=0;d<1;d+=.05){cb[0]=bb(e,n,o,d),cb[1]=bb(t,i,r,d),(m=Ly(lb,cb))<p&&(c=d,p=m)}p=1/0;for(var h=0;h<32&&!(u<rb);h++){var f=c-u,g=c+u;cb[0]=bb(e,n,o,f),cb[1]=bb(t,i,r,f);var m=Ly(cb,lb);if(f>=0&&m<p)c=f,p=m;else{ub[0]=bb(e,n,o,g),ub[1]=bb(t,i,r,g);var v=Ly(ub,lb);g<=1&&v<p?(c=g,p=v):u*=.5}}return l&&(l[0]=bb(e,n,o,c),l[1]=bb(t,i,r,c)),ib(p)}function Mb(e,t,n,i,o,r,a){for(var s=e,l=t,c=0,u=1/a,p=1;p<=a;p++){var d=p*u,h=bb(e,n,o,d),f=bb(t,i,r,d),g=h-s,m=f-l;c+=Math.sqrt(g*g+m*m),s=h,l=f}return c}var Tb=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ib(e){var t=e&&Tb.exec(e);if(t){var n=t[1].split(","),i=+sy(n[0]),o=+sy(n[1]),r=+sy(n[2]),a=+sy(n[3]);if(isNaN(i+o+r+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:gb(0,i,r,1,e,s)&&hb(0,o,a,1,s[0])}}}var Ab=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||xy,this.ondestroy=e.ondestroy||xy,this.onrestart=e.onrestart||xy,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,o=i/n;o<0&&(o=0),o=Math.min(o,1);var r=this.easingFunc,a=r?r(o):o;if(this.onframe(a),1===o){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Hv(e)?e:tb[e]||Ib(e)},e}(),Db=function(e){this.value=e},kb=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Db(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Eb=function(){function e(e){this._list=new kb,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,o=null;if(null==i[e]){var r=n.len(),a=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=n.head;n.remove(s),delete i[s.key],o=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new Db(t),a.key=e,n.insertEntry(a),i[e]=a}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Ob={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Lb(e){return(e=Math.round(e))<0?0:e>255?255:e}function Nb(e){return e<0?0:e>1?1:e}function Pb(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Lb(parseFloat(t)/100*255):Lb(parseInt(t,10))}function Rb(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Nb(parseFloat(t)/100):Nb(parseFloat(t))}function zb(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Vb(e,t,n){return e+(t-e)*n}function Bb(e,t,n,i,o){return e[0]=t,e[1]=n,e[2]=i,e[3]=o,e}function jb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Fb=new Eb(20),Gb=null;function Wb(e,t){Gb&&jb(Gb,t),Gb=Fb.put(e,Gb||t.slice())}function Hb(e,t){if(e){t=t||[];var n=Fb.get(e);if(n)return jb(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in Ob)return jb(t,Ob[i]),Wb(e,t),t;var o,r=i.length;if("#"===i.charAt(0))return 4===r||5===r?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(Bb(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),Wb(e,t),t):void Bb(t,0,0,0,1):7===r||9===r?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(Bb(t,(16711680&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),Wb(e,t),t):void Bb(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),c=i.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?Bb(t,+c[0],+c[1],+c[2],1):Bb(t,0,0,0,1);u=Rb(c.pop());case"rgb":return c.length>=3?(Bb(t,Pb(c[0]),Pb(c[1]),Pb(c[2]),3===c.length?u:Rb(c[3])),Wb(e,t),t):void Bb(t,0,0,0,1);case"hsla":return 4!==c.length?void Bb(t,0,0,0,1):(c[3]=Rb(c[3]),Ub(c,t),Wb(e,t),t);case"hsl":return 3!==c.length?void Bb(t,0,0,0,1):(Ub(c,t),Wb(e,t),t);default:return}}Bb(t,0,0,0,1)}}function Ub(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Rb(e[1]),o=Rb(e[2]),r=o<=.5?o*(i+1):o+i-o*i,a=2*o-r;return Bb(t=t||[],Lb(255*zb(a,r,n+1/3)),Lb(255*zb(a,r,n)),Lb(255*zb(a,r,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function Yb(e,t){var n=Hb(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Zb(n,4===n.length?"rgba":"rgb")}}function qb(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),o=Math.floor(i),r=Math.ceil(i),a=t[o],s=t[r],l=i-o;return n[0]=Lb(Vb(a[0],s[0],l)),n[1]=Lb(Vb(a[1],s[1],l)),n[2]=Lb(Vb(a[2],s[2],l)),n[3]=Nb(Vb(a[3],s[3],l)),n}}function Xb(e,t,n,i){var o=Hb(e);if(e)return o=function(e){if(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l,d=((s-r)/6+l/2)/l;i===s?t=d-p:o===s?t=1/3+u-d:r===s&&(t=2/3+p-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,c];return null!=e[3]&&h.push(e[3]),h}}(o),null!=t&&(o[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(o[1]=Rb(n)),null!=i&&(o[2]=Rb(i)),Zb(Ub(o),"rgba")}function $b(e,t){var n=Hb(e);if(n&&null!=t)return n[3]=Nb(t),Zb(n,"rgba")}function Zb(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function Kb(e,t){var n=Hb(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Jb=new Eb(100);function Qb(e){if(Uv(e)){var t=Jb.get(e);return t||(t=Yb(e,-.1),Jb.put(e,t)),t}if(Jv(e)){var n=Ev({},e);return n.colorStops=zv(e.colorStops,(function(e){return{offset:e.offset,color:Yb(e.color,-.1)}})),n}return e}var e_=Math.round;function t_(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=Hb(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var n_=1e-4;function i_(e){return e<n_&&e>-n_}function o_(e){return e_(1e3*e)/1e3}function r_(e){return e_(1e4*e)/1e4}var a_={left:"start",right:"end",center:"middle",middle:"middle"};function s_(e){return e&&!!e.image}function l_(e){return s_(e)||function(e){return e&&!!e.svgElement}(e)}function c_(e){return"linear"===e.type}function u_(e){return"radial"===e.type}function p_(e){return e&&("linear"===e.type||"radial"===e.type)}function d_(e){return"url(#"+e+")"}function h_(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function f_(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*by,o=ny(e.scaleX,1),r=ny(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===o&&1===r||l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+e_(a*by)+"deg, "+e_(s*by)+"deg)"),l.join(" ")}var g_=av.hasGlobalWindow&&Hv(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return"production"!==process.env.NODE_ENV&&Iv("Base64 isn't natively supported in the current environment."),null},m_=Array.prototype.slice;function v_(e,t,n){return(t-e)*n+e}function y_(e,t,n,i){for(var o=t.length,r=0;r<o;r++)e[r]=v_(t[r],n[r],i);return e}function x_(e,t,n,i){for(var o=t.length,r=0;r<o;r++)e[r]=t[r]+n[r]*i;return e}function b_(e,t,n,i){for(var o=t.length,r=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var s=0;s<r;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function __(e,t){for(var n=e.length,i=t.length,o=n>i?t:e,r=Math.min(n,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;s<Math.max(n,i);s++)o.push({offset:a.offset,color:a.color.slice()})}function w_(e,t,n){var i=e,o=t;if(i.push&&o.push){var r=i.length,a=o.length;if(r!==a)if(r>a)i.length=a;else for(var s=r;s<a;s++)i.push(1===n?o[s]:m_.call(o[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=o[s]);else for(var c=0;c<l;c++)isNaN(i[s][c])&&(i[s][c]=o[s][c])}}function S_(e){if(Pv(e)){var t=e.length;if(Pv(e[0])){for(var n=[],i=0;i<t;i++)n.push(m_.call(e[i]));return n}return m_.call(e)}return e}function C_(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function M_(e){return 4===e||5===e}function T_(e){return 1===e||2===e}var I_=[0,0,0,0],A_=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,o=i.length,r=!1,a=6,s=t;if(Pv(t)){var l=function(e){return Pv(e&&e[0])?2:1}(t);a=l,(1===l&&!qv(t[0])||2===l&&!qv(t[0][0]))&&(r=!0)}else if(qv(t)&&!ey(t))a=0;else if(Uv(t))if(isNaN(+t)){var c=Hb(t);c&&(s=c,a=3)}else a=0;else if(Jv(t)){var u=Ev({},s);u.colorStops=zv(t.colorStops,(function(e){return{offset:e.offset,color:Hb(e.color)}})),c_(t)?a=4:u_(t)&&(a=5),s=u}0===o?this.valType=a:a===this.valType&&6!==a||(r=!0),this.discrete=this.discrete||r;var p={time:e,value:s,rawValue:t,percent:0};return n&&(p.easing=n,p.easingFunc=Hv(n)?n:tb[n]||Ib(n)),i.push(p),p},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,o=n.length,r=n[o-1],a=this.discrete,s=T_(i),l=M_(i),c=0;c<o;c++){var u=n[c],p=u.value,d=r.value;u.percent=u.time/e,a||(s&&c!==o-1?w_(p,d,i):l&&__(p.colorStops,d.colorStops))}if(!a&&5!==i&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(c=0;c<o;c++)0===i?n[c].additiveValue=n[c].value-h:3===i?n[c].additiveValue=x_([],n[c].value,h,-1):T_(i)&&(n[c].additiveValue=1===i?x_([],n[c].value,h,-1):b_([],n[c].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r=null!=this._additiveTrack,a=r?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,u=this.propName,p=3===s,d=this._lastFr,h=Math.min;if(1===c)i=o=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=h(d+1,c-1);n>=0&&!(l[n].percent<=t);n--);n=h(n,c-2)}else{for(n=d;n<c&&!(l[n].percent>t);n++);n=h(n-1,c-2)}o=l[n+1],i=l[n]}if(i&&o){this._lastFr=n,this._lastFrP=t;var f=o.percent-i.percent,g=0===f?1:h((t-i.percent)/f,1);o.easingFunc&&(g=o.easingFunc(g));var m=r?this._additiveValue:p?I_:e[u];if(!T_(s)&&!p||m||(m=this._additiveValue=[]),this.discrete)e[u]=g<1?i.rawValue:o.rawValue;else if(T_(s))1===s?y_(m,i[a],o[a],g):function(e,t,n,i){for(var o=t.length,r=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var s=0;s<r;s++)e[a][s]=v_(t[a][s],n[a][s],i)}}(m,i[a],o[a],g);else if(M_(s)){var v=i[a],y=o[a],x=4===s;e[u]={type:x?"linear":"radial",x:v_(v.x,y.x,g),y:v_(v.y,y.y,g),colorStops:zv(v.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:v_(e.offset,n.offset,g),color:C_(y_([],e.color,n.color,g))}})),global:y.global},x?(e[u].x2=v_(v.x2,y.x2,g),e[u].y2=v_(v.y2,y.y2,g)):e[u].r=v_(v.r,y.r,g)}else if(p)y_(m,i[a],o[a],g),r||(e[u]=C_(m));else{var b=v_(i[a],o[a],g);r?this._additiveValue=b:e[u]=b}r&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;0===t?e[n]=e[n]+i:3===t?(Hb(e[n],I_),x_(I_,I_,i,1),e[n]=C_(I_)):1===t?x_(e[n],e[n],i,1):2===t&&b_(e[n],e[n],i,1)},e}(),D_=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Iv("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,jv(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var o=this._tracks,r=0;r<n.length;r++){var a=n[r],s=o[a];if(!s){s=o[a]=new A_(a);var l=void 0,c=this._getAdditiveTrack(a);if(c){var u=c.keyframes,p=u[u.length-1];l=p&&p.value,3===c.valType&&l&&(l=C_(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,S_(l),i),this._trackKeys.push(a)}s.addKeyframe(e,S_(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(e);o&&(t=o)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var r=this._trackKeys[o],a=this._tracks[r],s=this._getAdditiveTrack(r),l=a.keyframes,c=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[c-1];u&&(t._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var p=new Ab({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var o=!1,r=0;r<i.length;r++)if(i[r]._clip){o=!0;break}o||(t._additiveAnimators=null)}for(r=0;r<n.length;r++)n[r].step(t._target,e);var a=t._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return zv(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<e.length;o++){var r=n[e[o]];r&&!r.isFinished()&&(t?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}var a=!0;for(o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var o=t[i],r=this._tracks[o];if(r&&!r.isFinished()){var a=r.keyframes,s=a[n?0:a.length-1];s&&(e[o]=S_(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||jv(e);for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(o){var r=o.keyframes;if(r.length>1){var a=r.pop();o.addKeyframe(a.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();function k_(){return(new Date).getTime()}var E_,O_,L_=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return S(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=k_()-this._pausedTime,n=t-this._time,i=this._head;i;){var o=i.next;i.step(t,n)?(i.ondestroy(),this.removeClip(i),i=o):i=o}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,eb((function t(){e._running&&(eb(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=k_(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=k_(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=k_()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new D_(e,t.loop);return this.addAnimator(n),n},t}(jy),N_=av.domSupported,P_=(O_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:E_=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:zv(E_,(function(e){var t=e.replace("mouse","pointer");return O_.hasOwnProperty(t)?t:e}))}),R_=["mousemove","mouseup"],z_=["pointermove","pointerup"],V_=!1;function B_(e){var t=e.pointerType;return"pen"===t||"touch"===t}function j_(e){e&&(e.zrByTouch=!0)}function F_(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var G_=function(e,t){this.stopPropagation=xy,this.stopImmediatePropagation=xy,this.preventDefault=xy,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},W_={mousedown:function(e){e=ix(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ix(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ix(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){F_(this,(e=ix(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){V_=!0,e=ix(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){V_||(e=ix(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){j_(e=ix(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),W_.mousemove.call(this,e),W_.mousedown.call(this,e)},touchmove:function(e){j_(e=ix(this.dom,e)),this.handler.processGesture(e,"change"),W_.mousemove.call(this,e)},touchend:function(e){j_(e=ix(this.dom,e)),this.handler.processGesture(e,"end"),W_.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&W_.click.call(this,e)},pointerdown:function(e){W_.mousedown.call(this,e)},pointermove:function(e){B_(e)||W_.mousemove.call(this,e)},pointerup:function(e){W_.mouseup.call(this,e)},pointerout:function(e){B_(e)||W_.mouseout.call(this,e)}};Rv(["click","dblclick","contextmenu"],(function(e){W_[e]=function(t){t=ix(this.dom,t),this.trigger(e,t)}}));var H_={pointermove:function(e){B_(e)||H_.mousemove.call(this,e)},pointerup:function(e){H_.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function U_(e,t){var n=t.domHandlers;av.pointerEventsSupported?Rv(P_.pointer,(function(i){q_(t,i,(function(t){n[i].call(e,t)}))})):(av.touchEventsSupported&&Rv(P_.touch,(function(i){q_(t,i,(function(o){n[i].call(e,o),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),Rv(P_.mouse,(function(i){q_(t,i,(function(o){o=nx(o),t.touching||n[i].call(e,o)}))})))}function Y_(e,t){function n(n){q_(t,n,(function(i){i=nx(i),F_(e,i.target)||(i=function(e,t){return ix(e.dom,new G_(e,t),!0)}(e,i),t.domHandlers[n].call(e,i))}),{capture:!0})}av.pointerEventsSupported?Rv(z_,n):av.touchEventsSupported||Rv(R_,n)}function q_(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,ox(e.domTarget,t,n,i)}function X_(e){var t,n,i,o,r=e.mounted;for(var a in r)r.hasOwnProperty(a)&&(t=e.domTarget,n=a,i=r[a],o=e.listenerOpts[a],t.removeEventListener(n,i,o));e.mounted={}}var $_=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},Z_=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new $_(t,W_),N_&&(i._globalHandlerScope=new $_(document,H_)),U_(i,i._localHandlerScope),i}return S(t,e),t.prototype.dispose=function(){X_(this._localHandlerScope),N_&&X_(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,N_&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Y_(this,t):X_(t)}},t}(jy),K_=1;av.hasGlobalWindow&&(K_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var J_=K_,Q_="#333",ew="#ccc",tw=ux,nw=5e-5;function iw(e){return e>nw||e<-5e-5}var ow=[],rw=[],aw=[1,0,0,1,0,0],sw=Math.abs,lw=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return iw(this.rotation)||iw(this.x)||iw(this.y)||iw(this.scaleX-1)||iw(this.scaleY-1)||iw(this.skewX)||iw(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):tw(n),e&&(t?dx(n,e,n):px(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(tw(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(ow);var n=ow[0]<0?-1:1,i=ow[1]<0?-1:1,o=((ow[0]-n)*t+n)/ow[0]||0,r=((ow[1]-i)*t+i)/ow[1]||0;e[0]*=o,e[1]*=o,e[2]*=r,e[3]*=r}this.invTransform=this.invTransform||[1,0,0,1,0,0],mx(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],dx(rw,e.invTransform,t),t=rw);var n=this.originX,i=this.originY;(n||i)&&(aw[4]=n,aw[5]=i,dx(rw,t,aw),rw[4]-=n,rw[5]-=i,t=rw),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Py(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Py(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&sw(e[0]-1)>1e-10&&sw(e[3]-1)>1e-10?Math.sqrt(sw(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){uw(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,o=e.scaleX,r=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var h=n+a,f=i+s;t[4]=-h*o-p*f*r,t[5]=-f*r-d*h*o}else t[4]=t[5]=0;return t[0]=o,t[3]=r,t[1]=d*o,t[2]=p*r,l&&fx(t,t,l),t[4]+=n+c,t[5]+=i+u,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),cw=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function uw(e,t){for(var n=0;n<cw.length;n++){var i=cw[n];e[i]=t[i]}}var pw={};function dw(e,t){var n=pw[t=t||cv];n||(n=pw[t]=new Eb(500));var i=n.get(e);return null==i&&(i=hv.measureText(e,t).width,n.put(e,i)),i}function hw(e,t,n,i){var o=dw(e,t),r=vw(t),a=gw(0,o,n),s=mw(0,r,i);return new Ax(a,s,o,r)}function fw(e,t,n,i){var o=((e||"")+"").split("\n");if(1===o.length)return hw(o[0],t,n,i);for(var r=new Ax(0,0,0,0),a=0;a<o.length;a++){var s=hw(o[a],t,n,i);0===a?r.copy(s):r.union(s)}return r}function gw(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function mw(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function vw(e){return dw("国",e)}function yw(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function xw(e,t,n){var i=t.position||"inside",o=null!=t.distance?t.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,c=n.y,u="left",p="top";if(i instanceof Array)l+=yw(i[0],n.width),c+=yw(i[1],n.height),u=null,p=null;else switch(i){case"left":l-=o,c+=s,u="right",p="middle";break;case"right":l+=o+a,c+=s,p="middle";break;case"top":l+=a/2,c-=o,u="center",p="bottom";break;case"bottom":l+=a/2,c+=r+o,u="center";break;case"inside":l+=a/2,c+=s,u="center",p="middle";break;case"insideLeft":l+=o,c+=s,p="middle";break;case"insideRight":l+=a-o,c+=s,u="right",p="middle";break;case"insideTop":l+=a/2,c+=o,u="center";break;case"insideBottom":l+=a/2,c+=r-o,u="center",p="bottom";break;case"insideTopLeft":l+=o,c+=o;break;case"insideTopRight":l+=a-o,c+=o,u="right";break;case"insideBottomLeft":l+=o,c+=r-o,p="bottom";break;case"insideBottomRight":l+=a-o,c+=r-o,u="right",p="bottom"}return(e=e||{}).x=l,e.y=c,e.align=u,e.verticalAlign=p,e}var bw="__zr_normal__",_w=cw.concat(["ignore"]),ww=Vv(cw,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Sw={},Cw=new Ax(0,0,0,0),Mw=function(){function e(e){this.id=Tv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,o=t.innerTransformable,r=void 0,a=void 0,s=!1;o.parent=i?this:null;var l=!1;if(o.copyTransform(t),null!=n.position){var c=Cw;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sw,n,c):xw(Sw,n,c),o.x=Sw.x,o.y=Sw.y,r=Sw.align,a=Sw.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var p=void 0,d=void 0;"center"===u?(p=.5*c.width,d=.5*c.height):(p=yw(u[0],c.width),d=yw(u[1],c.height)),l=!0,o.originX=-o.x+p+(i?0:c.x),o.originY=-o.y+d+(i?0:c.y)}}null!=n.rotation&&(o.rotation=n.rotation);var h=n.offset;h&&(o.x+=h[0],o.y+=h[1],l||(o.originX=-h[0],o.originY=-h[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&r===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=r,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Xx,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ew:Q_},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Hb(t);n||(n=[255,255,255,1]);for(var i=n[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,Zb(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Ev(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Xv(e))for(var n=jv(e),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==bw)){var r=i.targetName,a=r?t[r]:t;i.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,_w)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var o=n[i];null==e[o]||o in t||(t[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(bw,!1,e)},e.prototype.useState=function(e,t,n,i){var o=e===bw;if(this.hasState()||!o){var r=this.currentStates,a=this.stateTransition;if(!(Lv(r,e)>=0)||!t&&1!==r.length){var s;if(this.stateProxy&&!o&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||o){o||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,u=this._textGuide;return c&&c.useState(e,t,n,l),u&&u.useState(e,t,n,l),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xx),s}Iv("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],o=this.currentStates,r=e.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(e[s]!==o[s]){a=!1;break}if(a)return;for(s=0;s<r;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&i.push(c)}var u=i[r-1],p=!!(u&&u.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),h=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,p),g&&g.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xx)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Lv(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),o=Lv(i,e),r=Lv(i,t)>=0;o>=0?r?i.splice(o,1):i[o]=t:n&&!r&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var o=e[i];Ev(n,o),o.textConfig&&Ev(t=t||{},o.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,o,r){var a=!(t&&i);t&&t.textConfig?(this.textConfig=Ev({},i?this.textConfig:n.textConfig),Ev(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<_w.length;c++){var u=_w[c],p=o&&ww[u];t&&null!=t[u]?p?(l=!0,s[u]=t[u]):this[u]=t[u]:a&&null!=n[u]&&(p?(l=!0,s[u]=n[u]):this[u]=n[u])}if(!o)for(c=0;c<this.animators.length;c++){var d=this.animators[c],h=d.targetName;d.getLoop()||d.__changeFinalValue(h?(t||n)[h]:t||n)}l&&this._transitionState(e,s,r)},e.prototype._attachComponent=function(e){if(!e.__zr||e.__hostTarget){if(e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}else if("production"!==process.env.NODE_ENV)throw new Error("Recursive component attachment.")}else if("production"!==process.env.NODE_ENV)throw new Error("Text element has been added to zrender.")},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),"production"!==process.env.NODE_ENV&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new lw,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Ev(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Xx;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;if("production"===process.env.NODE_ENV||i){var o=new D_(i,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o}Iv('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=Lv(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];e&&e!==a.scope?o.push(a):a.stop(t)}return this.animators=o,this},e.prototype.animateTo=function(e,t,n){Tw(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Tw(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var o=Tw(this,t,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Xx;var n={};function i(e,t,i){n[e+t+i]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+i+"' instead"),n[e+t+i]=!0)}function o(e,n,o,r){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[o]},set:function(t){e[o]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(t,e,{get:function(){("production"!==process.env.NODE_ENV&&i(e,o,r),this[n])||a(this,this[n]=[]);return this[n]},set:function(t){"production"!==process.env.NODE_ENV&&i(e,o,r),this[o]=t[0],this[r]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(o("position","_legacyPos","x","y"),o("scale","_legacyScale","scaleX","scaleY"),o("origin","_legacyOrigin","originX","originY"))}(),e}();function Tw(e,t,n,i,o){var r=[];Dw(e,"",e,t,n=n||{},i,r,o);var a=r.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,--a<=0&&(s?l&&l():c&&c())},p=function(){--a<=0&&(s?l&&l():c&&c())};a||l&&l(),r.length>0&&n.during&&r[0].during((function(e,t){n.during(t)}));for(var d=0;d<r.length;d++){var h=r[d];u&&h.done(u),p&&h.aborted(p),n.force&&h.duration(n.duration),h.start(n.easing)}return r}function Iw(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function Aw(e,t,n){if(Pv(t[n]))if(Pv(e[n])||(e[n]=[]),Zv(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),Iw(e[n],t[n],i))}else{var o=t[n],r=e[n],a=o.length;if(Pv(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?Iw(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Iw(r,o,a);r.length=o.length}else e[n]=t[n]}function Dw(e,t,n,i,o,r,a,s){for(var l=jv(i),c=o.duration,u=o.delay,p=o.additive,d=o.setToFinal,h=!Xv(r),f=e.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=i[v];if(null!=y&&null!=n[v]&&(h||r[v]))if(!Xv(y)||Pv(y)||Jv(y))g.push(v);else{if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Dw(e,v,n[v],y,o,r&&r[v],a,s)}else s||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var x=g.length;if(!p&&x)for(var b=0;b<f.length;b++){if((w=f[b]).targetName===t)if(w.stopTracks(g)){var _=Lv(f,w);f.splice(_,1)}}if(o.force||(g=Bv(g,(function(e){return t=i[e],o=n[e],!(t===o||Pv(t)&&Pv(o)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(t,o));var t,o})),x=g.length),x>0||o.force&&!a.length){var w,S=void 0,C=void 0,M=void 0;if(s){C={},d&&(S={});for(b=0;b<x;b++){C[v=g[b]]=n[v],d?S[v]=i[v]:n[v]=i[v]}}else if(d){M={};for(b=0;b<x;b++){M[v=g[b]]=S_(n[v]),Aw(n,i,v)}}(w=new D_(n,!1,!1,p?Bv(f,(function(e){return e.targetName===t})):null)).targetName=t,o.scope&&(w.scope=o.scope),d&&S&&w.whenWithKeys(0,S,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==c?500:c,s?C:i,g).delay(u||0),e.addAnimator(w,t),a.push(w)}}Nv(Mw,jy),Nv(Mw,lw);var kw=Mw,Ew=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return S(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),"production"!==process.env.NODE_ENV&&e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Lv(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=Lv(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(t,o,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(t,i);i.isGroup&&!o&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Ax(0,0,0,0),n=e||this._children,i=[],o=null,r=0;r<n.length;r++){var a=n[r];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Ax.applyTransform(t,s,l),(o=o||t.clone()).union(t)):(o=o||s.clone()).union(s)}}return o||t},t}(kw);Ew.prototype.type="group";
|
|
13
|
+
/*!
|
|
14
|
+
* ZRender, a high performance 2d drawing library.
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
17
|
+
* All rights reserved.
|
|
18
|
+
*
|
|
19
|
+
* LICENSE
|
|
20
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
21
|
+
*/
|
|
22
|
+
var Ow={},Lw={};var Nw,Pw=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new Qx,r=n.renderer||"canvas";if(Ow[r]||(r=jv(Ow)[0]),"production"!==process.env.NODE_ENV&&!Ow[r])throw new Error("Renderer '"+r+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Ow[r](t,o,n,e),s=n.ssr||a.ssrOnly;this.storage=o,this.painter=a;var l,c=av.node||av.worker||s?null:new Z_(a.getViewportRoot(),a.root),u=n.useCoarsePointer;(null==u||"auto"===u?av.touchEventsSupported:!!u)&&(l=ny(n.pointerSize,44)),this.handler=new Bx(o,a,c,a.root,l),this.animation=new L_({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return Kb(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,o=0;o<i;o++)n+=Kb(t[o].color,1);return(n/=i)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=k_();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=k_();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ew&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,function(e){delete Lw[e]}(this.id))},e}();function Rw(e,t){var n=new Pw(Tv(),e,t);return Lw[n.id]=n,n}var zw=1e-4,Vw=20;function Bw(e,t,n,i){var o=t[0],r=t[1],a=n[0],s=n[1],l=r-o,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(i)if(l>0){if(e<=o)return a;if(e>=r)return s}else{if(e>=o)return a;if(e<=r)return s}else{if(e===o)return a;if(e===r)return s}return(e-o)/l*c+a}function jw(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return Uv(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function Fw(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Vw),e=(+e).toFixed(t),n?e:+e}function Gw(e){return e.sort((function(e,t){return e-t})),e}function Ww(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Hw(e)}function Hw(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,o=n>0?n:t.length,r=t.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function Uw(e,t){var n=Math.log,i=Math.LN10,o=Math.floor(n(e[1]-e[0])/i),r=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function Yw(e,t){var n=Math.max(Ww(e),Ww(t)),i=e+t;return n>Vw?i:Fw(i,n)}var qw=9007199254740991;function Xw(e){var t=2*Math.PI;return(e%t+t)%t}function $w(e){return e>-zw&&e<zw}var Zw=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Kw(e){if(e instanceof Date)return e;if(Uv(e)){var t=Zw.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function Jw(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Qw(e,t){var n=Jw(e),i=Math.pow(10,n),o=e/i;return e=(t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e}function eS(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),o=+e[i-1],r=n-i;return r?o+r*(e[i]-o):o}function tS(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var o=e[i].interval,r=e[i].close,a=0;a<2;a++)o[a]<=t&&(o[a]=t,r[a]=a?1:1-n),t=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}function nS(e){var t=parseFloat(e);return t==e&&(0!==t||!Uv(e)||e.indexOf("x")<=0)?t:NaN}function iS(e){return!isNaN(nS(e))}function oS(){return Math.round(9*Math.random())}function rS(e,t){return 0===t?e:rS(t,e%t)}function aS(e,t){return null==e?t:null==t?e:e*t/rS(e,t)}var sS="[ECharts] ",lS={},cS="undefined"!=typeof console&&console.warn&&console.log;function uS(e,t,n){if(cS){if(n){if(lS[t])return;lS[t]=!0}console[e](sS+t)}}function pS(e,t){uS("warn",e,t)}function dS(e,t){uS("error",e,t)}function hS(e){"production"!==process.env.NODE_ENV&&uS("warn","DEPRECATED: "+e,!0)}function fS(e,t,n){"production"!==process.env.NODE_ENV&&hS((n?"["+n+"]":"")+e+" is deprecated, use "+t+" instead.")}function gS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";if("production"!==process.env.NODE_ENV){var i=function(e){return void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":ey(e)?"NaN":e instanceof Date?"Date("+e.toISOString()+")":Hv(e)?"function () { ... }":Qv(e)?e+"":null};n=zv(e,(function(e){if(Uv(e))return e;var t=i(e);if(null!=t)return t;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(e,(function(e,t){var n=i(t);return null==n?t:n}))}catch(e){return"?"}})).join(" ")}return n}function mS(e){throw new Error(e)}function vS(e,t,n){return(t-e)*n+e}var yS="series\0",xS="\0_ec_\0";function bS(e){return e instanceof Array?e:null==e?[]:[e]}function _S(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!e.emphasis[t].hasOwnProperty(r)&&e[t].hasOwnProperty(r)&&(e.emphasis[t][r]=e[t][r])}}}var wS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function SS(e){return!Xv(e)||Wv(e)||e instanceof Date?e:e.value}function CS(e){return Xv(e)&&!(e instanceof Array)}function MS(e,t,n){var i="normalMerge"===n,o="replaceMerge"===n,r="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=fy();Rv(t,(function(e,n){Xv(e)?"production"!==process.env.NODE_ENV&&(null==e.id||kS(e.id)||DS(e.id),null==e.name||kS(e.name)||DS(e.name)):t[n]=null}));var s,l,c=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var o=0;o<e.length;o++){var r=e[o];r&&null!=r.id&&t.set(r.id,o),i.push({existing:"replaceMerge"===n||OS(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(e,a,n);return(i||o)&&function(e,t,n,i){Rv(i,(function(o,r){if(o&&null!=o.id){var a=IS(o.id),s=n.get(a);if(null!=s){var l=e[s];ay(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=o,l.existing=t[s],i[r]=null}}}))}(c,e,a,t),i&&function(e,t){Rv(t,(function(n,i){if(n&&null!=n.name)for(var o=0;o<e.length;o++){var r=e[o].existing;if(!e[o].newOption&&r&&(null==r.id||null==n.id)&&!OS(n)&&!OS(r)&&TS("name",r,n))return e[o].newOption=n,void(t[i]=null)}}))}(c,t),i||o?function(e,t,n){Rv(t,(function(t){if(t){for(var i,o=0;(i=e[o])&&(i.newOption||OS(i.existing)||i.existing&&null!=t.id&&!TS("id",t,i.existing));)o++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),o++}}))}(c,t,o):r&&function(e,t){Rv(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(c,t),s=c,l=fy(),Rv(s,(function(e){var t=e.existing;t&&l.set(t.id,e)})),Rv(s,(function(e){var t=e.newOption;ay(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),Rv(s,(function(e,t){var n=e.existing,i=e.newOption,o=e.keyInfo;if(Xv(i)){if(o.name=null!=i.name?IS(i.name):n?n.name:yS+t,n)o.id=IS(n.id);else if(null!=i.id)o.id=IS(i.id);else{var r=0;do{o.id="\0"+o.name+"\0"+r++}while(l.get(o.id))}l.set(o.id,e)}})),c}function TS(e,t,n){var i=AS(t[e],null),o=AS(n[e],null);return null!=i&&null!=o&&i===o}function IS(e){if("production"!==process.env.NODE_ENV&&null==e)throw new Error;return AS(e,"")}function AS(e,t){return null==e?t:Uv(e)?e:qv(e)||Yv(e)?e+"":t}function DS(e){"production"!==process.env.NODE_ENV&&pS("`"+e+"` is invalid id or name. Must be a string or number.")}function kS(e){return Yv(e)||iS(e)}function ES(e){var t=e.name;return!(!t||!t.indexOf(yS))}function OS(e){return e&&null!=e.id&&0===IS(e.id).indexOf(xS)}function LS(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Wv(t.dataIndex)?zv(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Wv(t.name)?zv(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function NS(){var e="__ec_inner_"+PS++;return function(t){return t[e]||(t[e]={})}}var PS=oS();function RS(e,t,n){var i=zS(t,n),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!o&&s&&r.set(s,{}),r.each((function(t,i){var o=jS(e,i,t,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=o.models,a[i+"Model"]=o.models[0]})),a}function zS(e,t){var n;if(Uv(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var o=fy(),r={},a=!1;return Rv(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&Lv(t.includeMainTypes,s)<0))a=a||!!s,(o.get(s)||o.set(s,{}))[l]=e}else r[n]=e})),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var VS={useDefault:!0,enableAll:!1,enableNone:!1},BS={useDefault:!1,enableAll:!0,enableNone:!0};function jS(e,t,n,i){i=i||VS;var o=n.index,r=n.id,a=n.name,s={models:null,specified:null!=o||null!=r||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===o||!1===o?(ay(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===o&&(ay(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),s.models=e.queryComponents({mainType:t,index:o,id:r,name:a}),s)}function FS(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function GS(e,t){var n=fy(),i=[];return Rv(e,(function(e){var o=t(e);(n.get(o)||(i.push(o),n.set(o,[]))).push(e)})),{keys:i,buckets:n}}function WS(e,t,n,i,o){var r=null==t||"auto"===t;if(null==i)return i;if(qv(i))return Fw(f=vS(n||0,i,o),r?Math.max(Ww(n||0),Ww(i)):t);if(Uv(i))return o<1?n:i;for(var a=[],s=n,l=i,c=Math.max(s?s.length:0,l.length),u=0;u<c;++u){var p=e.getDimensionInfo(u);if(p&&"ordinal"===p.type)a[u]=(o<1&&s?s:l)[u];else{var d=s&&s[u]?s[u]:0,h=l[u],f=vS(d,h,o);a[u]=Fw(f,r?Math.max(Ww(d),Ww(h)):t)}}return a}var HS=".",US="___EC__COMPONENT__CONTAINER___",YS="___EC__EXTENDED_CLASS___";function qS(e){var t={main:"",sub:""};if(e){var n=e.split(HS);t.main=n[0]||"",t.sub=n[1]||""}return t}function XS(e,t){e.$constructor=e,e.extend=function(e){"production"!==process.env.NODE_ENV&&Rv(t,(function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?" in "+e.type:"")+".")}));var n,i,o=this;return Hv(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?n=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t}(o):(n=function(){(e.$constructor||o).apply(this,arguments)},function(e,t){var n=e.prototype;function i(){}for(var o in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(o)&&(e.prototype[o]=n[o]);e.prototype.constructor=e,e.superClass=t}(n,this)),Ev(n.prototype,e),n[YS]=!0,n.extend=this.extend,n.superCall=KS,n.superApply=JS,n.superClass=o,n}}function $S(e,t){e.extend=t.extend}var ZS=Math.round(10*Math.random());function KS(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function JS(e,t,n){return this.superClass.prototype[t].apply(e,n)}function QS(e){var t={};e.registerClass=function(e){var n,i=e.type||e.prototype.type;if(i){ay(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),e.prototype.type=i;var o=qS(i);if(o.sub){if(o.sub!==US){var r=function(e){var n=t[e.main];n&&n[US]||((n=t[e.main]={})[US]=!0);return n}(o);r[o.sub]=e}}else"production"!==process.env.NODE_ENV&&t[o.main]&&console.warn(o.main+" exists."),t[o.main]=e}return e},e.getClass=function(e,n,i){var o=t[e];if(o&&o[US]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){var n=qS(e),i=[],o=t[n.main];return o&&o[US]?Rv(o,(function(e,t){t!==US&&i.push(e)})):i.push(o),i},e.hasClass=function(e){var n=qS(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return Rv(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=qS(e),i=t[n.main];return i&&i[US]}}function eC(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,o){for(var r={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&Lv(i,s)>=0||o&&Lv(o,s)<0)){var l=n.getShallow(s,t);null!=l&&(r[e[a][0]]=l)}}return r}}var tC=eC([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),nC=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return tC(this,e,t)},e}(),iC=new Eb(50);function oC(e){if("string"==typeof e){var t=iC.get(e);return t&&t.image}return e}function rC(e,t,n,i,o){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var r=iC.get(e),a={hostEl:n,cb:i,cbPayload:o};return r?!sC(t=r.image)&&r.pending.push(a):((t=hv.loadImage(e,aC,aC)).__zrImageSrc=e,iC.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function aC(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function sC(e){return e&&e.width&&e.height}var lC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cC(e,t,n,i,o){if(!t)return"";var r=(e+"").split("\n");o=uC(t,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=pC(r[a],o);return r.join("\n")}function uC(e,t,n,i){var o=Ev({},i=i||{});o.font=t,n=ny(n,"..."),o.maxIterations=ny(i.maxIterations,2);var r=o.minChar=ny(i.minChar,0);o.cnCharWidth=dw("国",t);var a=o.ascCharWidth=dw("a",t);o.placeholder=ny(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<r&&s>=a;l++)s-=a;var c=dw(n,t);return c>s&&(n="",c=0),s=e-c,o.ellipsis=n,o.ellipsisWidth=c,o.contentWidth=s,o.containerWidth=e,o}function pC(e,t){var n=t.containerWidth,i=t.font,o=t.contentWidth;if(!n)return"";var r=dw(e,i);if(r<=n)return e;for(var a=0;;a++){if(r<=o||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?dC(e,o,t.ascCharWidth,t.cnCharWidth):r>0?Math.floor(e.length*o/r):0;r=dw(e=e.substr(0,s),i)}return""===e&&(e=t.placeholder),e}function dC(e,t,n,i){for(var o=0,r=0,a=e.length;r<a&&o<t;r++){var s=e.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}var hC=function(){},fC=function(e){this.tokens=[],e&&(this.tokens=e)},gC=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function mC(e,t,n,i,o){var r,a,s=""===t,l=o&&n.rich[o]||{},c=e.lines,u=l.font||n.font,p=!1;if(i){var d=l.padding,h=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=yw(l.width,i.width)+h;c.length>0&&f+i.accumWidth>i.width&&(r=t.split("\n"),p=!0),i.accumWidth=f}else{var g=xC(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,a=g.linesWidths,r=g.lines}}else r=t.split("\n");for(var m=0;m<r.length;m++){var v=r[m],y=new hC;if(y.styleName=o,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[m]:dw(v,u),m||p)c.push(new fC([y]));else{var x=(c[c.length-1]||(c[0]=new fC)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=y:(v||!b||s)&&x.push(y)}}}var vC=Vv(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function yC(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!vC[e]}function xC(e,t,n,i,o){for(var r=[],a=[],s="",l="",c=0,u=0,p=0;p<e.length;p++){var d=e.charAt(p);if("\n"!==d){var h=dw(d,t),f=!i&&!yC(d);(r.length?u+h>n:o+u+h>n)?u?(s||l)&&(f?(s||(s=l,l="",u=c=0),r.push(s),a.push(u-c),l+=d,s="",u=c+=h):(l&&(s+=l,l="",c=0),r.push(s),a.push(u),s=d,u=h)):f?(r.push(l),a.push(c),l=d,c=h):(r.push(d),a.push(h)):(u+=h,f?(l+=d,c+=h):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),r.push(s),a.push(u),s="",l="",c=0,u=0}return r.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(r.push(s),a.push(u)),1===r.length&&(u+=o),{accumWidth:u,lines:r,linesWidths:a}}var bC="__zr_style_"+Math.round(10*Math.random()),_C={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},wC={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_C[bC]=!0;var SC=["z","z2","invisible"],CC=["invisible"],MC=function(e){function t(t){return e.call(this,t)||this}var n;return S(t,e),t.prototype._init=function(t){for(var n=jv(t),i=0;i<n.length;i++){var o=n[i];"style"===o?this.useStyle(t[o]):e.prototype.attrKV.call(this,o,t[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){TC.copy(e.getBoundingRect()),e.transform&&TC.applyTransform(e.transform);return IC.width=t,IC.height=n,!TC.intersect(IC)}(this,e,t)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,r=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Ax(0,0,0,0)),t?Ax.applyTransform(e,n,t):e.copy(n),(o||r||a)&&(e.width+=2*o+Math.abs(r),e.height+=2*o+Math.abs(a),e.x=Math.min(e.x,e.x+r-o),e.y=Math.min(e.y,e.y+a-o));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Ax(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:Ev(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return my(_C,e)},t.prototype.useStyle=function(e){e[bC]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[bC]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,SC)},t.prototype._applyStateObj=function(t,n,i,o,r,a){e.prototype._applyStateObj.call(this,t,n,i,o,r,a);var s,l=!(n&&o);if(n&&n.style?r?o?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(r){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var u=jv(c),p=0;p<u.length;p++){(h=u[p])in s&&(s[h]=s[h],this.style[h]=c[h])}var d=jv(s);for(p=0;p<d.length;p++){var h=d[p];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?CC:SC;for(p=0;p<f.length;p++){h=f[p];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var r=t[o];r.style&&(n=n||{},this._mergeStyle(n,r.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return Ev(e,t),e},t.prototype.getAnimationStyleProps=function(){return wC},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|Xx)),t}(kw),TC=new Ax(0,0,0,0),IC=new Ax(0,0,0,0);var AC=MC,DC=Math.min,kC=Math.max,EC=Math.sin,OC=Math.cos,LC=2*Math.PI,NC=_y(),PC=_y(),RC=_y();function zC(e,t,n){if(0!==e.length){for(var i=e[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],o=DC(o,i[0]),r=kC(r,i[0]),a=DC(a,i[1]),s=kC(s,i[1]);t[0]=o,t[1]=a,n[0]=r,n[1]=s}}function VC(e,t,n,i,o,r){o[0]=DC(e,n),o[1]=DC(t,i),r[0]=kC(e,n),r[1]=kC(t,i)}var BC=[],jC=[];function FC(e,t,n,i,o,r,a,s,l,c){var u=mb,p=hb,d=u(e,n,o,a,BC);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<d;h++){var f=p(e,n,o,a,BC[h]);l[0]=DC(f,l[0]),c[0]=kC(f,c[0])}d=u(t,i,r,s,jC);for(h=0;h<d;h++){var g=p(t,i,r,s,jC[h]);l[1]=DC(g,l[1]),c[1]=kC(g,c[1])}l[0]=DC(e,l[0]),c[0]=kC(e,c[0]),l[0]=DC(a,l[0]),c[0]=kC(a,c[0]),l[1]=DC(t,l[1]),c[1]=kC(t,c[1]),l[1]=DC(s,l[1]),c[1]=kC(s,c[1])}function GC(e,t,n,i,o,r,a,s){var l=wb,c=bb,u=kC(DC(l(e,n,o),1),0),p=kC(DC(l(t,i,r),1),0),d=c(e,n,o,u),h=c(t,i,r,p);a[0]=DC(e,o,d),a[1]=DC(t,r,h),s[0]=kC(e,o,d),s[1]=kC(t,r,h)}function WC(e,t,n,i,o,r,a,s,l){var c=Ry,u=zy,p=Math.abs(o-r);if(p%LC<1e-4&&p>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(NC[0]=OC(o)*n+e,NC[1]=EC(o)*i+t,PC[0]=OC(r)*n+e,PC[1]=EC(r)*i+t,c(s,NC,PC),u(l,NC,PC),(o%=LC)<0&&(o+=LC),(r%=LC)<0&&(r+=LC),o>r&&!a?r+=LC:o<r&&a&&(o+=LC),a){var d=r;r=o,o=d}for(var h=0;h<r;h+=Math.PI/2)h>o&&(RC[0]=OC(h)*n+e,RC[1]=EC(h)*i+t,c(s,RC,s),u(l,RC,l))}var HC={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},UC=[],YC=[],qC=[],XC=[],$C=[],ZC=[],KC=Math.min,JC=Math.max,QC=Math.cos,eM=Math.sin,tM=Math.abs,nM=Math.PI,iM=2*nM,oM="undefined"!=typeof Float32Array,rM=[];function aM(e){return Math.round(e/nM*1e8)/1e8%2*nM}function sM(e,t){var n=aM(e[0]);n<0&&(n+=iM);var i=n-e[0],o=e[1];o+=i,!t&&o-n>=iM?o=n+iM:t&&n-o>=iM?o=n-iM:!t&&n>o?o=n+(iM-aM(n-o)):t&&n<o&&(o=n-(iM-aM(o-n))),e[0]=n,e[1]=o}var lM=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=tM(n/J_/e)||0,this._uy=tM(n/J_/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(HC.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=tM(e-this._xi),i=tM(t-this._yi),o=n>this._ux||i>this._uy;if(this.addData(HC.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var r=n*n+i*i;r>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=r)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,o,r){return this._drawPendingPt(),this.addData(HC.C,e,t,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,o,r),this._xi=o,this._yi=r,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(HC.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,o,r){this._drawPendingPt(),rM[0]=i,rM[1]=o,sM(rM,r),i=rM[0];var a=(o=rM[1])-i;return this.addData(HC.A,e,t,n,n,i,a,0,r?0:1),this._ctx&&this._ctx.arc(e,t,n,i,o,r),this._xi=QC(o)*n+e,this._yi=eM(o)*n+t,this},e.prototype.arcTo=function(e,t,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,o),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(HC.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(HC.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!oM||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,o=0;o<t;o++)n+=e[o].len();oM&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<t;o++)for(var r=e[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},e.prototype.addData=function(e,t,n,i,o,r,a,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,oM&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){qC[0]=qC[1]=$C[0]=$C[1]=Number.MAX_VALUE,XC[0]=XC[1]=ZC[0]=ZC[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,o=0,r=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(o=n=t[e],r=i=t[e+1]),a){case HC.M:n=o=t[e++],i=r=t[e++],$C[0]=o,$C[1]=r,ZC[0]=o,ZC[1]=r;break;case HC.L:VC(n,i,t[e],t[e+1],$C,ZC),n=t[e++],i=t[e++];break;case HC.C:FC(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],$C,ZC),n=t[e++],i=t[e++];break;case HC.Q:GC(n,i,t[e++],t[e++],t[e],t[e+1],$C,ZC),n=t[e++],i=t[e++];break;case HC.A:var l=t[e++],c=t[e++],u=t[e++],p=t[e++],d=t[e++],h=t[e++]+d;e+=1;var f=!t[e++];s&&(o=QC(d)*u+l,r=eM(d)*p+c),WC(l,c,u,p,d,h,f,$C,ZC),n=QC(h)*u+l,i=eM(h)*p+c;break;case HC.R:VC(o=n=t[e++],r=i=t[e++],o+t[e++],r+t[e++],$C,ZC);break;case HC.Z:n=o,i=r}Ry(qC,qC,$C),zy(XC,XC,ZC)}return 0===e&&(qC[0]=qC[1]=XC[0]=XC[1]=0),new Ax(qC[0],qC[1],XC[0]-qC[0],XC[1]-qC[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,u=0,p=0;p<t;){var d=e[p++],h=1===p;h&&(a=o=e[p],s=r=e[p+1]);var f=-1;switch(d){case HC.M:o=a=e[p++],r=s=e[p++];break;case HC.L:var g=e[p++],m=(x=e[p++])-r;(tM(D=g-o)>n||tM(m)>i||p===t-1)&&(f=Math.sqrt(D*D+m*m),o=g,r=x);break;case HC.C:var v=e[p++],y=e[p++],x=(g=e[p++],e[p++]),b=e[p++],_=e[p++];f=xb(o,r,v,y,g,x,b,_,10),o=b,r=_;break;case HC.Q:f=Mb(o,r,v=e[p++],y=e[p++],g=e[p++],x=e[p++],10),o=g,r=x;break;case HC.A:var w=e[p++],S=e[p++],C=e[p++],M=e[p++],T=e[p++],I=e[p++],A=I+T;p+=1,h&&(a=QC(T)*C+w,s=eM(T)*M+S),f=JC(C,M)*KC(iM,Math.abs(I)),o=QC(A)*C+w,r=eM(A)*M+S;break;case HC.R:a=o=e[p++],s=r=e[p++],f=2*e[p++]+2*e[p++];break;case HC.Z:var D=a-o;m=s-r;f=Math.sqrt(D*D+m*m),o=a,r=s}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,i,o,r,a,s,l,c,u,p,d=this.data,h=this._ux,f=this._uy,g=this._len,m=t<1,v=0,y=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))e:for(var b=0;b<g;){var _=d[b++],w=1===b;switch(w&&(n=o=d[b],i=r=d[b+1]),_!==HC.L&&x>0&&(e.lineTo(u,p),x=0),_){case HC.M:n=o=d[b++],i=r=d[b++],e.moveTo(o,r);break;case HC.L:a=d[b++],s=d[b++];var S=tM(a-o),C=tM(s-r);if(S>h||C>f){if(m){if(v+(X=l[y++])>c){var M=(c-v)/X;e.lineTo(o*(1-M)+a*M,r*(1-M)+s*M);break e}v+=X}e.lineTo(a,s),o=a,r=s,x=0}else{var T=S*S+C*C;T>x&&(u=a,p=s,x=T)}break;case HC.C:var I=d[b++],A=d[b++],D=d[b++],k=d[b++],E=d[b++],O=d[b++];if(m){if(v+(X=l[y++])>c){vb(o,I,D,E,M=(c-v)/X,UC),vb(r,A,k,O,M,YC),e.bezierCurveTo(UC[1],YC[1],UC[2],YC[2],UC[3],YC[3]);break e}v+=X}e.bezierCurveTo(I,A,D,k,E,O),o=E,r=O;break;case HC.Q:I=d[b++],A=d[b++],D=d[b++],k=d[b++];if(m){if(v+(X=l[y++])>c){Sb(o,I,D,M=(c-v)/X,UC),Sb(r,A,k,M,YC),e.quadraticCurveTo(UC[1],YC[1],UC[2],YC[2]);break e}v+=X}e.quadraticCurveTo(I,A,D,k),o=D,r=k;break;case HC.A:var L=d[b++],N=d[b++],P=d[b++],R=d[b++],z=d[b++],V=d[b++],B=d[b++],j=!d[b++],F=P>R?P:R,G=tM(P-R)>.001,W=z+V,H=!1;if(m)v+(X=l[y++])>c&&(W=z+V*(c-v)/X,H=!0),v+=X;if(G&&e.ellipse?e.ellipse(L,N,P,R,B,z,W,j):e.arc(L,N,F,z,W,j),H)break e;w&&(n=QC(z)*P+L,i=eM(z)*R+N),o=QC(W)*P+L,r=eM(W)*R+N;break;case HC.R:n=o=d[b],i=r=d[b+1],a=d[b++],s=d[b++];var U=d[b++],Y=d[b++];if(m){if(v+(X=l[y++])>c){var q=c-v;e.moveTo(a,s),e.lineTo(a+KC(q,U),s),(q-=U)>0&&e.lineTo(a+U,s+KC(q,Y)),(q-=Y)>0&&e.lineTo(a+JC(U-q,0),s+Y),(q-=U)>0&&e.lineTo(a,s+JC(Y-q,0));break e}v+=X}e.rect(a,s,U,Y);break;case HC.Z:if(m){var X;if(v+(X=l[y++])>c){M=(c-v)/X;e.lineTo(o*(1-M)+n*M,r*(1-M)+i*M);break e}v+=X}e.closePath(),o=n,r=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=HC,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function cM(e,t,n,i,o,r,a){if(0===o)return!1;var s=o,l=0;if(a>t+s&&a>i+s||a<t-s&&a<i-s||r>e+s&&r>n+s||r<e-s&&r<n-s)return!1;if(e===n)return Math.abs(r-e)<=s/2;var c=(l=(t-i)/(e-n))*r-a+(e*i-n*t)/(e-n);return c*c/(l*l+1)<=s/2*s/2}function uM(e,t,n,i,o,r,a,s,l,c,u){if(0===l)return!1;var p=l;return!(u>t+p&&u>i+p&&u>r+p&&u>s+p||u<t-p&&u<i-p&&u<r-p&&u<s-p||c>e+p&&c>n+p&&c>o+p&&c>a+p||c<e-p&&c<n-p&&c<o-p&&c<a-p)&&yb(e,t,n,i,o,r,a,s,c,u,null)<=p/2}function pM(e,t,n,i,o,r,a,s,l){if(0===a)return!1;var c=a;return!(l>t+c&&l>i+c&&l>r+c||l<t-c&&l<i-c&&l<r-c||s>e+c&&s>n+c&&s>o+c||s<e-c&&s<n-c&&s<o-c)&&Cb(e,t,n,i,o,r,s,l,null)<=c/2}var dM=2*Math.PI;function hM(e){return(e%=dM)<0&&(e+=dM),e}var fM=2*Math.PI;function gM(e,t,n,i,o,r,a,s,l){if(0===a)return!1;var c=a;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(i-o)%fM<1e-4)return!0;if(r){var p=i;i=hM(o),o=hM(p)}else i=hM(i),o=hM(o);i>o&&(o+=fM);var d=Math.atan2(l,s);return d<0&&(d+=fM),d>=i&&d<=o||d+fM>=i&&d+fM<=o}function mM(e,t,n,i,o,r){if(r>t&&r>i||r<t&&r<i)return 0;if(i===t)return 0;var a=(r-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===o?1/0:l>o?s:0}var vM=lM.CMD,yM=2*Math.PI,xM=1e-4;var bM=[-1,-1,-1],_M=[-1,-1];function wM(e,t,n,i,o,r,a,s,l,c){if(c>t&&c>i&&c>r&&c>s||c<t&&c<i&&c<r&&c<s)return 0;var u,p=gb(t,i,r,s,c,bM);if(0===p)return 0;for(var d=0,h=-1,f=void 0,g=void 0,m=0;m<p;m++){var v=bM[m],y=0===v||1===v?.5:1;hb(e,n,o,a,v)<l||(h<0&&(h=mb(t,i,r,s,_M),_M[1]<_M[0]&&h>1&&(u=void 0,u=_M[0],_M[0]=_M[1],_M[1]=u),f=hb(t,i,r,s,_M[0]),h>1&&(g=hb(t,i,r,s,_M[1]))),2===h?v<_M[0]?d+=f<t?y:-y:v<_M[1]?d+=g<f?y:-y:d+=s<g?y:-y:v<_M[0]?d+=f<t?y:-y:d+=s<f?y:-y)}return d}function SM(e,t,n,i,o,r,a,s){if(s>t&&s>i&&s>r||s<t&&s<i&&s<r)return 0;var l=function(e,t,n,i,o){var r=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(pb(r))db(a)&&(u=-s/a)>=0&&u<=1&&(o[l++]=u);else{var c=a*a-4*r*s;if(pb(c))(u=-a/(2*r))>=0&&u<=1&&(o[l++]=u);else if(c>0){var u,p=ib(c),d=(-a-p)/(2*r);(u=(-a+p)/(2*r))>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}(t,i,r,s,bM);if(0===l)return 0;var c=wb(t,i,r);if(c>=0&&c<=1){for(var u=0,p=bb(t,i,r,c),d=0;d<l;d++){var h=0===bM[d]||1===bM[d]?.5:1;bb(e,n,o,bM[d])<a||(bM[d]<c?u+=p<t?h:-h:u+=r<p?h:-h)}return u}h=0===bM[0]||1===bM[0]?.5:1;return bb(e,n,o,bM[0])<a?0:r<t?h:-h}function CM(e,t,n,i,o,r,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);bM[0]=-l,bM[1]=l;var c=Math.abs(i-o);if(c<1e-4)return 0;if(c>=yM-1e-4){i=0,o=yM;var u=r?1:-1;return a>=bM[0]+e&&a<=bM[1]+e?u:0}if(i>o){var p=i;i=o,o=p}i<0&&(i+=yM,o+=yM);for(var d=0,h=0;h<2;h++){var f=bM[h];if(f+e>a){var g=Math.atan2(s,f);u=r?1:-1;g<0&&(g=yM+g),(g>=i&&g<=o||g+yM>=i&&g+yM<=o)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function MM(e,t,n,i,o){for(var r,a,s,l,c=e.data,u=e.len(),p=0,d=0,h=0,f=0,g=0,m=0;m<u;){var v=c[m++],y=1===m;switch(v===vM.M&&m>1&&(n||(p+=mM(d,h,f,g,i,o))),y&&(f=d=c[m],g=h=c[m+1]),v){case vM.M:d=f=c[m++],h=g=c[m++];break;case vM.L:if(n){if(cM(d,h,c[m],c[m+1],t,i,o))return!0}else p+=mM(d,h,c[m],c[m+1],i,o)||0;d=c[m++],h=c[m++];break;case vM.C:if(n){if(uM(d,h,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],t,i,o))return!0}else p+=wM(d,h,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],i,o)||0;d=c[m++],h=c[m++];break;case vM.Q:if(n){if(pM(d,h,c[m++],c[m++],c[m],c[m+1],t,i,o))return!0}else p+=SM(d,h,c[m++],c[m++],c[m],c[m+1],i,o)||0;d=c[m++],h=c[m++];break;case vM.A:var x=c[m++],b=c[m++],_=c[m++],w=c[m++],S=c[m++],C=c[m++];m+=1;var M=!!(1-c[m++]);r=Math.cos(S)*_+x,a=Math.sin(S)*w+b,y?(f=r,g=a):p+=mM(d,h,r,a,i,o);var T=(i-x)*w/_+x;if(n){if(gM(x,b,w,S,S+C,M,t,T,o))return!0}else p+=CM(x,b,w,S,S+C,M,T,o);d=Math.cos(S+C)*_+x,h=Math.sin(S+C)*w+b;break;case vM.R:if(f=d=c[m++],g=h=c[m++],r=f+c[m++],a=g+c[m++],n){if(cM(f,g,r,g,t,i,o)||cM(r,g,r,a,t,i,o)||cM(r,a,f,a,t,i,o)||cM(f,a,f,g,t,i,o))return!0}else p+=mM(r,g,r,a,i,o),p+=mM(f,a,f,g,i,o);break;case vM.Z:if(n){if(cM(d,h,f,g,t,i,o))return!0}else p+=mM(d,h,f,g,i,o);d=f,h=g}}return n||(s=h,l=g,Math.abs(s-l)<xM)||(p+=mM(d,h,f,g,i,o)||0),0!==p}var TM=Ov({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_C),IM={style:Ov({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},wC.style)},AM=cw.concat(["invisible","culling","z","z2","zlevel","parent"]),DM=function(e){function t(t){return e.call(this,t)||this}var n;return S(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(e){n.buildPath(e,n.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s<AM.length;++s)o[AM[s]]=this[AM[s]];o.__dirty|=Xx}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=jv(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<n.length;o++){var r=n[o],a=t[r];"style"===r?this.style?Ev(this.style,a):this.useStyle(a):"shape"===r?Ev(this.shape,a):e.prototype.attrKV.call(this,r,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Uv(e)){var t=Kb(e,0);return t>.5?Q_:t>.2?"#eee":ew}if(e)return ew}return Q_},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Uv(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Kb(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~$x},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new lM(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&$x)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var r=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){r.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(r.width+=s/a,r.height+=s/a,r.x-=s/a/2,r.y-=s/a/2)}return r}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),o=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var r=this.path;if(this.hasStroke()){var a=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,i){return MM(e,t,!0,n,i)}(r,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return MM(e,0,!1,t,n)}(r,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=$x,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Ev(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&$x)},t.prototype.createStyle=function(e){return my(TM,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Ev({},this.shape))},t.prototype._applyStateObj=function(t,n,i,o,r,a){e.prototype._applyStateObj.call(this,t,n,i,o,r,a);var s,l=!(n&&o);if(n&&n.shape?r?o?s=n.shape:(s=Ev({},i.shape),Ev(s,n.shape)):(s=Ev({},o?this.shape:i.shape),Ev(s,n.shape)):l&&(s=i.shape),s)if(r){this.shape=Ev({},this.shape);for(var c={},u=jv(s),p=0;p<u.length;p++){var d=u[p];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(t,{shape:c},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var r=t[o];r.shape&&(n=n||{},this._mergeStyle(n,r.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return IM},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return S(n,t),n.prototype.getDefaultStyle=function(){return Av(e.style)},n.prototype.getDefaultShape=function(){return Av(e.shape)},n}(t);for(var i in e)"function"==typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Xx|$x)),t}(AC),kM=DM,EM=Ov({strokeFirst:!0,font:cv,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},TM),OM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return my(EM,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=fw(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(AC);OM.prototype.type="tspan";var LM=OM,NM=Ov({x:0,y:0},_C),PM={style:Ov({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},wC.style)};var RM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.createStyle=function(e){return my(NM,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i,o=(i=t.image)&&"string"!=typeof i&&i.width&&i.height?t.image:this.__image;if(!o)return 0;var r="width"===e?"height":"width",a=t[r];return null==a?o[e]:o[e]/o[r]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return PM},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Ax(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(AC);RM.prototype.type="image";var zM=RM;var VM=Math.round;function BM(e,t,n){if(t){var i=t.x1,o=t.x2,r=t.y1,a=t.y2;e.x1=i,e.x2=o,e.y1=r,e.y2=a;var s=n&&n.lineWidth;return s?(VM(2*i)===VM(2*o)&&(e.x1=e.x2=FM(i,s,!0)),VM(2*r)===VM(2*a)&&(e.y1=e.y2=FM(r,s,!0)),e):e}}function jM(e,t,n){if(t){var i=t.x,o=t.y,r=t.width,a=t.height;e.x=i,e.y=o,e.width=r,e.height=a;var s=n&&n.lineWidth;return s?(e.x=FM(i,s,!0),e.y=FM(o,s,!0),e.width=Math.max(FM(i+r,s,!1)-e.x,0===r?0:1),e.height=Math.max(FM(o+a,s,!1)-e.y,0===a?0:1),e):e}}function FM(e,t,n){if(!t)return e;var i=VM(2*e);return(i+VM(t))%2==0?i/2:(i+(n?1:-1))/2}var GM=function(){this.x=0,this.y=0,this.width=0,this.height=0},WM={},HM=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new GM},t.prototype.buildPath=function(e,t){var n,i,o,r;if(this.subPixelOptimize){var a=jM(WM,t,this.style);n=a.x,i=a.y,o=a.width,r=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,o=t.width,r=t.height;t.r?function(e,t){var n,i,o,r,a,s=t.x,l=t.y,c=t.width,u=t.height,p=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"==typeof p?n=i=o=r=p:p instanceof Array?1===p.length?n=i=o=r=p[0]:2===p.length?(n=o=p[0],i=r=p[1]):3===p.length?(n=p[0],i=r=p[1],o=p[2]):(n=p[0],i=p[1],o=p[2],r=p[3]):n=i=o=r=0,n+i>c&&(n*=c/(a=n+i),i*=c/a),o+r>c&&(o*=c/(a=o+r),r*=c/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),n+r>u&&(n*=u/(a=n+r),r*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-o),0!==o&&e.arc(s+c-o,l+u-o,o,0,Math.PI/2),e.lineTo(s+r,l+u),0!==r&&e.arc(s+r,l+u-r,r,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,i,o,r)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(kM);HM.prototype.type="rect";var UM=HM,YM={fill:"#000"},qM={style:Ov({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},wC.style)},XM=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=YM,n.attr(t),n}return S(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,tT(e=this.style),Rv(e.rich,tT),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Ax(0,0,0,0),t=this._children,n=[],i=null,o=0;o<t.length;o++){var r=t[o],a=r.getBoundingRect(),s=r.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(i=i||e.clone()).union(e)):(i=i||a.clone()).union(a)}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||YM},t.prototype.setTextContent=function(e){if("production"!==process.env.NODE_ENV)throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return Ev(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=jv(t),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},Ev(e[o],t[o])}},t.prototype.getAnimationStyleProps=function(){return qM},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||cv,n=e.padding,i=function(e,t){null!=e&&(e+="");var n,i=t.overflow,o=t.padding,r=t.font,a="truncate"===i,s=vw(r),l=ny(t.lineHeight,s),c=!!t.backgroundColor,u="truncate"===t.lineOverflow,p=t.width,d=(n=null==p||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?xC(e,t.font,p,"breakAll"===i,0).lines:[]).length*l,h=ny(t.height,d);if(d>h&&u){var f=Math.floor(h/l);n=n.slice(0,f)}if(e&&a&&null!=p)for(var g=uC(p,r,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=pC(n[m],g);var v=h,y=0;for(m=0;m<n.length;m++)y=Math.max(dw(n[m],r),y);null==p&&(p=y);var x=y;return o&&(v+=o[0]+o[2],x+=o[1]+o[3],p+=o[1]+o[3]),c&&(x=p),{lines:n,height:h,outerWidth:x,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:p}}(rT(e),e),o=aT(e),r=!!e.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,c=i.lines,u=i.lineHeight,p=this._defaultStyle,d=e.x||0,h=e.y||0,f=e.align||p.align||"left",g=e.verticalAlign||p.verticalAlign||"top",m=d,v=mw(h,i.contentHeight,g);if(o||n){var y=gw(d,s,f),x=mw(h,a,g);o&&this._renderBackground(e,e,y,x,s,a)}v+=u/2,n&&(m=oT(d,f,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var b=0,_=!1,w=(iT("fill"in e?e.fill:(_=!0,p.fill))),S=(nT("stroke"in e?e.stroke:r||p.autoStroke&&!_?null:(b=2,p.stroke))),C=e.textShadowBlur>0,M=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=i.calculatedLineHeight,I=0;I<c.length;I++){var A=this._getOrCreateChild(LM),D=A.createStyle();A.useStyle(D),D.text=c[I],D.x=m,D.y=v,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=e.opacity,D.strokeFirst=!0,C&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||"transparent",D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=S,D.fill=w,S&&(D.lineWidth=e.lineWidth||b,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,QM(D,e),v+=u,M&&A.setBoundingRect(new Ax(gw(D.x,e.width,D.textAlign),mw(D.y,T,D.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new gC;if(null!=e&&(e+=""),!e)return n;for(var i,o=t.width,r=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=lC.lastIndex=0;null!=(i=lC.exec(e));){var c=i.index;c>l&&mC(n,e.substring(l,c),t,s),mC(n,i[2],t,s,i[1]),l=lC.lastIndex}l<e.length&&mC(n,e.substring(l,e.length),t,s);var u=[],p=0,d=0,h=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,p+=n,d=Math.max(d,t)}e:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],x=0,b=0,_=0;_<y.tokens.length;_++){var w=(O=y.tokens[_]).styleName&&t.rich[O.styleName]||{},S=O.textPadding=w.padding,C=S?S[1]+S[3]:0,M=O.font=w.font||t.font;O.contentHeight=vw(M);var T=ny(w.height,O.contentHeight);if(O.innerHeight=T,S&&(T+=S[0]+S[2]),O.height=T,O.lineHeight=iy(w.lineHeight,t.lineHeight,T),O.align=w&&w.align||t.align,O.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=r&&p+O.lineHeight>r){_>0?(y.tokens=y.tokens.slice(0,_),m(y,b,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var I=w.width,A=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))O.percentWidth=I,u.push(O),O.contentWidth=dw(O.text,M);else{if(A){var D=w.backgroundColor,k=D&&D.image;k&&sC(k=oC(k))&&(O.width=Math.max(O.width,k.width*T/k.height))}var E=f&&null!=o?o-b:null;null!=E&&E<O.width?!A||E<C?(O.text="",O.width=O.contentWidth=0):(O.text=cC(O.text,E-C,M,t.ellipsis,{minChar:t.truncateMinChar}),O.width=O.contentWidth=dw(O.text,M)):O.contentWidth=dw(O.text,M)}O.width+=C,b+=O.width,w&&(x=Math.max(x,O.lineHeight))}m(y,b,x)}for(n.outerWidth=n.width=ny(o,d),n.outerHeight=n.height=ny(r,p),n.contentHeight=p,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),v=0;v<u.length;v++){var O,L=(O=u[v]).percentWidth;O.width=parseInt(L,10)/100*n.width}return n}(rT(e),e),n=t.width,i=t.outerWidth,o=t.outerHeight,r=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,c=e.align||l.align,u=e.verticalAlign||l.verticalAlign,p=gw(a,i,c),d=mw(s,o,u),h=p,f=d;r&&(h+=r[3],f+=r[0]);var g=h+n;aT(e)&&this._renderBackground(e,e,p,d,i,o);for(var m=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,b=x.length,_=y.lineHeight,w=y.width,S=0,C=h,M=g,T=b-1,I=void 0;S<b&&(!(I=x[S]).align||"left"===I.align);)this._placeToken(I,e,_,f,C,"left",m),w-=I.width,C+=I.width,S++;for(;T>=0&&"right"===(I=x[T]).align;)this._placeToken(I,e,_,f,M,"right",m),w-=I.width,M-=I.width,T--;for(C+=(n-(C-h)-(g-M)-w)/2;S<=T;)I=x[S],this._placeToken(I,e,_,f,C+I.width/2,"center",m),C+=I.width,S++;f+=_}},t.prototype._placeToken=function(e,t,n,i,o,r,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=i+n/2;"top"===l?c=i+e.height/2:"bottom"===l&&(c=i+n-e.height/2),!e.isLineHolder&&aT(s)&&this._renderBackground(s,t,"right"===r?o-e.width:"center"===r?o-e.width/2:o,c-e.height/2,e.width,e.height);var u=!!s.backgroundColor,p=e.textPadding;p&&(o=oT(o,r,p),c-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(LM),h=d.createStyle();d.useStyle(h);var f=this._defaultStyle,g=!1,m=0,v=iT("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),y=nT("stroke"in s?s.stroke:"stroke"in t?t.stroke:u||a||f.autoStroke&&!g?null:(m=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=o,h.y=c,x&&(h.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,h.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=r,h.textBaseline="middle",h.font=e.font||cv,h.opacity=iy(s.opacity,t.opacity,1),QM(h,s),y&&(h.lineWidth=iy(s.lineWidth,t.lineWidth,m),h.lineDash=ny(s.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=y),v&&(h.fill=v);var b=e.contentWidth,_=e.contentHeight;d.setBoundingRect(new Ax(gw(h.x,b,h.textAlign),mw(h.y,_,h.textBaseline),b,_))},t.prototype._renderBackground=function(e,t,n,i,o,r){var a,s,l,c=e.backgroundColor,u=e.borderWidth,p=e.borderColor,d=c&&c.image,h=c&&!d,f=e.borderRadius,g=this;if(h||e.lineHeight||u&&p){(a=this._getOrCreateChild(UM)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=o,m.height=r,m.r=f,a.dirtyShape()}if(h)(l=a.style).fill=c||null,l.fillOpacity=ny(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(zM)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=c.image,v.x=n,v.y=i,v.width=o,v.height=r}u&&p&&((l=a.style).lineWidth=u,l.stroke=p,l.strokeOpacity=ny(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=iy(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return eT(e)&&(t=[e.fontStyle,e.fontWeight,JM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&sy(t)||e.textFont||e.font},t}(AC),$M={left:!0,right:1,center:1},ZM={top:1,bottom:1,middle:1},KM=["fontStyle","fontWeight","fontSize","fontFamily"];function JM(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?sv+"px":e+"px":e}function QM(e,t){for(var n=0;n<KM.length;n++){var i=KM[n],o=t[i];null!=o&&(e[i]=o)}}function eT(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function tT(e){if(e){e.font=XM.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||$M[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||ZM[n]?n:"top",e.padding&&(e.padding=ry(e.padding))}}function nT(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function iT(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function oT(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function rT(e){var t=e.text;return null!=t&&(t+=""),t}function aT(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var sT=XM,lT=NS(),cT=function(e,t,n,i){if(i){var o=lT(i);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===i.type&&i.traverse((function(i){var o=lT(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}},uT=1,pT={},dT=NS(),hT=NS(),fT=0,gT=1,mT=2,vT=["emphasis","blur","select"],yT=["normal","emphasis","blur","select"],xT=10,bT=9,_T="highlight",wT="downplay",ST="select",CT="unselect",MT="toggleSelect";function TT(e){return null!=e&&"none"!==e}function IT(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function AT(e){IT(e,"emphasis",mT)}function DT(e){e.hoverState===mT&&IT(e,"normal",fT)}function kT(e){IT(e,"blur",gT)}function ET(e){e.hoverState===gT&&IT(e,"normal",fT)}function OT(e){e.selected=!0}function LT(e){e.selected=!1}function NT(e,t,n){t(e,n)}function PT(e,t,n){NT(e,t,n),e.isGroup&&e.traverse((function(e){NT(e,t,n)}))}function RT(e,t){switch(t){case"emphasis":e.hoverState=mT;break;case"normal":e.hoverState=fT;break;case"blur":e.hoverState=gT;break;case"select":e.selected=!0}}function zT(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var o=n&&Lv(n,"select")>=0,r=!1;if(e instanceof kM){var a=dT(e),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(TT(s)||TT(l)){var c=(i=i||{}).style||{};"inherit"===c.fill?(r=!0,i=Ev({},i),(c=Ev({},c)).fill=s):!TT(c.fill)&&TT(s)?(r=!0,i=Ev({},i),(c=Ev({},c)).fill=Qb(s)):!TT(c.stroke)&&TT(l)&&(r||(i=Ev({},i),c=Ev({},c)),c.stroke=Qb(l)),i.style=c}}if(i&&null==i.z2){r||(i=Ev({},i));var u=e.z2EmphasisLift;i.z2=e.z2+(null!=u?u:xT)}return i}(this,0,t,n);if("blur"===e)return function(e,t,n){var i=Lv(e.currentStates,t)>=0,o=e.style.opacity,r=i?null:function(e,t,n,i){for(var o=e.style,r={},a=0;a<t.length;a++){var s=t[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(r,t)}return r}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Ev({},n),a=Ev({opacity:i?o:.1*r.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=Ev({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:bT)}return n}(this,0,n)}return n}function VT(e){e.stateProxy=zT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=zT),n&&(n.stateProxy=zT)}function BT(e,t){!qT(e,t)&&!e.__highByOuter&&PT(e,AT)}function jT(e,t){!qT(e,t)&&!e.__highByOuter&&PT(e,DT)}function FT(e,t){e.__highByOuter|=1<<(t||0),PT(e,AT)}function GT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&PT(e,DT)}function WT(e){PT(e,kT)}function HT(e){PT(e,ET)}function UT(e){PT(e,OT)}function YT(e){PT(e,LT)}function qT(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function XT(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,o){var r=hT(o),a="series"===t,s=a?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!a&&i.push(s),r.isBlured&&(s.group.traverse((function(e){ET(e)})),a&&n.push(o)),r.isBlured=!1})),Rv(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function $T(e,t,n,i){var o=i.getModel();function r(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&HT(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=o.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries((function(e){var o=a===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&s?c===s:o)||"series"===t&&o)){if(i.getViewOfSeriesModel(e).group.traverse((function(e){e.__highByOuter&&o&&"self"===t||kT(e)})),Pv(t))r(e.getData(),t);else if(Xv(t))for(var u=jv(t),p=0;p<u.length;p++)r(e.getData(u[p]),t[u[p]]);l.push(e),hT(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}}))}}function ZT(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){hT(i).isBlured=!0;var o=n.getViewOfComponentModel(i);o&&o.focusBlurEnabled&&o.group.traverse((function(e){kT(e)}))}}}function KT(e,t,n,i){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var r=i.getModel().getComponent(e,t);if(!r)return o;var a=i.getViewOfComponentModel(r);if(!a||!a.findHighDownDispatchers)return o;for(var s,l=a.findHighDownDispatchers(n),c=0;c<l.length;c++)if("production"===process.env.NODE_ENV||sI(l[c])||dS("param should be highDownDispatcher"),"self"===lT(l[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function JT(e){Rv(e.getAllData(),(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?UT(t):YT(t)}))}))}function QT(e){var t=[];return e.eachSeries((function(e){Rv(e.getAllData(),(function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var r={dataIndex:o,seriesIndex:e.seriesIndex};null!=i&&(r.dataType=i),t.push(r)}}))})),t}function eI(e,t,n){aI(e,!0),PT(e,VT),nI(e,t,n)}function tI(e,t,n,i){i?function(e){aI(e,!1)}(e):eI(e,t,n)}function nI(e,t,n){var i=lT(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var iI=["emphasis","blur","select"],oI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function rI(e,t,n,i){n=n||"itemStyle";for(var o=0;o<iI.length;o++){var r=iI[o],a=t.getModel([r,n]);e.ensureState(r).style=i?i(a):a[oI[n]]()}}function aI(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function sI(e){return!(!e||!e.__highDownDispatcher)}function lI(e){var t=e.type;return t===ST||t===CT||t===MT}function cI(e){var t=e.type;return t===_T||t===wT}var uI=lM.CMD,pI=[[],[],[]],dI=Math.sqrt,hI=Math.atan2;function fI(e,t){if(t){var n,i,o,r,a,s,l=e.data,c=e.len(),u=uI.M,p=uI.C,d=uI.L,h=uI.R,f=uI.A,g=uI.Q;for(o=0,r=0;o<c;){switch(n=l[o++],r=o,i=0,n){case u:case d:i=1;break;case p:i=3;break;case g:i=2;break;case f:var m=t[4],v=t[5],y=dI(t[0]*t[0]+t[1]*t[1]),x=dI(t[2]*t[2]+t[3]*t[3]),b=hI(-t[1]/x,t[0]/y);l[o]*=y,l[o++]+=m,l[o]*=x,l[o++]+=v,l[o++]*=y,l[o++]*=x,l[o++]+=b,l[o++]+=b,r=o+=2;break;case h:s[0]=l[o++],s[1]=l[o++],Py(s,s,t),l[r++]=s[0],l[r++]=s[1],s[0]+=l[o++],s[1]+=l[o++],Py(s,s,t),l[r++]=s[0],l[r++]=s[1]}for(a=0;a<i;a++){var _=pI[a];_[0]=l[o++],_[1]=l[o++],Py(_,_,t),l[r++]=_[0],l[r++]=_[1]}}e.increaseVersion()}}var gI=Math.sqrt,mI=Math.sin,vI=Math.cos,yI=Math.PI;function xI(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function bI(e,t){return(e[0]*t[0]+e[1]*t[1])/(xI(e)*xI(t))}function _I(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(bI(e,t))}function wI(e,t,n,i,o,r,a,s,l,c,u){var p=l*(yI/180),d=vI(p)*(e-n)/2+mI(p)*(t-i)/2,h=-1*mI(p)*(e-n)/2+vI(p)*(t-i)/2,f=d*d/(a*a)+h*h/(s*s);f>1&&(a*=gI(f),s*=gI(f));var g=(o===r?-1:1)*gI((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,m=g*a*h/s,v=g*-s*d/a,y=(e+n)/2+vI(p)*m-mI(p)*v,x=(t+i)/2+mI(p)*m+vI(p)*v,b=_I([1,0],[(d-m)/a,(h-v)/s]),_=[(d-m)/a,(h-v)/s],w=[(-1*d-m)/a,(-1*h-v)/s],S=_I(_,w);if(bI(_,w)<=-1&&(S=yI),bI(_,w)>=1&&(S=0),S<0){var C=Math.round(S/yI*1e6)/1e6;S=2*yI+C%2*yI}u.addData(c,y,x,a,s,b,S,p,r)}var SI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,CI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var MI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.applyTransform=function(e){},t}(kM);function TI(e){return null!=e.setData}function II(e,t){var n=function(e){var t=new lM;if(!e)return t;var n,i=0,o=0,r=i,a=o,s=lM.CMD,l=e.match(SI);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],p=u.charAt(0),d=void 0,h=u.match(CI)||[],f=h.length,g=0;g<f;g++)h[g]=parseFloat(h[g]);for(var m=0;m<f;){var v=void 0,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,C=i,M=o,T=void 0,I=void 0;switch(p){case"l":i+=h[m++],o+=h[m++],d=s.L,t.addData(d,i,o);break;case"L":i=h[m++],o=h[m++],d=s.L,t.addData(d,i,o);break;case"m":i+=h[m++],o+=h[m++],d=s.M,t.addData(d,i,o),r=i,a=o,p="l";break;case"M":i=h[m++],o=h[m++],d=s.M,t.addData(d,i,o),r=i,a=o,p="L";break;case"h":i+=h[m++],d=s.L,t.addData(d,i,o);break;case"H":i=h[m++],d=s.L,t.addData(d,i,o);break;case"v":o+=h[m++],d=s.L,t.addData(d,i,o);break;case"V":o=h[m++],d=s.L,t.addData(d,i,o);break;case"C":d=s.C,t.addData(d,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),i=h[m-2],o=h[m-1];break;case"c":d=s.C,t.addData(d,h[m++]+i,h[m++]+o,h[m++]+i,h[m++]+o,h[m++]+i,h[m++]+o),i+=h[m-2],o+=h[m-1];break;case"S":v=i,y=o,T=t.len(),I=t.data,n===s.C&&(v+=i-I[T-4],y+=o-I[T-3]),d=s.C,C=h[m++],M=h[m++],i=h[m++],o=h[m++],t.addData(d,v,y,C,M,i,o);break;case"s":v=i,y=o,T=t.len(),I=t.data,n===s.C&&(v+=i-I[T-4],y+=o-I[T-3]),d=s.C,C=i+h[m++],M=o+h[m++],i+=h[m++],o+=h[m++],t.addData(d,v,y,C,M,i,o);break;case"Q":C=h[m++],M=h[m++],i=h[m++],o=h[m++],d=s.Q,t.addData(d,C,M,i,o);break;case"q":C=h[m++]+i,M=h[m++]+o,i+=h[m++],o+=h[m++],d=s.Q,t.addData(d,C,M,i,o);break;case"T":v=i,y=o,T=t.len(),I=t.data,n===s.Q&&(v+=i-I[T-4],y+=o-I[T-3]),i=h[m++],o=h[m++],d=s.Q,t.addData(d,v,y,i,o);break;case"t":v=i,y=o,T=t.len(),I=t.data,n===s.Q&&(v+=i-I[T-4],y+=o-I[T-3]),i+=h[m++],o+=h[m++],d=s.Q,t.addData(d,v,y,i,o);break;case"A":x=h[m++],b=h[m++],_=h[m++],w=h[m++],S=h[m++],wI(C=i,M=o,i=h[m++],o=h[m++],w,S,x,b,_,d=s.A,t);break;case"a":x=h[m++],b=h[m++],_=h[m++],w=h[m++],S=h[m++],wI(C=i,M=o,i+=h[m++],o+=h[m++],w,S,x,b,_,d=s.A,t)}}"z"!==p&&"Z"!==p||(d=s.Z,t.addData(d),i=r,o=a),n=d}return t.toStatic(),t}(e),i=Ev({},t);return i.buildPath=function(e){if(TI(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){fI(n,e),this.dirtyShape()},i}function AI(e,t){return new MI(II(e,t))}function DI(e,t){t=t||{};var n=new kM;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?fI(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var kI=function(){this.cx=0,this.cy=0,this.r=0},EI=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new kI},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(kM);EI.prototype.type="circle";var OI=EI,LI=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},NI=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new LI},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,o=t.cy,r=t.rx,a=t.ry,s=r*n,l=a*n;e.moveTo(i-r,o),e.bezierCurveTo(i-r,o-l,i-s,o-a,i,o-a),e.bezierCurveTo(i+s,o-a,i+r,o-l,i+r,o),e.bezierCurveTo(i+r,o+l,i+s,o+a,i,o+a),e.bezierCurveTo(i-s,o+a,i-r,o+l,i-r,o),e.closePath()},t}(kM);NI.prototype.type="ellipse";var PI=NI,RI=Math.PI,zI=2*RI,VI=Math.sin,BI=Math.cos,jI=Math.acos,FI=Math.atan2,GI=Math.abs,WI=Math.sqrt,HI=Math.max,UI=Math.min,YI=1e-4;function qI(e,t,n,i,o,r,a){var s=e-n,l=t-i,c=(a?r:-r)/WI(s*s+l*l),u=c*l,p=-c*s,d=e+u,h=t+p,f=n+u,g=i+p,m=(d+f)/2,v=(h+g)/2,y=f-d,x=g-h,b=y*y+x*x,_=o-r,w=d*g-f*h,S=(x<0?-1:1)*WI(HI(0,_*_*b-w*w)),C=(w*x-y*S)/b,M=(-w*y-x*S)/b,T=(w*x+y*S)/b,I=(-w*y+x*S)/b,A=C-m,D=M-v,k=T-m,E=I-v;return A*A+D*D>k*k+E*E&&(C=T,M=I),{cx:C,cy:M,x0:-u,y0:-p,x1:C*(o/_-1),y1:M*(o/_-1)}}function XI(e,t){var n,i=HI(t.r,0),o=HI(t.r0||0,0),r=i>0;if(r||o>0){if(r||(i=o,o=0),o>i){var a=i;i=o,o=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var c=t.cx,u=t.cy,p=!!t.clockwise,d=GI(l-s),h=d>zI&&d%zI;if(h>YI&&(d=h),i>YI)if(d>zI-YI)e.moveTo(c+i*BI(s),u+i*VI(s)),e.arc(c,u,i,s,l,!p),o>YI&&(e.moveTo(c+o*BI(l),u+o*VI(l)),e.arc(c,u,o,l,s,p));else{var f=void 0,g=void 0,m=void 0,v=void 0,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0,I=void 0,A=void 0,D=void 0,k=i*BI(s),E=i*VI(s),O=o*BI(l),L=o*VI(l),N=d>YI;if(N){var P=t.cornerRadius;P&&(n=function(e){var t;if(Wv(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(P),f=n[0],g=n[1],m=n[2],v=n[3]);var R=GI(i-o)/2;if(y=UI(R,m),x=UI(R,v),b=UI(R,f),_=UI(R,g),C=w=HI(y,x),M=S=HI(b,_),(w>YI||S>YI)&&(T=i*BI(l),I=i*VI(l),A=o*BI(s),D=o*VI(s),d<RI)){var z=function(e,t,n,i,o,r,a,s){var l=n-e,c=i-t,u=a-o,p=s-r,d=p*l-u*c;if(!(d*d<YI))return[e+(d=(u*(t-r)-p*(e-o))/d)*l,t+d*c]}(k,E,A,D,T,I,O,L);if(z){var V=k-z[0],B=E-z[1],j=T-z[0],F=I-z[1],G=1/VI(jI((V*j+B*F)/(WI(V*V+B*B)*WI(j*j+F*F)))/2),W=WI(z[0]*z[0]+z[1]*z[1]);C=UI(w,(i-W)/(G+1)),M=UI(S,(o-W)/(G-1))}}}if(N)if(C>YI){var H=UI(m,C),U=UI(v,C),Y=qI(A,D,k,E,i,H,p),q=qI(T,I,O,L,i,U,p);e.moveTo(c+Y.cx+Y.x0,u+Y.cy+Y.y0),C<w&&H===U?e.arc(c+Y.cx,u+Y.cy,C,FI(Y.y0,Y.x0),FI(q.y0,q.x0),!p):(H>0&&e.arc(c+Y.cx,u+Y.cy,H,FI(Y.y0,Y.x0),FI(Y.y1,Y.x1),!p),e.arc(c,u,i,FI(Y.cy+Y.y1,Y.cx+Y.x1),FI(q.cy+q.y1,q.cx+q.x1),!p),U>0&&e.arc(c+q.cx,u+q.cy,U,FI(q.y1,q.x1),FI(q.y0,q.x0),!p))}else e.moveTo(c+k,u+E),e.arc(c,u,i,s,l,!p);else e.moveTo(c+k,u+E);if(o>YI&&N)if(M>YI){H=UI(f,M),Y=qI(O,L,T,I,o,-(U=UI(g,M)),p),q=qI(k,E,A,D,o,-H,p);e.lineTo(c+Y.cx+Y.x0,u+Y.cy+Y.y0),M<S&&H===U?e.arc(c+Y.cx,u+Y.cy,M,FI(Y.y0,Y.x0),FI(q.y0,q.x0),!p):(U>0&&e.arc(c+Y.cx,u+Y.cy,U,FI(Y.y0,Y.x0),FI(Y.y1,Y.x1),!p),e.arc(c,u,o,FI(Y.cy+Y.y1,Y.cx+Y.x1),FI(q.cy+q.y1,q.cx+q.x1),p),H>0&&e.arc(c+q.cx,u+q.cy,H,FI(q.y1,q.x1),FI(q.y0,q.x0),!p))}else e.lineTo(c+O,u+L),e.arc(c,u,o,l,s,p);else e.lineTo(c+O,u+L)}else e.moveTo(c,u);e.closePath()}}}var $I=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},ZI=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new $I},t.prototype.buildPath=function(e,t){XI(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(kM);ZI.prototype.type="sector";var KI=ZI,JI=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},QI=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new JI},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,o,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,o,!0)},t}(kM);QI.prototype.type="ring";var eA=QI;function tA(e,t,n){var i=t.smooth,o=t.points;if(o&&o.length>=2){if(i){var r=function(e,t,n,i){var o,r,a,s,l=[],c=[],u=[],p=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Ry(a,a,e[d]),zy(s,s,e[d]);Ry(a,a,i[0]),zy(s,s,i[1])}for(d=0,h=e.length;d<h;d++){var f=e[d];if(n)o=e[d?d-1:h-1],r=e[(d+1)%h];else{if(0===d||d===h-1){l.push(Sy(e[d]));continue}o=e[d-1],r=e[d+1]}Iy(c,r,o),Dy(c,c,t);var g=Ey(f,o),m=Ey(f,r),v=g+m;0!==v&&(g/=v,m/=v),Dy(u,c,-g),Dy(p,c,m);var y=My([],f,u),x=My([],f,p);i&&(zy(y,y,a),Ry(y,y,s),zy(x,x,a),Ry(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(o,i,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(n?a:a-1);s++){var l=r[2*s],c=r[2*s+1],u=o[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(o[0][0],o[0][1]);s=1;for(var p=o.length;s<p;s++)e.lineTo(o[s][0],o[s][1])}n&&e.closePath()}}var nA=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},iA=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new nA},t.prototype.buildPath=function(e,t){tA(e,t,!0)},t}(kM);iA.prototype.type="polygon";var oA=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},rA=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oA},t.prototype.buildPath=function(e,t){tA(e,t,!1)},t}(kM);rA.prototype.type="polyline";var aA={},sA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},lA=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sA},t.prototype.buildPath=function(e,t){var n,i,o,r;if(this.subPixelOptimize){var a=BM(aA,t,this.style);n=a.x1,i=a.y1,o=a.x2,r=a.y2}else n=t.x1,i=t.y1,o=t.x2,r=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(o=n*(1-s)+o*s,r=i*(1-s)+r*s),e.lineTo(o,r))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(kM);lA.prototype.type="line";var cA=[],uA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function pA(e,t,n){var i=e.cpx2,o=e.cpy2;return null!=i||null!=o?[(n?fb:hb)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?fb:hb)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?_b:bb)(e.x1,e.cpx1,e.x2,t),(n?_b:bb)(e.y1,e.cpy1,e.y2,t)]}var dA=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uA},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,o=t.x2,r=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,c=t.cpy2,u=t.percent;0!==u&&(e.moveTo(n,i),null==l||null==c?(u<1&&(Sb(n,a,o,u,cA),a=cA[1],o=cA[2],Sb(i,s,r,u,cA),s=cA[1],r=cA[2]),e.quadraticCurveTo(a,s,o,r)):(u<1&&(vb(n,a,l,o,u,cA),a=cA[1],l=cA[2],o=cA[3],vb(i,s,c,r,u,cA),s=cA[1],c=cA[2],r=cA[3]),e.bezierCurveTo(a,s,l,c,o,r)))},t.prototype.pointAt=function(e){return pA(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=pA(this.shape,e,!0);return ky(t,t)},t}(kM);dA.prototype.type="bezier-curve";var hA=dA,fA=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},gA=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fA},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r,0),r=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(r),c=Math.sin(r);e.moveTo(l*o+n,c*o+i),e.arc(n,i,o,r,a,!s)},t}(kM);gA.prototype.type="arc";var mA=gA,vA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return S(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),kM.prototype.getBoundingRect.call(this)},t}(kM),yA=vA,xA=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),bA=xA,_A=function(e){function t(t,n,i,o,r,a){var s=e.call(this,r)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==o?0:o,s.type="linear",s.global=a||!1,s}return S(t,e),t}(bA),wA=function(e){function t(t,n,i,o,r){var a=e.call(this,o)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=r||!1,a}return S(t,e),t}(bA),SA=wA,CA=[0,0],MA=[0,0],TA=new vx,IA=new vx,AA=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new vx;for(n=0;n<2;n++)this._axes[n]=new vx;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,o=e.x,r=e.y,a=o+e.width,s=r+e.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,s),n[3].set(o,s),t)for(var l=0;l<4;l++)n[l].transform(t);vx.sub(i[0],n[1],n[0]),vx.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return TA.set(1/0,1/0),IA.set(0,0),!this._intersectCheckOneSide(this,e,TA,IA,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,TA,IA,i,-1)&&(n=!1,i)||i||vx.copy(t,n?TA:IA),n},e.prototype._intersectCheckOneSide=function(e,t,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,CA),this._getProjMinMaxOnAxis(s,t._corners,MA),CA[1]<MA[0]||CA[0]>MA[1]){if(a=!1,o)return a;var c=Math.abs(MA[0]-CA[1]),u=Math.abs(CA[0]-MA[1]);Math.min(c,u)>i.len()&&(c<u?vx.scale(i,l,-c*r):vx.scale(i,l,u*r))}else if(n){c=Math.abs(MA[0]-CA[1]),u=Math.abs(CA[0]-MA[1]);Math.min(c,u)<n.len()&&(c<u?vx.scale(n,l,c*r):vx.scale(n,l,-u*r))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],o=this._origin,r=t[0].dot(i)+o[e],a=r,s=r,l=1;l<t.length;l++){var c=t[l].dot(i)+o[e];a=Math.min(c,a),s=Math.max(c,s)}n[0]=a,n[1]=s},e}(),DA=AA,kA=[],EA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return S(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Ax(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(kA)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(e,t))return!0}return!1},t}(AC),OA=EA,LA=NS();function NA(e,t,n,i,o){var r;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();r=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,c=void 0,u=void 0;return i?(l=ny(i.duration,200),c=ny(i.easing,"cubicOut"),u=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),c=t.getShallow(s?"animationEasingUpdate":"animationEasing"),u=t.getShallow(s?"animationDelayUpdate":"animationDelay")),r&&(null!=r.duration&&(l=r.duration),null!=r.easing&&(c=r.easing),null!=r.delay&&(u=r.delay)),Hv(u)&&(u=u(n,o)),Hv(l)&&(l=l(n)),{duration:l||0,delay:u,easing:c}}return null}function PA(e,t,n,i,o,r,a){var s,l=!1;Hv(o)?(a=r,r=o,o=null):Xv(o)&&(r=o.cb,a=o.during,l=o.isFrom,s=o.removeOpt,o=o.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var u=NA(e,i,o,c?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,o):null);if(u&&u.duration>0){var p={duration:u.duration,delay:u.delay||0,easing:u.easing,done:r,force:!!r||!!a,setToFinal:!c,scope:e,during:a};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),r&&r()}function RA(e,t,n,i,o,r){PA("update",e,t,n,i,o,r)}function zA(e,t,n,i,o,r){PA("enter",e,t,n,i,o,r)}function VA(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function BA(e,t,n,i,o,r){VA(e)||PA("leave",e,t,n,i,o,r)}function jA(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),BA(e,{style:{opacity:0}},t,n,i)}function FA(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||jA(e,t,n,i)})):jA(e,t,n,i)}function GA(e){LA(e).oldStyle=e.style}var WA=Math.max,HA=Math.min,UA={};var YA=function(e,t){var n=II(e,t);return function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return S(t,e),t}(MI)};function qA(e,t){UA[e]=t}function XA(e){if(UA.hasOwnProperty(e))return UA[e]}function $A(e,t,n,i){var o=AI(e,t);return n&&("center"===i&&(n=KA(n,o.getBoundingRect())),QA(o,n)),o}function ZA(e,t,n){var i=new zM({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var o={width:e.width,height:e.height};i.setStyle(KA(t,o))}}});return i}function KA(e,t){var n,i=t.width/t.height,o=e.height*i;return n=o<=e.width?e.height:(o=e.width)/i,{x:e.x+e.width/2-o/2,y:e.y+e.height/2-n/2,width:o,height:n}}var JA=function(e,t){for(var n=[],i=e.length,o=0;o<i;o++){var r=e[o];n.push(r.getUpdatedPathProxy(!0))}var a=new kM(t);return a.createPathProxy(),a.buildPath=function(e){if(TI(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function QA(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function eD(e,t){return BM(e,e,{lineWidth:t}),e}var tD=FM;function nD(e,t){for(var n=ux([]);e&&e!==t;)dx(n,e.getLocalTransform(),n),e=e.parent;return n}function iD(e,t,n){return t&&!Pv(t)&&(t=lw.getLocalTransform(t)),n&&(t=mx([],t)),Py([],e,t)}function oD(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===e?-i:"right"===e?i:0,"top"===e?-o:"bottom"===e?o:0];return r=iD(r,t,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function rD(e){return!e.isGroup}function aD(e,t,n){if(e&&t){var i=function(e){var t={};return e.traverse((function(e){rD(e)&&e.anid&&(t[e.anid]=e)})),t}(e);t.traverse((function(e){if(rD(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),RA(e,r,n,lT(e).dataIndex)}}}))}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Ev({},e.shape)),t}}function sD(e,t){return zv(e,(function(e){var n=e[0];n=WA(n,t.x),n=HA(n,t.x+t.width);var i=e[1];return i=WA(i,t.y),[n,i=HA(i,t.y+t.height)]}))}function lD(e,t,n){var i=Ev({rectHover:!0},t),o=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),Ov(o,n),new zM(i)):$A(e.replace("path://",""),i,n,"center")}function cD(e,t,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(uD(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function uD(e,t,n,i,o,r,a,s){var l,c=n-e,u=i-t,p=a-o,d=s-r,h=pD(p,d,c,u);if((l=h)<=1e-6&&l>=-1e-6)return!1;var f=e-o,g=t-r,m=pD(f,g,c,u)/h;if(m<0||m>1)return!1;var v=pD(f,g,p,d)/h;return!(v<0||v>1)}function pD(e,t,n,i){return e*i-n*t}function dD(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,o=Uv(t)?{formatter:t}:t,r=n.mainType,a=n.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=e.formatterParamsExtra;l&&Rv(jv(l),(function(e){yy(s,e)||(s[e]=l[e],s.$vars.push(e))}));var c=lT(e.el);c.componentMainType=r,c.componentIndex=a,c.tooltipConfig={name:i,option:Ov({content:i,formatterParams:s},o)}}function hD(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function fD(e,t){if(e)if(Wv(e))for(var n=0;n<e.length;n++)hD(e[n],t);else hD(e,t)}qA("circle",OI),qA("ellipse",PI),qA("sector",KI),qA("ring",eA),qA("polygon",iA),qA("polyline",rA),qA("rect",UM),qA("line",lA),qA("bezierCurve",hA),qA("arc",mA);var gD=Object.freeze({__proto__:null,Arc:mA,BezierCurve:hA,BoundingRect:Ax,Circle:OI,CompoundPath:yA,Ellipse:PI,Group:Ew,Image:zM,IncrementalDisplayable:OA,Line:lA,LinearGradient:_A,OrientedBoundingRect:DA,Path:kM,Point:vx,Polygon:iA,Polyline:rA,RadialGradient:SA,Rect:UM,Ring:eA,Sector:KI,Text:sT,applyTransform:iD,clipPointsByRect:sD,clipRectByRect:function(e,t){var n=WA(e.x,t.x),i=HA(e.x+e.width,t.x+t.width),o=WA(e.y,t.y),r=HA(e.y+e.height,t.y+t.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}},createIcon:lD,extendPath:function(e,t){return YA(e,t)},extendShape:function(e){return kM.extend(e)},getShapeClass:XA,getTransform:nD,groupTransition:aD,initProps:zA,isElementRemoved:VA,lineLineIntersect:uD,linePolygonIntersect:cD,makeImage:ZA,makePath:$A,mergePath:JA,registerShape:qA,removeElement:BA,removeElementWithFadeOut:FA,resizePath:QA,setTooltipConfig:dD,subPixelOptimize:tD,subPixelOptimizeLine:eD,subPixelOptimizeRect:function(e){return jM(e.shape,e.shape,e.style),e},transformDirection:oD,traverseElements:fD,updateProps:RA}),mD={};function vD(e,t){for(var n=0;n<vT.length;n++){var i=vT[n],o=t[i],r=e.ensureState(i);r.style=r.style||{},r.style.text=o}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function yD(e,t,n){var i,o=e.labelFetcher,r=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;o&&(i=o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Hv(e.defaultText)?e.defaultText(r,e,n):e.defaultText);for(var l={normal:i},c=0;c<vT.length;c++){var u=vT[c],p=t[u];l[u]=ny(o?o.getFormattedLabel(r,u,null,a,p&&p.get("formatter")):null,i)}return l}function xD(e,t,n,i){n=n||mD;for(var o=e instanceof sT,r=!1,a=0;a<yT.length;a++){if((d=t[yT[a]])&&d.getShallow("show")){r=!0;break}}var s=o?e:e.getTextContent();if(r){o||(s||(s=new sT,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=yD(n,t),c=t.normal,u=!!c.getShallow("show"),p=_D(c,i&&i.normal,n,!1,!o);p.text=l.normal,o||e.setTextConfig(wD(c,n,!1));for(a=0;a<vT.length;a++){var d,h=vT[a];if(d=t[h]){var f=s.ensureState(h),g=!!ny(d.getShallow("show"),u);if(g!==u&&(f.ignore=!g),f.style=_D(d,i&&i[h],n,!0,!o),f.style.text=l[h],!o)e.ensureState(h).textConfig=wD(d,n,!0)}}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!u,s.useStyle(p),s.dirty(),n.enableTextSetter&&(AD(s).setLabelText=function(e){var i=yD(n,t,e);vD(s,i)})}else s&&(s.ignore=!0);e.dirty()}function bD(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<vT.length;i++){var o=vT[i];n[o]=e.getModel([o,t])}return n}function _D(e,t,n,i,o){var r={};return function(e,t,n,i,o){n=n||mD;var r,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||mD).rich;if(n){t=t||{};for(var i=jv(n),o=0;o<i.length;o++){t[i[o]]=1}}e=e.parentModel}return t}(t);if(l)for(var c in r={},l)if(l.hasOwnProperty(c)){var u=t.getModel(["rich",c]);TD(r[c]={},u,s,n,i,o,!1,!0)}r&&(e.rich=r);var p=t.get("overflow");p&&(e.overflow=p);var d=t.get("minMargin");null!=d&&(e.margin=d);TD(e,t,s,n,i,o,!0,!1)}(r,e,n,i,o),t&&Ev(r,t),r}function wD(e,t,n){t=t||{};var i,o={},r=e.getShallow("rotate"),a=ny(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(i=e.getShallow("position")||(n?null:"inside"))&&(i=t.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=s&&(o.offset=s),null!=r&&(r*=Math.PI/180,o.rotation=r),null!=a&&(o.distance=a),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}var SD=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],CD=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],MD=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function TD(e,t,n,i,o,r,a,s){n=!o&&n||mD;var l=i&&i.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),p=ny(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&fS("color: 'auto'","color: 'inherit'"),c=l||null),"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&fS("color: 'auto'","color: 'inherit'"),u=l||null),r||(c=c||n.color,u=u||n.textBorderColor),null!=c&&(e.fill=c),null!=u&&(e.stroke=u);var d=ny(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var h=ny(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var f=ny(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),o||null!=p||s||(p=i&&i.defaultOpacity),null!=p&&(e.opacity=p),o||r||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var g=0;g<SD.length;g++){var m=SD[g];null!=(y=ny(t.getShallow(m),n[m]))&&(e[m]=y)}for(g=0;g<CD.length;g++){m=CD[g];null!=(y=t.getShallow(m))&&(e[m]=y)}if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!i.disableBox){for(g=0;g<MD.length;g++){var y;m=MD[g];null!=(y=t.getShallow(m))&&(e[m]=y)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===e.backgroundColor&&fS("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===e.borderColor&&fS("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function ID(e,t){var n=t&&t.getModel("textStyle");return sy([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var AD=NS();function DD(e,t,n,i){if(e){var o=AD(e);o.prevValue=o.value,o.value=n;var r=t.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=t)}}function kD(e,t,n,i,o){var r=AD(e);if(r.valueAnimation&&r.prevValue!==r.value){var a=r.defaultInterpolatedText,s=ny(r.interpolatedValue,r.prevValue),l=r.value;e.percent=0,(null==r.prevValue?zA:RA)(e,{percent:1},i,t,null,(function(i){var c=WS(n,r.precision,s,l,i);r.interpolatedValue=1===i?null:c;var u=yD({labelDataIndex:t,labelFetcher:o,defaultText:a?a(c):c+""},r.statesModels,c);vD(e,u)}))}}var ED,OD,LD=["textStyle","color"],ND=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],PD=new sT,RD=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(LD):null)},e.prototype.getFont=function(){return ID({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ND.length;n++)t[ND[n]]=this.getShallow(ND[n]);return PD.useStyle(t),PD.update(),PD.getBoundingRect()},e}(),zD=RD,VD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],BD=eC(VD),jD=function(){function e(){}return e.prototype.getLineStyle=function(e){return BD(this,e)},e}(),FD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],GD=eC(FD),WD=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return GD(this,e,t)},e}(),HD=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){Dv(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var o=this.parentModel;o&&(i=o.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,o=i?this.parsePath(t):null;return new e(i?this._doGet(o):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(Av(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!av.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();XS(HD),ED=HD,OD=["__\0is_clz",ZS++].join("_"),ED.prototype[OD]=!0,"production"!==process.env.NODE_ENV&&ay(!ED.isInstance,'The method "is" can not be defined.'),ED.isInstance=function(e){return!(!e||!e[OD])},Nv(HD,jD),Nv(HD,WD),Nv(HD,nC),Nv(HD,zD);var UD=HD,YD=Math.round(10*Math.random());function qD(e){return[e||"",YD++].join("_")}function XD(e,t){return Dv(Dv({},e,!0),t,!0)}var $D="ZH",ZD="EN",KD=ZD,JD={},QD={},ek=av.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||KD).toUpperCase().indexOf($D)>-1?$D:KD;function tk(e,t){e=e.toUpperCase(),QD[e]=new UD(t),JD[e]=t}function nk(e){return QD[e]}tk(ZD,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),tk($D,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var ik=1e3,ok=60*ik,rk=60*ok,ak=24*rk,sk=365*ak,lk={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},ck="{yyyy}-{MM}-{dd}",uk={year:"{yyyy}",month:"{yyyy}-{MM}",day:ck,hour:ck+" "+lk.hour,minute:ck+" "+lk.minute,second:ck+" "+lk.second,millisecond:lk.none},pk=["year","month","day","hour","minute","second","millisecond"],dk=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hk(e,t){return"0000".substr(0,t-(e+="").length)+e}function fk(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function gk(e){return e===fk(e)}function mk(e,t,n,i){var o=Kw(e),r=o[xk(n)](),a=o[bk(n)]()+1,s=Math.floor((a-1)/3)+1,l=o[_k(n)](),c=o["get"+(n?"UTC":"")+"Day"](),u=o[wk(n)](),p=(u-1)%12+1,d=o[Sk(n)](),h=o[Ck(n)](),f=o[Mk(n)](),g=(i instanceof UD?i:nk(i||ek)||QD[KD]).getModel("time"),m=g.get("month"),v=g.get("monthAbbr"),y=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,hk(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,hk(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hk(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[c]).replace(/{ee}/g,x[c]).replace(/{e}/g,c+"").replace(/{HH}/g,hk(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,hk(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,hk(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hk(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,hk(f,3)).replace(/{S}/g,f+"")}function vk(e,t){var n=Kw(e),i=n[bk(t)]()+1,o=n[_k(t)](),r=n[wk(t)](),a=n[Sk(t)](),s=n[Ck(t)](),l=0===n[Mk(t)](),c=l&&0===s,u=c&&0===a,p=u&&0===r,d=p&&1===o;return d&&1===i?"year":d?"month":p?"day":u?"hour":c?"minute":l?"second":"millisecond"}function yk(e,t,n){var i=qv(e)?Kw(e):e;switch(t=t||vk(e,n)){case"year":return i[xk(n)]();case"half-year":return i[bk(n)]()>=6?1:0;case"quarter":return Math.floor((i[bk(n)]()+1)/4);case"month":return i[bk(n)]();case"day":return i[_k(n)]();case"half-day":return i[wk(n)]()/24;case"hour":return i[wk(n)]();case"minute":return i[Sk(n)]();case"second":return i[Ck(n)]();case"millisecond":return i[Mk(n)]()}}function xk(e){return e?"getUTCFullYear":"getFullYear"}function bk(e){return e?"getUTCMonth":"getMonth"}function _k(e){return e?"getUTCDate":"getDate"}function wk(e){return e?"getUTCHours":"getHours"}function Sk(e){return e?"getUTCMinutes":"getMinutes"}function Ck(e){return e?"getUTCSeconds":"getSeconds"}function Mk(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Tk(e){return e?"setUTCFullYear":"setFullYear"}function Ik(e){return e?"setUTCMonth":"setMonth"}function Ak(e){return e?"setUTCDate":"setDate"}function Dk(e){return e?"setUTCHours":"setHours"}function kk(e){return e?"setUTCMinutes":"setMinutes"}function Ek(e){return e?"setUTCSeconds":"setSeconds"}function Ok(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Lk(e){if(!iS(e))return Uv(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Nk(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Pk=ry;function Rk(e,t,n){function i(e){return e&&sy(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var r="time"===t,a=e instanceof Date;if(r||a){var s=r?Kw(e):e;if(!isNaN(+s))return mk(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return Yv(e)?i(e):qv(e)&&o(e)?e+"":"-";var l=nS(e);return o(l)?Lk(l):Yv(e)?i(e):"boolean"==typeof e?e+"":"-"}var zk=["a","b","c","d","e","f","g"],Vk=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Bk(e,t,n){Wv(t)||(t=[t]);var i=t.length;if(!i)return"";for(var o=t[0].$vars||[],r=0;r<o.length;r++){var a=zk[r];e=e.replace(Vk(a),Vk(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var c=t[s][o[l]];e=e.replace(Vk(zk[l],s),n?Zy(c):c)}return e}function jk(e,t){return t=t||"transparent",Uv(e)?e:Xv(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Fk(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Gk=Rv,Wk=["left","right","top","bottom","width","height"],Hk=[["width","left","right"],["height","top","bottom"]];function Uk(e,t,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;t.eachChild((function(l,c){var u,p,d=l.getBoundingRect(),h=t.childAt(c+1),f=h&&h.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);(u=r+g)>i||l.newline?(r=0,u=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(p=a+m)>o||l.newline?(r+=s+n,a=0,p=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===e?r=u+n:a=p+n)}))}var Yk=Uk;function qk(e,t,n){n=Pk(n||0);var i=t.width,o=t.height,r=jw(e.left,i),a=jw(e.top,o),s=jw(e.right,i),l=jw(e.bottom,o),c=jw(e.width,i),u=jw(e.height,o),p=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(c)&&(c=i-s-d-r),isNaN(u)&&(u=o-l-p-a),null!=h&&(isNaN(c)&&isNaN(u)&&(h>i/o?c=.8*i:u=.8*o),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(r)&&(r=i-s-c-d),isNaN(a)&&(a=o-l-u-p),e.left||e.right){case"center":r=i/2-c/2-n[3];break;case"right":r=i-c-d}switch(e.top||e.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-p}r=r||0,a=a||0,isNaN(c)&&(c=i-d-r-(s||0)),isNaN(u)&&(u=o-p-a-(l||0));var f=new Ax(r+n[3],a+n[0],c,u);return f.margin=n,f}function Xk(e,t,n,i,o,r){var a,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if((r=r||e).x=e.x,r.y=e.y,!s&&!l)return!1;if("raw"===c)a="group"===e.type?new Ax(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(a=a.clone()).applyTransform(u)}var p=qk(Ov({width:a.width,height:a.height},t),n,i),d=s?p.x-a.x:0,h=l?p.y-a.y:0;return"raw"===c?(r.x=d,r.y=h):(r.x+=d,r.y+=h),r===e&&e.markRedraw(),!0}function $k(e){var t=e.layoutMode||e.constructor.layoutMode;return Xv(t)?t:t?{type:t}:null}function Zk(e,t,n){var i=n&&n.ignoreSize;!Wv(i)&&(i=[i,i]);var o=a(Hk[0],0),r=a(Hk[1],1);function a(n,o){var r={},a=0,c={},u=0;if(Gk(n,(function(t){c[t]=e[t]})),Gk(n,(function(e){s(t,e)&&(r[e]=c[e]=t[e]),l(r,e)&&a++,l(c,e)&&u++})),i[o])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(2!==u&&a){if(a>=2)return r;for(var p=0;p<n.length;p++){var d=n[p];if(!s(r,d)&&s(e,d)){r[d]=e[d];break}}return r}return c}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){Gk(e,(function(e){t[e]=n[e]}))}c(Hk[0],e,o),c(Hk[1],e,r)}function Kk(e){return Jk({},e)}function Jk(e,t){return t&&e&&Gk(Wk,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}Gv(Uk,"vertical"),Gv(Uk,"horizontal");var Qk=NS(),eE=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.uid=qD("ec_cpt_model"),o}return S(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=$k(this),i=n?Kk(e):{};Dv(e,t.getTheme().get(this.mainType)),Dv(e,this.getDefaultOption()),n&&Zk(e,i,n)},t.prototype.mergeOption=function(e,t){Dv(this.option,e,!0);var n=$k(this);n&&Zk(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[YS])}(e))return e.defaultOption;var t=Qk(this);if(!t.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;a>=0;a--)r=Dv(r,n[a],!0);t.defaultOption=r}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return jS(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(UD);$S(eE,UD),QS(eE),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=qS(e);t[i.main]=n},e.determineSubType=function(n,i){var o=i.type;if(!o){var r=qS(n).main;e.hasSubTypes(n)&&t[r]&&(o=t[r](i))}return o}}(eE),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,o,r){if(e.length){var a=function(e){var i={},o=[];return Rv(e,(function(r){var a=n(i,r),s=function(e,t){var n=[];return Rv(e,(function(e){Lv(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(r),e);a.entryCount=s.length,0===a.entryCount&&o.push(r),Rv(s,(function(e){Lv(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(i,e);Lv(t.successor,e)<0&&t.successor.push(r)}))})),{graph:i,noEntryList:o}}(i),s=a.graph,l=a.noEntryList,c={};for(Rv(e,(function(e){c[e]=!0}));l.length;){var u=l.pop(),p=s[u],d=!!c[u];d&&(o.call(r,u,p.originalDeps.slice()),delete c[u]),Rv(p.successor,d?f:h)}Rv(c,(function(){var t="";throw"production"!==process.env.NODE_ENV&&(t=gS("Circular dependency may exists: ",c,e,i)),new Error(t)}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){c[e]=!0,h(e)}}}(eE,(function(e){var t=[];Rv(eE.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=zv(t,(function(e){return qS(e).main})),"dataset"!==e&&Lv(t,"dataset")<=0&&t.unshift("dataset");return t}));var tE=eE,nE="";"undefined"!=typeof navigator&&(nE=navigator.platform||"");var iE="rgba(0, 0, 0, 0.2)",oE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:iE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:iE,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:iE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:iE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:iE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:iE,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nE.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},rE=fy(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),aE="original",sE="arrayRows",lE="objectRows",cE="keyedColumns",uE="typedArray",pE="unknown",dE="column",hE="row",fE={Must:1,Might:2,Not:3},gE=NS();function mE(e,t,n){var i={},o=yE(t);if(!o||!e)return i;var r,a,s=[],l=[],c=t.ecModel,u=gE(c).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;Rv(e=e.slice(),(function(t,n){var o=Xv(t)?t:e[n]={name:t};"ordinal"===o.type&&null==r&&(r=n,a=f(o)),i[o.name]=[]}));var d=u.get(p)||u.set(p,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function f(e){var t=e.dimsDef;return t?t.length:1}return Rv(e,(function(e,t){var n=e.name,o=f(e);if(null==r){var a=d.valueWayDim;h(i[n],a,o),h(l,a,o),d.valueWayDim+=o}else if(r===t)h(i[n],0,o),h(s,0,o);else{a=d.categoryWayDim;h(i[n],a,o),h(l,a,o),d.categoryWayDim+=o}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function vE(e,t,n){var i={};if(!yE(e))return i;var o,r=t.sourceFormat,a=t.dimensionsDefine;r!==lE&&r!==cE||Rv(a,(function(e,t){"name"===(Xv(e)?e.name:e)&&(o=t)}));var s=function(){for(var e={},i={},s=[],l=0,c=Math.min(5,n);l<c;l++){var u=bE(t.data,r,t.seriesLayoutBy,a,t.startIndex,l);s.push(u);var p=u===fE.Not;if(p&&null==e.v&&l!==o&&(e.v=l),(null==e.n||e.n===e.v||!p&&s[e.n]===fE.Not)&&(e.n=l),d(e)&&s[e.n]!==fE.Not)return e;p||(u===fE.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(i)?i:null}();if(s){i.value=[s.v];var l=null!=o?o:s.n;i.itemName=[l],i.seriesName=[l]}return i}function yE(e){if(!e.get("data",!0))return jS(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},VS).models[0]}function xE(e,t){return bE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function bE(e,t,n,i,o,r){var a,s,l;if(Zv(e))return fE.Not;if(i){var c=i[r];Xv(c)?(s=c.name,l=c.type):Uv(c)&&(s=c)}if(null!=l)return"ordinal"===l?fE.Must:fE.Not;if(t===sE){var u=e;if(n===hE){for(var p=u[r],d=0;d<(p||[]).length&&d<5;d++)if(null!=(a=x(p[o+d])))return a}else for(d=0;d<u.length&&d<5;d++){var h=u[o+d];if(h&&null!=(a=x(h[r])))return a}}else if(t===lE){var f=e;if(!s)return fE.Not;for(d=0;d<f.length&&d<5;d++){if((v=f[d])&&null!=(a=x(v[s])))return a}}else if(t===cE){var g=e;if(!s)return fE.Not;if(!(p=g[s])||Zv(p))return fE.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(a=x(p[d])))return a}else if(t===aE){var m=e;for(d=0;d<m.length&&d<5;d++){var v,y=SS(v=m[d]);if(!Wv(y))return fE.Not;if(null!=(a=x(y[r])))return a}}function x(e){var t=Uv(e);return null!=e&&isFinite(e)&&""!==e?t?fE.Might:fE.Not:t&&"-"!==e?fE.Must:void 0}return fE.Not}var _E=fy();var wE,SE,CE,ME=NS(),TE=NS(),IE=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=bS(this.get("color",!0)),o=this.get("colorLayer",!0);return DE(this,ME,i,o,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,ME)},e}();function AE(e,t,n,i){var o=bS(e.get(["aria","decal","decals"]));return DE(e,TE,o,null,t,n,i)}function DE(e,t,n,i,o,r,a){var s=t(r=r||e),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(o))return c[o];var u=null!=a&&i?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(i,a):n;if((u=u||n)&&u.length){var p=u[l];return o&&(c[o]=p),s.paletteIdx=(l+1)%u.length,p}}var kE="\0_ec_inner",EE={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},OE={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},LE={};var NE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.init=function(e,t,n,i,o,r){i=i||{},this.option=null,this._theme=new UD(i),this._locale=new UD(o),this._optionManager=r},t.prototype.setOption=function(e,t,n){"production"!==process.env.NODE_ENV&&(ay(null!=e,"option is null/undefined"),ay(1!==e[kE],"please use chart.getOption()"));var i=zE(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,zE(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var o=i.mountOption("recreate"===e);"production"!==process.env.NODE_ENV&&Rv(o,(function(e,t){if(!tE.hasClass(t)){var n=EE[t];n&&!LE[n]&&(dS("Component "+t+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),LE[n]=!0)}})),this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(o,t)):CE(this,o),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var r=i.getTimelineOption(this);r&&(n=!0,this._mergeOption(r,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&Rv(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=fy(),s=t&&t.replaceMergeMainTypeMap;gE(this).datasetMap=fy(),Rv(e,(function(e,t){null!=e&&(tE.hasClass(t)?t&&(r.push(t),a.set(t,!0)):n[t]=null==n[t]?Av(e):Dv(n[t],e,!0))})),s&&s.each((function(e,t){tE.hasClass(t)&&!a.get(t)&&(r.push(t),a.set(t,!0))})),tE.topologicalTravel(r,tE.getAllClassMainTypes(),(function(t){var r=function(e,t,n){var i=_E.get(t);if(!i)return n;var o=i(e);if(!o)return n;if("production"!==process.env.NODE_ENV)for(var r=0;r<o.length;r++)ay(OS(o[r]));return n.concat(o)}(this,t,bS(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=MS(a,r,l);(function(e,t,n){Rv(e,(function(e){var i=e.newOption;Xv(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,i){return t.type?t.type:n?n.subType:i.determineSubType(e,t)}(t,i,e.existing,n))}))})(c,t,tE),n[t]=null,i.set(t,null),o.set(t,0);var u,p,d=[],h=[],f=0;Rv(c,(function(e,n){var i=e.existing,o=e.newOption;if(o){var r="series"===t,a=tE.getClass(t,e.keyInfo.subType,!r);if(!a){if("production"!==process.env.NODE_ENV){var s=e.keyInfo.subType,l=OE[s];LE[s]||(LE[s]=!0,dS(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unknown series "+s))}return}if("tooltip"===t){if(u)return void("production"!==process.env.NODE_ENV&&(p||(pS("Currently only one tooltip component is allowed."),p=!0)));u=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1);else{var c=Ev({componentIndex:n},e.keyInfo);Ev(i=new a(o,this,this,c),c),e.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),f++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,i.set(t,h),o.set(t,f),"series"===t&&wE(this)}),this),this._seriesIndices||wE(this)},t.prototype.getOption=function(){var e=Av(this.option);return Rv(e,(function(t,n){if(tE.hasClass(n)){for(var i=bS(t),o=i.length,r=!1,a=o-1;a>=0;a--)i[a]&&!OS(i[a])?r=!0:(i[a]=null,!r&&o--);i.length=o,e[n]=i}})),delete e[kE],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,o=e.id,r=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],Rv(bS(i),(function(e){a[e]&&n.push(a[e])}))):n=null!=o?PE("id",o,a):null!=r?PE("name",r,a):Bv(a,(function(e){return!!e})),RE(n,e)):[]},t.prototype.findComponents=function(e){var t,n=e.query,i=e.mainType,o=function(e){var t=i+"Index",n=i+"Id",o=i+"Name";return!e||null==e[t]&&null==e[n]&&null==e[o]?null:{mainType:i,index:e[t],id:e[n],name:e[o]}}(n),r=o?this.queryComponents(o):Bv(this._componentsMap.get(i),(function(e){return!!e}));return t=RE(r,e),e.filter?Bv(t,e.filter):t},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(Hv(e)){var o=t,r=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&r.call(o,t,i,i.componentIndex)}}))}else for(var a=Uv(e)?i.get(e):Xv(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=AS(e,null);return Bv(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Bv(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Bv(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){SE(this),Rv(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){Rv(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){SE(this),Rv(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&t.call(n,o,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Rv(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return SE(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){SE(this);var n=[];Rv(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];e.call(t,o,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=fy(n)},t.prototype.restoreData=function(e){wE(this);var t=this._componentsMap,n=[];t.each((function(e,t){tE.hasClass(t)&&n.push(t)})),tE.topologicalTravel(n,tE.getAllClassMainTypes(),(function(n){Rv(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,o=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=o&&e.name!==o}}(t,e)||t.restoreData()}))}))},t.internalField=(wE=function(e){var t=e._seriesIndices=[];Rv(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=fy(t)},SE=function(e){if("production"!==process.env.NODE_ENV&&!e._seriesIndices)throw new Error("Option should contains series.")},void(CE=function(e,t){e.option={},e.option[kE]=1,e._componentsMap=fy({series:[]}),e._componentsCount=fy();var n=t.aria;Xv(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;Rv(t,(function(t,i){"colorLayer"===i&&n||tE.hasClass(i)||("object"==typeof t?e[i]=e[i]?Dv(e[i],t,!1):Av(t):null==e[i]&&(e[i]=t))}))}(t,e._theme.option),Dv(t,oE,!1),e._mergeOption(t,null)})),t}(UD);function PE(e,t,n){if(Wv(t)){var i=fy();return Rv(t,(function(e){null!=e&&(null!=AS(e,null)&&i.set(e,!0))})),Bv(n,(function(t){return t&&i.get(t[e])}))}var o=AS(t,null);return Bv(n,(function(t){return t&&null!=o&&t[e]===o}))}function RE(e,t){return t.hasOwnProperty("subType")?Bv(e,(function(e){return e&&e.subType===t.subType})):e}function zE(e){var t=fy();return e&&Rv(bS(e.replaceMerge),(function(e){"production"!==process.env.NODE_ENV&&ay(tE.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Nv(NE,IE);var VE=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],BE=function(e){Rv(VE,(function(t){this[t]=Fv(e[t],e)}),this)},jE={},FE=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];Rv(jE,(function(i,o){var r=i.create(e,t);n=n.concat(r||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){Rv(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){jE[e]=t},e.get=function(e){return jE[e]},e}(),GE=/^(min|max)?(.+)$/,WE=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Rv(bS(e.series),(function(e){e&&e.data&&Zv(e.data)&&cy(e.data)})),Rv(bS(e.dataset),(function(e){e&&e.source&&Zv(e.source)&&cy(e.source)}))),e=Av(e);var i=this._optionBackup,o=function(e,t,n){var i,o,r=[],a=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,p=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((p||u)&&(e.options=e.media=null),o=e);u&&(Wv(c)?Rv(c,(function(e){"production"!==process.env.NODE_ENV&&e&&!e.option&&Xv(e.query)&&Xv(e.query.option)&&dS("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),e&&e.option&&(e.query?r.push(e):i||(i=e))})):"production"!==process.env.NODE_ENV&&dS("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function d(e){Rv(t,(function(t){t(e,n)}))}return d(o),Rv(l,(function(e){return d(e)})),Rv(r,(function(e){return d(e.option)})),{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}(e,t,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Av(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Av(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),o=this._api.getHeight(),r=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!r.length&&!a)return l;for(var c=0,u=r.length;c<u;c++)HE(r[c].query,i,o)&&s.push(c);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=zv(s,(function(e){return Av(-1===e?a.option:r[e].option)}))),this._currentMediaIndices=s,l},e}();function HE(e,t,n){var i={width:t,height:n,aspectratio:t/n},o=!0;return Rv(e,(function(e,t){var n=t.match(GE);if(n&&n[1]&&n[2]){var r=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,r)||(o=!1)}})),o}var UE=WE,YE=Rv,qE=Xv,XE=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $E(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=XE.length;n<i;n++){var o=XE[n],r=t.normal,a=t.emphasis;r&&r[o]&&("production"!==process.env.NODE_ENV&&fS("itemStyle.normal."+o,o),e[o]=e[o]||{},e[o].normal?Dv(e[o].normal,r[o]):e[o].normal=r[o],r[o]=null),a&&a[o]&&("production"!==process.env.NODE_ENV&&fS("itemStyle.emphasis."+o,"emphasis."+o),e[o]=e[o]||{},e[o].emphasis?Dv(e[o].emphasis,a[o]):e[o].emphasis=a[o],a[o]=null)}}function ZE(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,o=e[t].emphasis;i&&("production"!==process.env.NODE_ENV&&hS("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),n?(e[t].normal=e[t].emphasis=null,Ov(e[t],i)):e[t]=i),o&&("production"!==process.env.NODE_ENV&&hS(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=o,o.focus&&(e.emphasis.focus=o.focus),o.blurScope&&(e.emphasis.blurScope=o.blurScope))}}function KE(e){ZE(e,"itemStyle"),ZE(e,"lineStyle"),ZE(e,"areaStyle"),ZE(e,"label"),ZE(e,"labelLine"),ZE(e,"upperLabel"),ZE(e,"edgeLabel")}function JE(e,t){var n=qE(e)&&e[t],i=qE(n)&&n.textStyle;if(i){"production"!==process.env.NODE_ENV&&hS("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var o=0,r=wS.length;o<r;o++){var a=wS[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function QE(e){e&&(KE(e),JE(e,"label"),e.emphasis&&JE(e.emphasis,"label"))}function eO(e){return Wv(e)?e:e?[e]:[]}function tO(e){return(Wv(e)?e[0]:e)||{}}function nO(e,t){YE(eO(e.series),(function(e){qE(e)&&function(e){if(qE(e)){$E(e),KE(e),JE(e,"label"),JE(e,"upperLabel"),JE(e,"edgeLabel"),e.emphasis&&(JE(e.emphasis,"label"),JE(e.emphasis,"upperLabel"),JE(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&($E(t),QE(t));var n=e.markLine;n&&($E(n),QE(n));var i=e.markArea;i&&QE(i);var o=e.data;if("graph"===e.type){o=o||e.nodes;var r=e.links||e.edges;if(r&&!Zv(r))for(var a=0;a<r.length;a++)QE(r[a]);Rv(e.categories,(function(e){KE(e)}))}if(o&&!Zv(o))for(a=0;a<o.length;a++)QE(o[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)QE(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Wv(l[a])?(QE(l[a][0]),QE(l[a][1])):QE(l[a])}"gauge"===e.type?(JE(e,"axisLabel"),JE(e,"title"),JE(e,"detail")):"treemap"===e.type?(ZE(e.breadcrumb,"itemStyle"),Rv(e.levels,(function(e){KE(e)}))):"tree"===e.type&&KE(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),YE(n,(function(t){YE(eO(e[t]),(function(e){e&&(JE(e,"axisLabel"),JE(e.axisPointer,"label"))}))})),YE(eO(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;JE(t,"axisLabel"),JE(t&&t.axisPointer,"label")})),YE(eO(e.calendar),(function(e){ZE(e,"itemStyle"),JE(e,"dayLabel"),JE(e,"monthLabel"),JE(e,"yearLabel")})),YE(eO(e.radar),(function(e){JE(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name,"production"!==process.env.NODE_ENV&&hS("name property in radar component has been changed to axisName")),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap,"production"!==process.env.NODE_ENV&&hS("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&YE(e.indicator,(function(e){e.text&&fS("text","name","radar.indicator")}))})),YE(eO(e.geo),(function(e){qE(e)&&(QE(e),YE(eO(e.regions),(function(e){QE(e)})))})),YE(eO(e.timeline),(function(e){QE(e),ZE(e,"label"),ZE(e,"itemStyle"),ZE(e,"controlStyle",!0);var t=e.data;Wv(t)&&Rv(t,(function(e){Xv(e)&&(ZE(e,"label"),ZE(e,"itemStyle"))}))})),YE(eO(e.toolbox),(function(e){ZE(e,"iconStyle"),YE(e.feature,(function(e){ZE(e,"iconStyle")}))})),JE(tO(e.axisPointer),"label"),JE(tO(e.tooltip).axisPointer,"label")}function iO(e){e&&Rv(oO,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var oO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],aO=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function sO(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<aO.length;n++){var i=aO[n][1],o=aO[n][0];null!=t[i]&&(t[o]=t[i],"production"!==process.env.NODE_ENV&&fS(i,o))}}function lO(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&("production"!==process.env.NODE_ENV&&fS("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function cO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,"production"!==process.env.NODE_ENV&&fS("downplay","blur","sunburst"))}function uO(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&uO(e[n].children,t)}function pO(e,t){nO(e,t),e.series=bS(e.series),Rv(e.series,(function(e){if(Xv(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow,"production"!==process.env.NODE_ENV&&fS("clipOverflow","clip","line"));else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise,"production"!==process.env.NODE_ENV&&fS("clockWise","clockwise")),lO(e.label),(o=e.data)&&!Zv(o))for(var n=0;n<o.length;n++)lO(o[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&fS("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),i=e,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(e,"pointer.color");null!=i&&function(e,t,n,i){for(var o,r=t.split(","),a=e,s=0;s<r.length-1;s++)null==a[o=r[s]]&&(a[o]={}),a=a[o];(i||null==a[r[s]])&&(a[r[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){var o;if(sO(e),sO(e.backgroundStyle),sO(e.emphasis),(o=e.data)&&!Zv(o))for(n=0;n<o.length;n++)"object"==typeof o[n]&&(sO(o[n]),sO(o[n]&&o[n].emphasis))}else if("sunburst"===t){var r=e.highlightPolicy;r&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=r,"production"!==process.env.NODE_ENV&&fS("highlightPolicy","emphasis.focus","sunburst"))),cO(e),uO(e.data,cO)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&("production"!==process.env.NODE_ENV&&fS("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&("production"!==process.env.NODE_ENV&&fS("mapType","map","map"),e.map=e.mapType),e.mapLocation&&("production"!==process.env.NODE_ENV&&hS("`mapLocation` is not used anymore."),Ov(e,e.mapLocation)));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&("production"!==process.env.NODE_ENV&&fS("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),iO(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Rv(rO,(function(t){var n=e[t];n&&(Wv(n)||(n=[n]),Rv(n,(function(e){iO(e)})))}))}function dO(e){Rv(e,(function(t,n){var i=[],o=[NaN,NaN],r=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(r,(function(r,c,u){var p,d,h=a.get(t.stackedDimension,u);if(isNaN(h))return o;s?d=a.getRawIndex(u):p=a.get(t.stackedByDimension,u);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,p)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=Yw(h,v),f=v;break}}}return i[0]=h,i[1]=f,i}))}))}var hO,fO,gO,mO,vO,yO=function(e){this.data=e.data||(e.sourceFormat===cE?{}:[]),this.sourceFormat=e.sourceFormat||pE,this.seriesLayoutBy=e.seriesLayoutBy||dE,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&xE(this,n)===fE.Must&&(i.type="ordinal")}};function xO(e){return e instanceof yO}function bO(e,t,n){n=n||wO(e);var i=t.seriesLayoutBy,o=function(e,t,n,i,o){var r,a;if(!e)return{dimensionsDefine:SO(o),startIndex:a,dimensionsDetectedCount:r};if(t===sE){var s=e;"auto"===i||null==i?CO((function(e){null!=e&&"-"!==e&&(Uv(e)?null==a&&(a=1):a=0)}),n,s,10):a=qv(i)?i:i?1:0,o||1!==a||(o=[],CO((function(e,t){o[t]=null!=e?e+"":""}),n,s,1/0)),r=o?o.length:n===hE?s.length:s[0]?s[0].length:null}else if(t===lE)o||(o=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return jv(t)}(e));else if(t===cE)o||(o=[],Rv(e,(function(e,t){o.push(t)})));else if(t===aE){var l=SS(e[0]);r=Wv(l)&&l.length||1}else t===uE&&"production"!==process.env.NODE_ENV&&ay(!!o,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:SO(o),dimensionsDetectedCount:r}}(e,n,i,t.sourceHeader,t.dimensions);return new yO({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Av(t)})}function _O(e){return new yO({data:e,sourceFormat:Zv(e)?uE:aE})}function wO(e){var t=pE;if(Zv(e))t=uE;else if(Wv(e)){0===e.length&&(t=sE);for(var n=0,i=e.length;n<i;n++){var o=e[n];if(null!=o){if(Wv(o)||Zv(o)){t=sE;break}if(Xv(o)){t=lE;break}}}}else if(Xv(e))for(var r in e)if(yy(e,r)&&Pv(e[r])){t=cE;break}return t}function SO(e){if(e){var t=fy();return zv(e,(function(e,n){var i={name:(e=Xv(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i}))}}function CO(e,t,n,i){if(t===hE)for(var o=0;o<n.length&&o<i;o++)e(n[o]?n[o][0]:null,o);else{var r=n[0]||[];for(o=0;o<r.length&&o<i;o++)e(r[o],o)}}function MO(e){var t=e.sourceFormat;return t===lE||t===cE}var TO=function(){function e(e,t){var n=xO(e)?e:_O(e);this._source=n;var i=this._data=n.data;if(n.sourceFormat===uE){if("production"!==process.env.NODE_ENV&&null==t)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=i}vO(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;vO=function(e,o,r){var a=r.sourceFormat,s=r.seriesLayoutBy,l=r.startIndex,c=r.dimensionsDefine,u=mO[RO(a,s)];if("production"!==process.env.NODE_ENV&&ay(u,"Invalide sourceFormat: "+a),Ev(e,u),a===uE)e.getItem=t,e.count=i,e.fillStorage=n;else{var p=DO(a,s);e.getItem=Fv(p,null,o,l,c);var d=OO(a,s);e.count=Fv(d,null,o,l,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,o=i*e,r=0;r<i;r++)t[r]=n[o+r];return t},n=function(e,t,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],u=t-e,p=n[a],d=0;d<u;d++){var h=o[d*r+a];p[e+d]=h,h<l&&(l=h),h>c&&(c=h)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function o(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[sE+"_"+dE]={pure:!0,appendData:o},e[sE+"_"+hE]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[lE]={pure:!0,appendData:o},e[cE]={pure:!0,appendData:function(e){var t=this._data;Rv(e,(function(e,n){for(var i=t[n]||(t[n]=[]),o=0;o<(e||[]).length;o++)i.push(e[o])}))}},e[aE]={appendData:o},e[uE]={persistent:!1,pure:!0,appendData:function(e){"production"!==process.env.NODE_ENV&&ay(Zv(e),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},mO=e}(),e}(),IO=function(e,t,n,i){return e[i]},AO=((hO={})[sE+"_"+dE]=function(e,t,n,i){return e[i+t]},hO[sE+"_"+hE]=function(e,t,n,i,o){i+=t;for(var r=o||[],a=e,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},hO[lE]=IO,hO[cE]=function(e,t,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=n[a].name;if("production"!==process.env.NODE_ENV&&null==s)throw new Error;var l=e[s];r[a]=l?l[i]:null}return r},hO[aE]=IO,hO);function DO(e,t){var n=AO[RO(e,t)];return"production"!==process.env.NODE_ENV&&ay(n,'Do not support get item on "'+e+'", "'+t+'".'),n}var kO=function(e,t,n){return e.length},EO=((fO={})[sE+"_"+dE]=function(e,t,n){return Math.max(0,e.length-t)},fO[sE+"_"+hE]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},fO[lE]=kO,fO[cE]=function(e,t,n){var i=n[0].name;if("production"!==process.env.NODE_ENV&&null==i)throw new Error;var o=e[i];return o?o.length:0},fO[aE]=kO,fO);function OO(e,t){var n=EO[RO(e,t)];return"production"!==process.env.NODE_ENV&&ay(n,'Do not support count on "'+e+'", "'+t+'".'),n}var LO=function(e,t,n){return e[t]},NO=((gO={})[sE]=LO,gO[lE]=function(e,t,n){return e[n]},gO[cE]=LO,gO[aE]=function(e,t,n){var i=SS(e);return i instanceof Array?i[t]:i},gO[uE]=LO,gO);function PO(e){var t=NO[e];return"production"!==process.env.NODE_ENV&&ay(t,'Do not support get value on "'+e+'".'),t}function RO(e,t){return e===sE?e+"_"+t:e}function zO(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var o=e.getStore(),r=o.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=o.getDimensionProperty(a);return PO(r)(i,a,s)}var l=i;return r===aE&&(l=SS(i)),l}}}var VO=/\{@(.+?)\}/g,BO=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),o=n.getRawIndex(e),r=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,p="series"===u,d=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:r,dataIndex:o,data:a,dataType:t,value:i,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,o,r){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(r&&(s.value=r.interpolatedValue),null!=i&&Wv(s.value)&&(s.value=s.value[i]),o)||(o=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return Hv(o)?(s.status=t,s.dimensionIndex=i,o(s)):Uv(o)?Bk(o,s).replace(VO,(function(t,n){var i=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(i-1)&&(o=+o.slice(1,i-1),"production"!==process.env.NODE_ENV&&isNaN(o)&&dS("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=zO(a,e,o);if(r&&Wv(r.interpolatedValue)){var l=a.getDimensionIndex(o);l>=0&&(s=r.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return zO(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function jO(e){var t,n;return Xv(e)?e.type?n=e:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+gS(e)):t=e,{text:t,frag:n}}function FO(e){return new GO(e)}var GO=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var r,a=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}a===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,r=this._doReset(i)),this._modBy=l,this._modDataCount=c;var p=e&&e.step;if(n?("production"!==process.env.NODE_ENV&&ay(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&ay(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,h=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(r||d<h)){var f=this._progress;if(Wv(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,h,l,c);else this._doProgress(f,d,h,l,c)}this._dueIndex=h;var m=null!=this._settedOutputEnd?this._settedOutputEnd:h;"production"!==process.env.NODE_ENV&&ay(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,o){WO.reset(t,n,i,o),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:WO.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Wv(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){"production"!==process.env.NODE_ENV&&ay(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),WO=function(){var e,t,n,i,o,r={reset:function(l,c,u,p){t=l,e=c,n=u,i=p,o=Math.ceil(i/n),r.next=n>1&&i>0?s:a}};return r;function a(){return t<e?t++:null}function s(){var r=t%o*n+Math.ceil(t/o),a=t>=e?null:r<i?r:t;return t++,a}}();function HO(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||qv(e)||null==e||"-"===e||(e=+Kw(e)),null==e||""===e?NaN:+e)}var UO=fy({number:function(e){return parseFloat(e)},time:function(e){return+Kw(e)},trim:function(e){return Uv(e)?sy(e):e}});function YO(e){return UO.get(e)}var qO={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},XO=function(){function e(e,t){if(!qv(t)){var n="";"production"!==process.env.NODE_ENV&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),mS(n)}this._opFn=qO[e],this._rvalFloat=nS(t)}return e.prototype.evaluate=function(e){return qv(e)?this._opFn(e,this._rvalFloat):this._opFn(nS(e),this._rvalFloat)},e}(),$O=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=qv(e)?e:nS(e),i=qv(t)?t:nS(t),o=isNaN(n),r=isNaN(i);if(o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r){var a=Uv(e),s=Uv(t);a&&(n=s?e:0),s&&(i=a?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),ZO=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=nS(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=nS(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function KO(e,t){return"eq"===e||"ne"===e?new ZO("eq"===e,t):yy(qO,e)?new XO(e,t):null}var JO=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return HO(e,t)},e}();function QO(e){var t=e.sourceFormat;if(!rL(t)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+t),mS(n)}return e.data}function eL(e){var t=e.sourceFormat,n=e.data;if(!rL(t)){var i="";"production"!==process.env.NODE_ENV&&(i="`cloneRawData` is not supported in source format "+t),mS(i)}if(t===sE){for(var o=[],r=0,a=n.length;r<a;r++)o.push(n[r].slice());return o}if(t===lE){for(o=[],r=0,a=n.length;r<a;r++)o.push(Ev({},n[r]));return o}}function tL(e,t,n){if(null!=n)return qv(n)||!isNaN(n)&&!yy(t,n)?e[n]:yy(t,n)?t[n]:void 0}function nL(e){return Av(e)}var iL=fy();function oL(e,t,n,i){var o="";t.length||("production"!==process.env.NODE_ENV&&(o="Must have at least one upstream dataset."),mS(o)),Xv(e)||("production"!==process.env.NODE_ENV&&(o="transform declaration must be an object rather than "+typeof e+"."),mS(o));var r=e.type,a=iL.get(r);a||("production"!==process.env.NODE_ENV&&(o='Can not find transform on type "'+r+'".'),mS(o));var s,l=zv(t,(function(e){return function(e,t){var n=new JO,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a="";e.seriesLayoutBy!==dE&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),mS(a));var s=[],l={},c=e.dimensionsDefine;if(c)Rv(c,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var o="";yy(l,n)&&("production"!==process.env.NODE_ENV&&(o='dimension name "'+n+'" duplicated.'),mS(o)),l[n]=i}}));else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var p=DO(o,dE);t.__isBuiltIn&&(n.getRawDataItem=function(e){return p(i,r,s,e)},n.getRawData=Fv(QO,null,e)),n.cloneRawData=Fv(eL,null,e);var d=OO(o,dE);n.count=Fv(d,null,i,r,s);var h=PO(o);n.retrieveValue=function(e,t){var n=p(i,r,s,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?h(e,t,n.name):void 0}};return n.getDimensionInfo=Fv(tL,null,s,l),n.cloneAllDimensionInfo=Fv(nL,null,s),n}(e,a)})),c=bS(a.transform({upstream:l[0],upstreamList:l,config:Av(e.config)}));if("production"!==process.env.NODE_ENV&&e.print){var u=zv(c,(function(e){var t=null!=i?" === pipe index: "+i:"";return["=== dataset index: "+n.datasetIndex+t+" ===","- transform result data:",gS(e.data),"- transform result dimensions:",gS(e.dimensions)].join("\n")})).join("\n");uS("log",u,s)}return zv(c,(function(e,n){var i,o="";Xv(e)||("production"!==process.env.NODE_ENV&&(o="A transform should not return some empty results."),mS(o)),e.data||("production"!==process.env.NODE_ENV&&(o="Transform result data should be not be null or undefined"),mS(o)),rL(wO(e.data))||("production"!==process.env.NODE_ENV&&(o="Transform result data should be array rows or object rows."),mS(o));var r=t[0];if(r&&0===n&&!e.dimensions){var a=r.startIndex;a&&(e.data=r.data.slice(0,a).concat(e.data)),i={seriesLayoutBy:dE,sourceHeader:a,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:dE,sourceHeader:0,dimensions:e.dimensions};return bO(e.data,i,null)}))}function rL(e){return e===sE||e===lE}var aL,sL="undefined",lL=typeof Uint32Array===sL?Array:Uint32Array,cL=typeof Uint16Array===sL?Array:Uint16Array,uL=typeof Int32Array===sL?Array:Int32Array,pL=typeof Float64Array===sL?Array:Float64Array,dL={float:pL,int:uL,ordinal:Array,number:Array,time:pL};function hL(e){return e>65535?lL:cL}function fL(e,t,n,i,o){var r=dL[n||"float"];if(o){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new r(i),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new r(i)}var gL=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=fy()}return e.prototype.initData=function(e,t,n){"production"!==process.env.NODE_ENV&&ay(Hv(e.getItem)&&Hv(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),o=this.defaultDimValueGetter=aL[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];var r=MO(i);this._dimensions=zv(t,(function(e){return"production"!==process.env.NODE_ENV&&r&&ay(null!=e.property),{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(e);if(null!=o){if(i[o].type===t)return o}else o=i.length;return i[o]={type:t},n.set(e,o),this._chunks[o]=new dL[t||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[e]=[1/0,-1/0]);for(var s=o[e],l=r;l<a;l++){var c=n[l]=t.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){"production"!==process.env.NODE_ENV&&ay(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<o;l++){fL(n,l,(h=i[l]).type,s,!0)}for(var c=[],u=a;u<s;u++)for(var p=u-a,d=0;d<o;d++){var h=i[d],f=aL.arrayRows.call(this,e[p]||c,h.property,p,d);n[d][u]=f;var g=r[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=zv(r,(function(e){return e.property})),c=0;c<a;c++){var u=r[c];s[c]||(s[c]=[1/0,-1/0]),fL(o,c,u.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,o,s);else for(var p=[],d=e;d<t;d++){p=i.getItem(d,p);for(var h=0;h<a;h++){var f=o[h],g=this._dimValueGetter(p,l[h],d,h);f[d]=g;var m=s[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=e;o=0;for(var r=i.length;o<r;o++)n.push(this.get(i[o],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(t+=o)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(t[r]<e)i=r+1;else{if(!(t[r]>e))return r;o=r-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,c=this.count();l<c;l++){var u=t-i[this.getRawIndex(l)],p=Math.abs(u);p<=n&&((p<r||p===r&&u>=0&&a<0)&&(r=p,a=u,s=0),u===a&&(o[s++]=l))}return o.length=s,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var o=0;o<i;o++)e[o]=t[o]}else e=new n(t.buffer,0,i)}else{e=new(n=hL(this._rawCount))(this.count());for(o=0;o<e.length;o++)e[o]=o}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(hL(n._rawCount))(i),r=[],a=e.length,s=0,l=e[0],c=n._chunks,u=0;u<i;u++){var p=void 0,d=n.getRawIndex(u);if(0===a)p=t(u);else if(1===a){p=t(c[l][d],u)}else{for(var h=0;h<a;h++)r[h]=c[e[h]][d];r[h]=u,p=t.apply(null,r)}p&&(o[s++]=d)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=jv(e),o=i.length;if(!o)return this;var r=t.count(),a=new(hL(t._rawCount))(r),s=0,l=i[0],c=e[l][0],u=e[l][1],p=t._chunks,d=!1;if(!t._indices){var h=0;if(1===o){for(var f=p[i[0]],g=0;g<n;g++){((x=f[g])>=c&&x<=u||isNaN(x))&&(a[s++]=h),h++}d=!0}else if(2===o){f=p[i[0]];var m=p[i[1]],v=e[i[1]][0],y=e[i[1]][1];for(g=0;g<n;g++){var x=f[g],b=m[g];(x>=c&&x<=u||isNaN(x))&&(b>=v&&b<=y||isNaN(b))&&(a[s++]=h),h++}d=!0}}if(!d)if(1===o)for(g=0;g<r;g++){var _=t.getRawIndex(g);((x=p[i[0]][_])>=c&&x<=u||isNaN(x))&&(a[s++]=_)}else for(g=0;g<r;g++){for(var w=!0,S=(_=t.getRawIndex(g),0);S<o;S++){var C=i[S];((x=p[C][_])<e[C][0]||x>e[C][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<r&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,o=[],r=t.length,a=e.count(),s=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=[1/0,-1/0];for(var u=0;u<a;u++){for(var p=e.getRawIndex(u),d=0;d<r;d++)s[d]=i[t[d]][p];s[r]=u;var h=n&&n.apply(null,s);if(null!=h){"object"!=typeof h&&(o[0]=h,h=o);for(c=0;c<h.length;c++){var f=t[c],g=h[c],m=l[f],v=i[f];v&&(v[p]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,o,r=this.clone([e],!0),a=r._chunks[e],s=this.count(),l=0,c=Math.floor(1/t),u=this.getRawIndex(0),p=new(hL(this._rawCount))(Math.min(2*(Math.ceil(s/c)+2),s));p[l++]=u;for(var d=1;d<s-1;d+=c){for(var h=Math.min(d+c,s-1),f=Math.min(d+2*c,s),g=(f+h)/2,m=0,v=h;v<f;v++){var y=a[M=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=f-h;var x=d,b=Math.min(d+c,s),_=d-1,w=a[u];n=-1,o=x;var S=-1,C=0;for(v=x;v<b;v++){var M;y=a[M=this.getRawIndex(v)];isNaN(y)?(C++,S<0&&(S=M)):(i=Math.abs((_-g)*(y-w)-(_-v)*(m-w)))>n&&(n=i,o=M)}C>0&&C<b-x&&(p[l++]=Math.min(S,o),o=Math.max(S,o)),p[l++]=o,u=o}return p[l++]=this.getRawIndex(s-1),r._count=l,r._indices=p,r.getRawIndex=this._getRawIdx,r},e.prototype.downSample=function(e,t,n,i){for(var o=this.clone([e],!0),r=o._chunks,a=[],s=Math.floor(1/t),l=r[e],c=this.count(),u=o._rawExtent[e]=[1/0,-1/0],p=new(hL(this._rawCount))(Math.ceil(c/s)),d=0,h=0;h<c;h+=s){s>c-h&&(s=c-h,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(h+f);a[f]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(h+i(a,m)||0,c-1));l[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),p[d++]=v}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:t(o);break;case 1:t(i[e[0]][a],o);break;case 2:t(i[e[0]][a],i[e[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=o,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var i,o=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var r=(i=n)[0],a=i[1],s=0;s<o;s++){var l=t[this.getRawIndex(s)];l<r&&(r=l),l>a&&(a=l)}return i=[r,a],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][t]);return n},e.prototype.clone=function(t,n){var i,o,r=new e,a=this._chunks,s=t&&Vv(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var l=0;l<a.length;l++)r._chunks[l]=s[l]?(i=a[l],o=void 0,(o=i.constructor)===Array?i.slice():new o(i)):a[l];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Av(this._extent),e._rawExtent=Av(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return HO(e[i],this._dimensions[i])}aL={arrayRows:e,objectRows:function(e,t,n,i){return HO(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var o=e&&(null==e.value?e:e.value);return HO(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),mL=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),o=!!i.length;if(yL(n)){var r=n,a=void 0,s=void 0,l=void 0;if(o){var c=i[0];c.prepareSource(),a=(l=c.getSource()).data,s=l.sourceFormat,t=[c._getVersionSign()]}else s=Zv(a=r.get("data",!0))?uE:aE,t=[];var u=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},d=ny(u.seriesLayoutBy,p.seriesLayoutBy)||null,h=ny(u.sourceHeader,p.sourceHeader),f=ny(u.dimensions,p.dimensions);e=d!==p.seriesLayoutBy||!!h!=!!p.sourceHeader||f?[bO(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:f},s)]:[]}else{var g=n;if(o){var m=this._applyTransform(i);e=m.sourceList,t=m.upstreamSignList}else{e=[bO(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}"production"!==process.env.NODE_ENV&&ay(e&&t),this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&ay(null!=o||null!=i),null!=o){var r="";1!==e.length&&("production"!==process.env.NODE_ENV&&(r="When using `fromTransformResult`, there should be only one upstream dataset"),xL(r))}var a,s=[],l=[];return Rv(e,(function(e){e.prepareSource();var t=e.getSource(o||0),n="";null==o||t||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+o),xL(n)),s.push(t),l.push(e._getVersionSign())})),i?t=function(e,t,n){var i=bS(e),o=i.length,r="";o||("production"!==process.env.NODE_ENV&&(r="If `transform` declared, it should at least contain one transform."),mS(r));for(var a=0,s=o;a<s;a++)t=oL(i[a],t,n,1===o?null:a),a!==s-1&&(t.length=Math.max(t.length,1));return t}(i,s,{datasetIndex:n.componentIndex}):null!=o&&(t=[(a=s[0],new yO({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:Av(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){"production"!==process.env.NODE_ENV&&ay(yL(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=this._storeList,o=i[0];o||(o=i[0]={});var r=o[n];if(!r){var a=this._getUpstreamSourceManagers()[0];yL(this._sourceHost)&&a?r=a._innerGetDataStore(e,t,n):(r=new gL).initData(new TO(t,e.length),e),o[n]=r}return r},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(yL(e)){var t=yE(e);return t?[t.getSourceManager()]:[]}return zv(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?jS(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},VS).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(yL(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=i;e=o.get("seriesLayoutBy",!0),t=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function vL(e){e.option.transform&&cy(e.option.transform)}function yL(e){return"series"===e.mainType}function xL(e){throw new Error(e)}var bL="line-height:1";function _L(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,o=e.fontWeight||"400",r=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Zy(i+"")+"px;color:"+Zy(n)+";font-weight:"+Zy(o+""),valueStyle:"font-size:"+Zy(a+"")+"px;color:"+Zy(r)+";font-weight:"+Zy(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var wL=[0,10,20,30],SL=["","\n","\n\n","\n\n\n"];function CL(e,t){return t.type=e,t}function ML(e){return"section"===e.type}function TL(e){return ML(e)?AL:DL}function IL(e){if(ML(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return Rv(e.blocks,(function(e){var n=IL(e);n>=t&&(t=n+ +(i&&(!n||ML(e)&&!e.noHeader)))})),t}return 0}function AL(e,t,n,i){var o,r=t.noHeader,a=(o=IL(t),{html:wL[o],richText:SL[o]}),s=[],l=t.blocks||[];ay(!l||Wv(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(yy(u,c)){var p=new $O(u[c],null);l.sort((function(e,t){return p.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===c&&l.reverse()}Rv(l,(function(n,o){var r=t.valueFormatter,l=TL(n)(r?Ev(Ev({},e),{valueFormatter:r}):e,n,o>0?a.html:0,i);null!=l&&s.push(l)}));var d="richText"===e.renderMode?s.join(a.richText):EL(s.join(""),r?n:a.html);if(r)return d;var h=Rk(t.header,"ordinal",e.useUTC),f=_L(i,e.renderMode).nameStyle;return"richText"===e.renderMode?OL(e,h,f)+a.richText+d:EL('<div style="'+f+";"+bL+';">'+Zy(h)+"</div>"+d,n)}function DL(e,t,n,i){var o=e.renderMode,r=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return zv(e=Wv(e)?e:[e],(function(e,t){return Rk(e,Wv(h)?h[t]:h,c)}))};if(!r||!a){var p=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),d=r?"":Rk(l,"ordinal",c),h=t.valueType,f=a?[]:u(t.value,t.dataIndex),g=!s||!r,m=!s&&r,v=_L(i,o),y=v.nameStyle,x=v.valueStyle;return"richText"===o?(s?"":p)+(r?"":OL(e,d,y))+(a?"":function(e,t,n,i,o){var r=[o],a=i?10:20;return n&&r.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Wv(t)?t.join(" "):t,r)}(e,f,g,m,x)):EL((s?"":p)+(r?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Zy(e)+"</span>"}(d,!s,y))+(a?"":function(e,t,n,i){var o=n?"10px":"20px",r=t?"float:right;margin-left:"+o:"";return e=Wv(e)?e:[e],'<span style="'+r+";"+i+'">'+zv(e,(function(e){return Zy(e)})).join(" ")+"</span>"}(f,g,m,x)),n)}}function kL(e,t,n,i,o,r){if(e)return TL(e)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,r)}function EL(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+bL+';">'+e+'<div style="clear:both"></div></div>'}function OL(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function LL(e,t){return jk(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function NL(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var PL=function(){function e(){this.richTextStyles={},this._nextStyleNameId=oS()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,o=function(e,t){var n=Uv(e)?{color:e,extraCssText:t}:e||{},i=n.color,o=n.type;t=n.extraCssText;var r=n.renderMode||"html";return i?"html"===r?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Zy(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zy(i)+";"+(t||"")+'"></span>':{renderMode:r,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:t,type:e,renderMode:n,markerId:i});return Uv(o)?o:("production"!==process.env.NODE_ENV&&ay(i),this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Wv(t)?Rv(t,(function(e){return Ev(n,e)})):Ev(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function RL(e){var t,n,i,o,r=e.series,a=e.dataIndex,s=e.multipleSeries,l=r.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,p=r.getRawValue(a),d=Wv(p),h=LL(r,a);if(u>1||d&&!u){var f=function(e,t,n,i,o){var r=t.getData(),a=Vv(e,(function(e,t,n){var i=r.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],c=[];function u(e,t){var n=r.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?c.push(CL("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?Rv(i,(function(e){u(zO(r,n,e),e)})):Rv(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(p,r,a,c,h);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,o=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);o=t=zO(l,a,c[0]),n=g.type}else o=t=d?p[0]:p;var m=ES(r),v=m&&r.name||"",y=l.getName(a),x=s?v:y;return CL("section",{header:v,noHeader:s||!m,sortParam:o,blocks:[CL("nameValue",{markerType:"item",markerColor:h,name:x,noName:!sy(x),value:t,valueType:n,dataIndex:a})].concat(i||[])})}var zL=NS();function VL(e,t){return e.getName(t)||e.getId(t)}var BL="__universalTransitionEnabled",jL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return S(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=FO({count:GL,reset:WL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(zL(this).sourceManager=new mL(this)).prepareSource();var i=this.getInitialData(e,n);UL(i,this),this.dataTask.context.data=i,"production"!==process.env.NODE_ENV&&ay(i,"getInitialData returned invalid data."),zL(this).dataBeforeProcessed=i,FL(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=$k(this),i=n?Kk(e):{},o=this.subType;tE.hasClass(o)&&(o+="Series"),Dv(e,t.getTheme().get(this.subType)),Dv(e,this.getDefaultOption()),_S(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Zk(e,i,n)},t.prototype.mergeOption=function(e,t){e=Dv(this.option,e,!0),this.fillDataTextStyle(e.data);var n=$k(this);n&&Zk(this.option,e,n);var i=zL(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,t);UL(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,zL(this).dataBeforeProcessed=o,FL(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Zv(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&_S(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=qL(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return zL(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=qL(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}zL(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return fy(e)},t.prototype.getSourceManager=function(){return zL(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return zL(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return RL({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(av.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,o=IE.prototype.getColorFromPalette.call(this,e,t,n);return o||(o=i.getColorFromPalette(e,t,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;r<e.length;r++){var a=VL(o,e[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=jv(e),n=[],i=0;i<t.length;i++){var o=e[t[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[VL(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[BL])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,o=this.option,r=o.selectedMode,a=t.length;if(r&&a)if("series"===r)o.selectedMap="all";else if("multiple"===r){Xv(o.selectedMap)||(o.selectedMap={});for(var s=o.selectedMap,l=0;l<a;l++){var c=t[l];s[p=VL(e,c)]=!0,this._selectedDataIndicesMap[p]=e.getRawIndex(c)}}else if("single"===r||!0===r){var u=t[a-1],p=VL(e,u);o.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((i={})[p]=e.getRawIndex(u),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return tE.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(tE);function FL(e){var t=e.name;ES(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return Rv(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}(e)||t)}function GL(e){return e.model.getRawData().count()}function WL(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),HL}function HL(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function UL(e,t){Rv(gy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,Gv(YL,t))}))}function YL(e,t){var n=qL(e);return n&&n.setOutputEnd((t||this).count()),t}function qL(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(e.uid))}return i}}Nv(jL,BO),Nv(jL,IE),$S(jL,tE);var XL=jL,$L=function(){function e(){this.group=new Ew,this.uid=qD("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();XS($L),QS($L);var ZL=$L;function KL(){var e=NS();return function(t){var n=e(t),i=t.pipelineContext,o=!!n.large,r=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(o===a&&r===s)&&"reset"}}var JL=NS(),QL=KL(),eN=function(){function e(){this.group=new Ew,this.uid=qD("viewChart"),this.renderTask=FO({plan:iN,reset:oN}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},e.prototype.highlight=function(e,t,n,i){var o=e.getData(i&&i.dataType);o?nN(o,i,"emphasis"):"production"!==process.env.NODE_ENV&&dS("Unknown dataType "+i.dataType)},e.prototype.downplay=function(e,t,n,i){var o=e.getData(i&&i.dataType);o?nN(o,i,"normal"):"production"!==process.env.NODE_ENV&&dS("Unknown dataType "+i.dataType)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){fD(this.group,e)},e.markUpdateMethod=function(e,t){JL(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function tN(e,t,n){e&&sI(e)&&("emphasis"===t?FT:GT)(e,n)}function nN(e,t,n){var i=LS(e,t),o=t&&null!=t.highlightKey?function(e){var t=pT[e];return null==t&&uT<=32&&(t=pT[e]=uT++),t}(t.highlightKey):null;null!=i?Rv(bS(i),(function(t){tN(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){tN(e,n,o)}))}function iN(e){return QL(e.model)}function oN(e){var t=e.model,n=e.ecModel,i=e.api,o=e.payload,r=t.pipelineContext.progressiveRender,a=e.view,s=o&&JL(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,o),rN[l]}XS(eN,["dispose"]),QS(eN);var rN={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},aN=eN,sN="\0__throttleOriginMethod",lN="\0__throttleRate",cN="\0__throttleType";function uN(e,t,n){var i,o,r,a,s,l=0,c=0,u=null;function p(){c=(new Date).getTime(),u=null,e.apply(r,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),r=this,a=e;var h=s||t,f=s||n;s=null,o=i-(f?l:c)-h,clearTimeout(u),f?u=setTimeout(p,h):o>=0?p():u=setTimeout(p,-o),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){s=e},d}function pN(e,t,n,i){var o=e[t];if(o){var r=o[sN]||o,a=o[cN];if(o[lN]!==n||a!==i){if(null==n||!i)return e[t]=r;(o=e[t]=uN(r,n,"debounce"===i))[sN]=r,o[cN]=i,o[lN]=n}return o}}function dN(e,t){var n=e[t];n&&n[sN]&&(n.clear&&n.clear(),e[t]=n[sN])}var hN=NS(),fN={itemStyle:eC(FD,!0),lineStyle:eC(VD,!0)},gN={lineStyle:"stroke",itemStyle:"fill"};function mN(e,t){var n=e.visualStyleMapper||fN[t];return n||(console.warn("Unknown style type '"+t+"'."),fN.itemStyle)}function vN(e,t){var n=e.visualDrawType||gN[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var yN={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",o=e.getModel(i),r=mN(e,i)(o),a=o.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=vN(e,i),l=r[s],c=Hv(l)?l:null,u="auto"===r.fill||"auto"===r.stroke;if(!r[s]||c||u){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());r[s]||(r[s]=p,n.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||Hv(r.fill)?p:r.fill,r.stroke="auto"===r.stroke||Hv(r.stroke)?p:r.stroke}if(n.setVisual("style",r),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),o=Ev({},r);o[s]=c(i),t.setItemVisual(n,"style",o)}}}},xN=new UD,bN={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",o=mN(e,i),r=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){xN.option=n[i];var a=o(xN);Ev(e.ensureUniqueItemVisual(t,"style"),a),xN.option.decal&&(e.setItemVisual(t,"decal",xN.option.decal),xN.option.decal.dirty=!0),r in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},_N={performRawSeries:!0,overallReset:function(e){var t=fy();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,o=t.get(i);o||(o={},t.set(i,o)),hN(e).scope=o}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},o=t.getData(),r=hN(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=vN(t,a);o.each((function(e){var t=o.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e];if(o.getItemVisual(a,"colorFromPalette")){var l=o.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",u=n.count();l[s]=t.getColorFromPalette(c,r,u)}}))}}))}},wN=Math.PI;var SN=function(){function e(e,t,n,i){this._stageTaskMap=fy(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,o=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,r=i&&i.modDataCount;return{step:o,modBy:null!=r?Math.ceil(r/o):null,modDataCount:r}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,r=e.get("large")&&i>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:r}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=fy();e.eachSeries((function(e){var i=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Rv(this._allHandlers,(function(i){var o=e.get(i.uid)||e.set(i.uid,{}),r="";"production"!==process.env.NODE_ENV&&(r='"reset" and "overallReset" must not be both specified.'),ay(!(i.reset&&i.overallReset),r),i.reset&&this._createSeriesStageTask(i,o,t,n),i.overallReset&&this._createOverallStageTask(i,o,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var o=e.renderTask,r=o.context;r.model=t,r.ecModel=n,r.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var o=!1,r=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Rv(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=r._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var p,d=u.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),p=!0)})),p&&u.dirty(),r.updatePayload(u,n);var h=r.getPerformArgs(u,i.block);d.each((function(e){e.perform(h)})),u.perform(h)&&(o=!0)}else c&&c.each((function(s,l){a(i,s)&&s.dirty();var c=r.getPerformArgs(s,i.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),r.updatePayload(s,n),s.perform(c)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var o=this,r=t.seriesTaskMap,a=t.seriesTaskMap=fy(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=a.set(s,r&&r.get(s)||FO({plan:AN,reset:DN,count:ON}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},e.prototype._createOverallStageTask=function(e,t,n,i){var o=this,r=t.overallTask=t.overallTask||FO({reset:CN});r.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:o};var a=r.agentStubMap,s=r.agentStubMap=fy(),l=e.seriesType,c=e.getTargetSeries,u=!0,p=!1,d="";function h(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(p=!0,FO({reset:MN,onDirty:IN})));n.context={model:e,overallProgress:u},n.agent=r,n.__block=u,o._pipe(e,n)}"production"!==process.env.NODE_ENV&&(d='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),ay(!e.createOnAllSeries,d),l?n.eachRawSeriesByType(l,h):c?c(n,i).each(h):(u=!1,Rv(n.getSeries(),h)),p&&r.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Hv(e)&&(e={overallReset:e,seriesType:LN(e)}),e.uid=qD("stageHandler"),t&&(e.visualType=t),e},e}();function CN(e){e.overallReset(e.ecModel,e.api,e.payload)}function MN(e){return e.overallProgress&&TN}function TN(){this.agent.dirty(),this.getDownstream().dirty()}function IN(){this.agent&&this.agent.dirty()}function AN(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function DN(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=bS(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?zv(t,(function(e,t){return EN(t)})):kN}var kN=EN(0);function EN(e){return function(t,n){var i=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var r=t.start;r<t.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(t,i)}}function ON(e){return e.data.count()}function LN(e){NN=null;try{e(PN,RN)}catch(e){}return NN}var NN,PN={},RN={};function zN(e,t){for(var n in t.prototype)e[n]=xy}zN(PN,NE),zN(RN,BE),PN.eachSeriesByType=PN.eachRawSeriesByType=function(e){NN=e},PN.eachComponent=function(e){"series"===e.mainType&&e.subType&&(NN=e.subType)};var VN=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],BN={color:VN,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],VN]},jN="#B9B8CE",FN="#100C2A",GN=function(){return{axisLine:{lineStyle:{color:jN}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},WN=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],HN={darkMode:!0,color:WN,backgroundColor:FN,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:jN}},textStyle:{color:jN},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:jN}},dataZoom:{borderColor:"#71708A",textStyle:{color:jN},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:jN}},timeline:{lineStyle:{color:jN},label:{color:jN},controlStyle:{color:jN,borderColor:jN}},calendar:{itemStyle:{color:FN},dayLabel:{color:jN},monthLabel:{color:jN},yearLabel:{color:jN}},timeAxis:GN(),logAxis:GN(),valueAxis:GN(),categoryAxis:GN(),line:{symbol:"circle"},graph:{color:WN},gauge:{title:{color:jN},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:jN},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};HN.categoryAxis.splitLine.show=!1;var UN=HN,YN=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(Uv(e)){var o=qS(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var r=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Rv(e,(function(e,o){for(var s=!1,l=0;l<r.length;l++){var c=r[l],u=o.lastIndexOf(c);if(u>0&&u===o.length-c.length){var p=o.slice(0,u);"data"!==p&&(t.mainType=p,t[c.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(o)&&(n[o]=e,s=!0),s||(i[o]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model,a=n.view;if(!r||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,r,"mainType")&&c(s,r,"subType")&&c(s,r,"index","componentIndex")&&c(s,r,"name")&&c(s,r,"id")&&c(l,o,"name")&&c(l,o,"dataIndex")&&c(l,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,o));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),qN=["symbol","symbolSize","symbolRotate","symbolOffset"],XN=qN.concat(["symbolKeepAspect"]),$N={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},o={},r=!1,a=0;a<qN.length;a++){var s=qN[a],l=e.get(s);Hv(l)?(r=!0,o[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(Ev({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var c=jv(o);return{dataEach:r?function(t,n){for(var i=e.getRawValue(n),r=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,o[s](i,r))}}:null}}}}},ZN={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<XN.length;i++){var o=XN[i],r=n.getShallow(o,!0);null!=r&&e.setItemVisual(t,o,r)}}:null}}};function KN(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function JN(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+t)}}function QN(e,t,n,i){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function eP(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}Rv([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,o){t=Ev({},t),"production"!==process.env.NODE_ENV&&fS(t.type,e[1]),o.dispatchAction(Ev(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function tP(e,t,n,i,o){var r=e+t;n.isSilent(r)||("production"!==process.env.NODE_ENV&&hS("event "+r+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,a=o.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),c=LS(l,o.fromActionPayload);n.trigger(r,{type:r,seriesId:e.id,name:Wv(c)?l.getName(c[0]):l.getName(c),selected:Uv(i)?i:Ev({},i)})}})))}function nP(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}var iP=Math.round(9*Math.random()),oP="function"==typeof Object.defineProperty,rP=function(){function e(){this._id="__ec_inner_"+iP++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return oP?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),aP=kM.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=t.width/2,r=t.height/2;e.moveTo(n,i-r),e.lineTo(n+o,i+r),e.lineTo(n-o,i+r),e.closePath()}}),sP=kM.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=t.width/2,r=t.height/2;e.moveTo(n,i-r),e.lineTo(n+o,i),e.lineTo(n,i+r),e.lineTo(n-o,i),e.closePath()}}),lP=kM.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,o=t.width/5*3,r=Math.max(o,t.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,p=Math.sin(c),d=Math.cos(c),h=.6*a,f=.7*a;e.moveTo(n-u,l+s),e.arc(n,l,a,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-p*h,l+s+d*h,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-u+p*h,l+s+d*h,n-u,l+s),e.closePath()}}),cP=kM.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,o=t.x,r=t.y,a=i/3*2;e.moveTo(o,r),e.lineTo(o+a,r+n),e.lineTo(o,r+n/4*3),e.lineTo(o-a,r+n),e.lineTo(o,r),e.closePath()}}),uP={line:function(e,t,n,i,o){o.x1=e,o.y1=t+i/2,o.x2=e+n,o.y2=t+i/2},rect:function(e,t,n,i,o){o.x=e,o.y=t,o.width=n,o.height=i},roundRect:function(e,t,n,i,o){o.x=e,o.y=t,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(e,t,n,i,o){var r=Math.min(n,i);o.x=e,o.y=t,o.width=r,o.height=r},circle:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.r=Math.min(n,i)/2},diamond:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.width=n,o.height=i},pin:function(e,t,n,i,o){o.x=e+n/2,o.y=t+i/2,o.width=n,o.height=i},arrow:function(e,t,n,i,o){o.x=e+n/2,o.y=t+i/2,o.width=n,o.height=i},triangle:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.width=n,o.height=i}},pP={};Rv({line:lA,rect:UM,roundRect:UM,square:UM,circle:OI,diamond:sP,pin:lP,arrow:cP,triangle:aP},(function(e,t){pP[t]=new e}));var dP=kM.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=xw(e,t,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var o=pP[i];o||(o=pP[i="rect"]),uP[i](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,n)}}});function hP(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function fP(e,t,n,i,o,r,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?ZA(e.slice(8),new Ax(t,n,i,o),a?"center":"cover"):0===e.indexOf("path://")?$A(e.slice(7),{},new Ax(t,n,i,o),a?"center":"cover"):new dP({shape:{symbolType:e,x:t,y:n,width:i,height:o}})).__isEmptyBrush=l,s.setColor=hP,r&&s.setColor(r),s}function gP(e){return Wv(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function mP(e,t){if(null!=e)return Wv(e)||(e=[e,e]),[jw(e[0],t[0])||0,jw(ny(e[1],e[0]),t[1])||0]}function vP(e){return isFinite(e)}function yP(e,t,n){for(var i="radial"===t.type?function(e,t,n){var i=n.width,o=n.height,r=Math.min(i,o),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*i+n.x,s=s*o+n.y,l*=r),a=vP(a)?a:.5,s=vP(s)?s:.5,l=l>=0&&vP(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var i=null==t.x?0:t.x,o=null==t.x2?1:t.x2,r=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(i=i*n.width+n.x,o=o*n.width+n.x,r=r*n.height+n.y,a=a*n.height+n.y),i=vP(i)?i:0,o=vP(o)?o:1,r=vP(r)?r:0,a=vP(a)?a:0,e.createLinearGradient(i,r,o,a)}(e,t,n),o=t.colorStops,r=0;r<o.length;r++)i.addColorStop(o[r].offset,o[r].color);return i}function xP(e){return parseInt(e,10)}function bP(e,t,n){var i=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[o]||xP(s[i])||xP(e.style[i]))-(xP(s[r])||0)-(xP(s[a])||0)|0}function _P(e){var t,n,i=e.style,o=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:qv(t)?[t]:Wv(t)?t:null:null),r=i.lineDashOffset;if(o){var a=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(o=zv(o,(function(e){return e/a})),r/=a)}return[o,r]}var wP=new lM(!0);function SP(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function CP(e){return"string"==typeof e&&"none"!==e}function MP(e){var t=e.fill;return null!=t&&"none"!==t}function TP(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function IP(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function AP(e,t,n){var i=rC(t.image,t.__image,n);if(sC(i)){var o=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(t.x||0,t.y||0),r.rotateSelf(0,0,(t.rotation||0)*by),r.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(r)}return o}}var DP=["shadowBlur","shadowOffsetX","shadowOffsetY"],kP=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function EP(e,t,n,i,o){var r=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){VP(e,o),r=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?_C.opacity:a}(i||t.blend!==n.blend)&&(r||(VP(e,o),r=!0),e.globalCompositeOperation=t.blend||_C.blend);for(var s=0;s<DP.length;s++){var l=DP[s];(i||t[l]!==n[l])&&(r||(VP(e,o),r=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(r||(VP(e,o),r=!0),e.shadowColor=t.shadowColor||_C.shadowColor),r}function OP(e,t,n,i,o){var r=BP(t,o.inHover),a=i?null:n&&BP(n,o.inHover)||{};if(r===a)return!1;var s=EP(e,r,a,i,o);if((i||r.fill!==a.fill)&&(s||(VP(e,o),s=!0),CP(r.fill)&&(e.fillStyle=r.fill)),(i||r.stroke!==a.stroke)&&(s||(VP(e,o),s=!0),CP(r.stroke)&&(e.strokeStyle=r.stroke)),(i||r.opacity!==a.opacity)&&(s||(VP(e,o),s=!0),e.globalAlpha=null==r.opacity?1:r.opacity),t.hasStroke()){var l=r.lineWidth/(r.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(VP(e,o),s=!0),e.lineWidth=l)}for(var c=0;c<kP.length;c++){var u=kP[c],p=u[0];(i||r[p]!==a[p])&&(s||(VP(e,o),s=!0),e[p]=r[p]||u[1])}return s}function LP(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}var NP=1,PP=2,RP=3,zP=4;function VP(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function BP(e,t){return t&&e.__hoverStyle||e.style}function jP(e,t){FP(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function FP(e,t,n,i){var o=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Xx,void(t.__isRendered=!1);var r=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(r,a)||(a&&a.length&&(VP(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length&&(VP(e,n),e.save(),function(e,t,n){for(var i=!1,o=0;o<e.length;o++){var r=e[o];i=i||r.isZeroArea(),LP(t,r),t.beginPath(),r.buildPath(t,r.shape),t.clip()}n.allClipped=i}(r,e,n),s=!0),n.prevElClipPaths=r),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u,p,d=t instanceof kM&&t.autoBatch&&function(e){var t=MP(e),n=SP(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(u=o,p=c.transform,u&&p?u[0]!==p[0]||u[1]!==p[1]||u[2]!==p[2]||u[3]!==p[3]||u[4]!==p[4]||u[5]!==p[5]:u||p)?(VP(e,n),LP(e,t)):d||VP(e,n);var h=BP(t,n.inHover);t instanceof kM?(n.lastDrawType!==NP&&(l=!0,n.lastDrawType=NP),OP(e,t,c,l,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var o,r=SP(n),a=MP(n),s=n.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||wP,p=t.__dirty;if(!i){var d=n.fill,h=n.stroke,f=a&&!!d.colorStops,g=r&&!!h.colorStops,m=a&&!!d.image,v=r&&!!h.image,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=p?yP(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=p?yP(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),m&&(b=p||!t.__canvasFillPattern?AP(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),v&&(_=p||!t.__canvasStrokePattern?AP(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),f?e.fillStyle=y:m&&(b?e.fillStyle=b:a=!1),g?e.strokeStyle=x:v&&(_?e.strokeStyle=_:r=!1)}var S,C,M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(o=_P(t))[0],C=o[1]);var T=!0;(c||p&$x)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),T=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),T&&u.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=C),i||(n.strokeFirst?(r&&IP(e,n),a&&TP(e,n)):(a&&TP(e,n),r&&IP(e,n))),S&&e.setLineDash([])}(e,t,h,d),d&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):t instanceof LM?(n.lastDrawType!==RP&&(l=!0,n.lastDrawType=RP),OP(e,t,c,l,n),function(e,t,n){var i,o=n.text;if(null!=o&&(o+=""),o){e.font=n.font||cv,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var r=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=(i=_P(t))[0],a=i[1]),r&&(e.setLineDash(r),e.lineDashOffset=a),n.strokeFirst?(SP(n)&&e.strokeText(o,n.x,n.y),MP(n)&&e.fillText(o,n.x,n.y)):(MP(n)&&e.fillText(o,n.x,n.y),SP(n)&&e.strokeText(o,n.x,n.y)),r&&e.setLineDash([])}}(e,t,h)):t instanceof zM?(n.lastDrawType!==PP&&(l=!0,n.lastDrawType=PP),function(e,t,n,i,o){EP(e,BP(t,o.inHover),n&&BP(n,o.inHover),i,o)}(e,t,c,l,n),function(e,t,n){var i=t.__image=rC(n.image,t.__image,t,t.onload);if(i&&sC(i)){var o=n.x||0,r=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(i,c,u,n.sWidth,n.sHeight,o,r,a,s)}else if(n.sx&&n.sy){var p=a-(c=n.sx),d=s-(u=n.sy);e.drawImage(i,c,u,p,d,o,r,a,s)}else e.drawImage(i,o,r,a,s)}}(e,t,h)):t.getTemporalDisplayables&&(n.lastDrawType!==zP&&(l=!0,n.lastDrawType=zP),function(e,t,n){var i=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var r,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=t.getCursor(),a=i.length;r<a;r++){(u=i[r]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),FP(e,u,s,r===a-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}for(var l=0,c=o.length;l<c;l++){var u;(u=o[l]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),FP(e,u,s,l===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&i&&VP(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var GP=new rP,WP=new Eb(100),HP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function UP(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),o="svg"===i.painter.type;e.dirty&&GP.delete(e);var r=GP.get(e);if(r)return r;var a=Ov(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,r=[n],s=!0,l=0;l<HP.length;++l){var c=a[HP[l]];if(null!=c&&!Wv(c)&&!Uv(c)&&!qv(c)&&"boolean"!=typeof c){s=!1;break}r.push(c)}if(s){t=r.join(",")+(o?"-svg":"");var u=WP.get(t);u&&(o?e.svgElement=u:e.image=u)}var p,d=qP(a.dashArrayX),h=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(qv(e)){var t=Math.ceil(e);return[t,t]}var n=zv(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),f=YP(a.symbol),g=(b=d,zv(b,(function(e){return XP(e)}))),m=XP(h),v=!o&&hv.createCanvas(),y=o&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=aS(e,g[t]);var i=1;for(t=0,n=f.length;t<n;++t)i=aS(i,f[t].length);e*=i;var o=m*g.length*f.length;if("production"!==process.env.NODE_ENV){var r=function(e){console.warn("Calculated decal size is greater than "+e+" due to decal option settings so "+e+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+e+" to be larger to avoid incontinuity.")};e>a.maxTileWidth&&r("maxTileWidth"),o>a.maxTileHeight&&r("maxTileHeight")}return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();var b;v&&(v.width=x.width*n,v.height=x.height*n,p=v.getContext("2d"));(function(){p&&(p.clearRect(0,0,v.width,v.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<h.length;++t)e+=h[t];if(e<=0)return;var r=-m,s=0,l=0,c=0;for(;r<x.height;){if(s%2==0){for(var u=l/2%f.length,g=0,b=0,_=0;g<2*x.width;){var w=0;for(t=0;t<d[c].length;++t)w+=d[c][t];if(w<=0)break;if(b%2==0){var S=.5*(1-a.symbolSize),C=g+d[c][b]*S,M=r+h[s]*S,T=d[c][b]*a.symbolSize,I=h[s]*a.symbolSize,A=_/2%f[u].length;D(C,M,T,I,f[u][A])}g+=d[c][b],++_,++b===d[c].length&&(b=0)}++c===d.length&&(c=0)}r+=h[s],++l,++s===h.length&&(s=0)}function D(e,t,r,s,l){var c=o?1:n,u=fP(l,e*c,t*c,r*c,s*c,a.color,a.symbolKeepAspect);if(o){var d=i.painter.renderOneToVNode(u);d&&y.children.push(d)}else jP(p,u)}})(),s&&WP.put(t,v||y);e.image=v,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=o?1:1/n,GP.set(e,s),e.dirty=!1,s}function YP(e){if(!e||0===e.length)return[["rect"]];if(Uv(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Uv(e[n])){t=!1;break}if(t)return YP([e]);var i=[];for(n=0;n<e.length;++n)Uv(e[n])?i.push([e[n]]):i.push(e[n]);return i}function qP(e){if(!e||0===e.length)return[[0,0]];if(qv(e))return[[o=Math.ceil(e),o]];for(var t=!0,n=0;n<e.length;++n)if(!qv(e[n])){t=!1;break}if(t)return qP([e]);var i=[];for(n=0;n<e.length;++n)if(qv(e[n])){var o=Math.ceil(e[n]);i.push([o,o])}else{(o=zv(e[n],(function(e){return Math.ceil(e)}))).length%2==1?i.push(o.concat(o)):i.push(o)}return i}function XP(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var $P=new jy,ZP={};var KP=2e3,JP=4500,QP={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:KP,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:JP,ARIA:6e3,DECAL:7e3}},eR="__flagInMainProcess",tR="__pendingUpdate",nR="__needsUpdateStatus",iR=/^[a-zA-Z0-9_]+$/,oR="__connectUpdateStatus";function rR(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return sR(this,e,t);ER(this.id)}}function aR(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sR(this,e,t)}}function sR(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),jy.prototype[t].apply(e,n)}var lR,cR,uR,pR,dR,hR,fR,gR,mR,vR,yR,xR,bR,_R,wR,SR,CR,MR,TR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t}(jy),IR=TR.prototype;IR.on=aR("on"),IR.off=aR("off");var AR=function(e){function t(t,n,i){var o=e.call(this,new YN)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Uv(n)&&(n=zR[n]),o._dom=t;var r="canvas",a="auto",s=!1;if("production"!==process.env.NODE_ENV){var l=av.hasGlobalWindow?window:global;l&&(r=ny(l.__ECHARTS__DEFAULT__RENDERER__,r),a=ny(l.__ECHARTS__DEFAULT__COARSE_POINTER,a),s=ny(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}i.ssr&&(Nw=function(e){var t=lT(e),n=t.dataIndex;if(null!=n){var i=fy();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}});var c=o._zr=Rw(t,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ny(i.useDirtyRect,s),useCoarsePointer:ny(i.useCoarsePointer,a),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=uN(Fv(c.flush,c),17),(n=Av(n))&&pO(n,!0),o._theme=n,o._locale=function(e){if(Uv(e)){var t=JD[e.toUpperCase()]||{};return e===$D||e===ZD?Av(t):Dv(Av(t),Av(JD[KD]),!1)}return Dv(Av(e),Av(JD[KD]),!1)}(i.locale||ek),o._coordSysMgr=new FE;var u=o._api=wR(o);function p(e,t){return e.__prio-t.__prio}return qx(RR,p),qx(NR,p),o._scheduler=new SN(o,u,NR,RR),o._messageCenter=new TR,o._initEvents(),o.resize=Fv(o.resize,o),c.animation.on("frame",o._onframe,o),vR(c,o),yR(c,o),cy(o),o}return S(t,e),t.prototype._onframe=function(){if(!this._disposed){MR(this);var e=this._scheduler;if(this[tR]){var t=this[tR].silent;this[eR]=!0;try{lR(this),pR.update.call(this,null,this[tR].updateParams)}catch(e){throw this[eR]=!1,this[tR]=null,e}this._zr.flush(),this[eR]=!1,this[tR]=null,gR.call(this,t),mR.call(this,t)}else if(e.unfinished){var n=1,i=this._model,o=this._api;e.unfinished=!1;do{var r=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),hR(this,i),e.performVisualTasks(i),_R(this,this._model,o,"remain",{}),n-=+new Date-r}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[eR])"production"!==process.env.NODE_ENV&&dS("`setOption` should not be called during main process.");else if(this._disposed)ER(this.id);else{var i,o,r;if(Xv(t)&&(n=t.lazyUpdate,i=t.silent,o=t.replaceMerge,r=t.transition,t=t.notMerge),this[eR]=!0,!this._model||t){var a=new UE(this._api),s=this._theme,l=this._model=new NE;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:o},PR);var c={seriesTransition:r,optionChanged:!0};if(n)this[tR]={silent:i,updateParams:c},this[eR]=!1,this.getZr().wakeUp();else{try{lR(this),pR.update.call(this,null,c)}catch(e){throw this[tR]=null,this[eR]=!1,e}this._ssr||this._zr.flush(),this[tR]=null,this[eR]=!1,gR.call(this,i),mR.call(this,i)}}},t.prototype.setTheme=function(){hS("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||av.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return"production"!==process.env.NODE_ENV&&fS("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;if("production"!==process.env.NODE_ENV&&"canvas"!==t.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;if("production"!==process.env.NODE_ENV&&"svg"!==t.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(av.svgSupported){var e=this._zr;return Rv(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],o=this;Rv(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Rv(i,(function(e){e.group.ignore=!1})),r}ER(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,o=Math.max,r=1/0;if(jR[n]){var a=r,s=r,l=-1/0,c=-1/0,u=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();Rv(BR,(function(r,p){if(r.group===n){var d=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Av(e)),h=r.getDom().getBoundingClientRect();a=i(h.left,a),s=i(h.top,s),l=o(h.right,l),c=o(h.bottom,c),u.push({dom:d,left:h.left,top:h.top})}}));var d=(l*=p)-(a*=p),h=(c*=p)-(s*=p),f=hv.createCanvas(),g=Rw(f,{renderer:t?"svg":"canvas"});if(g.resize({width:d,height:h}),t){var m="";return Rv(u,(function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new UM({shape:{x:0,y:0,width:d,height:h},style:{fill:e.connectedBackgroundColor}})),Rv(u,(function(e){var t=new zM({style:{x:e.left*p-a,y:e.top*p-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}ER(this.id)},t.prototype.convertToPixel=function(e,t){return dR(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return dR(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return Rv(RS(this._model,e),(function(e,i){i.indexOf("Models")>=0&&Rv(e,(function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(t);else if("seriesModels"===i){var r=this._chartsMap[e.__viewId];r&&r.containPoint?n=n||r.containPoint(t,e):"production"!==process.env.NODE_ENV&&pS(i+": "+(r?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&pS(i+": containPoint is not supported")}),this)}),this),!!n;ER(this.id)},t.prototype.getVisual=function(e,t){var n=RS(this._model,e,{defaultMainType:"series"}),i=n.seriesModel;"production"!==process.env.NODE_ENV&&(i||pS("There is no specified series model"));var o=i.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=r?KN(o,r,t):JN(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,i=this;Rv(kR,(function(e){var t=function(t){var n,o=i.getModel(),r=t.target,a="globalout"===e;if(a?n={}:r&&nP(r,(function(e){var t=lT(e);if(t&&null!=t.dataIndex){var i=t.dataModel||o.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType,r)||{},!0}if(t.eventData)return n=Ev({},t.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var c=s&&null!=l&&o.getComponent(s,l),u=c&&i["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];"production"!==process.env.NODE_ENV&&(a||c&&u||pS("model or view can not be found by params")),n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:c,view:u},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)})),Rv(LR,(function(e,t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),Rv(["selectchanged"],(function(e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(tP("map","selectchanged",t,i,e),tP("pie","selectchanged",t,i,e)):"select"===e.fromAction?(tP("map","selected",t,i,e),tP("pie","selected",t,i,e)):"unselect"===e.fromAction&&(tP("map","unselected",t,i,e),tP("pie","unselected",t,i,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?ER(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)ER(this.id);else{this._disposed=!0,this.getDom()&&FS(this.getDom(),GR,"");var e=this,t=e._api,n=e._model;Rv(e._componentsViews,(function(e){e.dispose(n,t)})),Rv(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete BR[e.id]}},t.prototype.resize=function(e){if(this[eR])"production"!==process.env.NODE_ENV&&dS("`resize` should not be called during main process.");else if(this._disposed)ER(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[tR]&&(null==i&&(i=this[tR].silent),n=!0,this[tR]=null),this[eR]=!0;try{n&&lR(this),pR.update.call(this,{type:"resize",animation:Ev({duration:0},e&&e.animation)})}catch(e){throw this[eR]=!1,e}this[eR]=!1,gR.call(this,i),mR.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)ER(this.id);else if(Xv(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),VR[e]){var n=VR[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}else"production"!==process.env.NODE_ENV&&pS("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?ER(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Ev({},e);return t.type=LR[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)ER(this.id);else if(Xv(t)||(t={silent:!!t}),OR[e.type]&&this._model)if(this[eR])this._pendingActions.push(e);else{var n=t.silent;fR.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&av.browser.weChat&&this._throttledZrFlush(),gR.call(this,n),mR.call(this,n)}},t.prototype.updateLabelLayout=function(){$P.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)ER(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);"production"!==process.env.NODE_ENV&&ay(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&t.push(o)}e.selected&&e.states.select&&t.push("select"),e.hoverState===mT&&e.states.emphasis?t.push("emphasis"):e.hoverState===gT&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,o=e.get("zlevel")||0;t.eachRendered((function(e){return i(e,n,o,-1/0),!0}))}}function i(e,t,n,o){var r=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)o=Math.max(i(s[l],t,n,o),o);else e.z=t,e.zlevel=n,o=Math.max(e.z2,o);if(r&&(r.z=t,r.zlevel=n,isFinite(o)&&(r.z2=o+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(o)&&(a.z2=o+(c&&c.showAbove?1:-1))}return o}function o(e,t){t.eachRendered((function(e){if(!VA(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function r(e,n){var i=e.getModel("stateAnimation"),o=e.isAnimationEnabled(),r=i.get("duration"),a=r>0?{duration:r,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(VA(e))return;if(e instanceof kM&&function(e){var t=dT(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(o){e.stateTransition=a;var i=e.getTextContent(),r=e.getTextGuideLine();i&&(i.stateTransition=a),r&&(r.stateTransition=a)}e.__dirty&&t(e)}}))}lR=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),cR(e,!0),cR(e,!1),t.plan()},cR=function(e,t){for(var n=e._model,i=e._scheduler,o=t?e._componentsViews:e._chartsViews,r=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<o.length;l++)o[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,u=!l&&r[c];if(!u){var p=qS(e.type),d=t?ZL.getClass(p.main,p.sub):aN.getClass(p.sub);"production"!==process.env.NODE_ENV&&ay(d,p.sub+" does not exist."),(u=new d).init(n,s),r[c]=u,o.push(u),a.add(u.group)}e.__viewId=u.__id=c,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(u,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(l=0;l<o.length;){var u=o[l];u.__alive?l++:(!t&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,s),o.splice(l,1),r[u.__id]===u&&delete r[u.__id],u.__id=u.group.__ecComponentInfo=null)}},uR=function(e,t,n,i,o){var r=e._model;if(r.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};o&&(s.subType=o);var l,c=n.excludeSeriesId;null!=c&&(l=fy(),Rv(bS(c),(function(e){var t=AS(e,null);null!=t&&l.set(t,!0)}))),r&&r.eachComponent(s,(function(t){if(!(l&&null!=l.get(t.id)))if(cI(n))if(t instanceof XL)n.type!==_T||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var i=e.seriesIndex,o=e.getData(t.dataType);if(o){var r=LS(o,t);r=(Wv(r)?r[0]:r)||0;var a=o.getItemGraphicEl(r);if(!a)for(var s=o.count(),l=0;!a&&l<s;)a=o.getItemGraphicEl(l++);if(a){var c=lT(a);$T(i,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=u&&$T(i,u,p,n)}}else"production"!==process.env.NODE_ENV&&dS("Unknown dataType "+t.dataType)}(t,n,e._api);else{var i=KT(t.mainType,t.componentIndex,n.name,e._api),o=i.focusSelf,r=i.dispatchers;n.type===_T&&o&&!n.notBlur&&ZT(t.mainType,t.componentIndex,e._api),r&&Rv(r,(function(e){n.type===_T?FT(e):GT(e)}))}else lI(n)&&t instanceof XL&&(!function(e,t,n){if(lI(t)){var i=t.dataType,o=LS(e.getData(i),t);Wv(o)||(o=[o]),e[t.type===MT?"toggleSelect":t.type===ST?"select":"unselect"](o,i)}}(t,n,e._api),JT(t),CR(e))}),e),r&&r.eachComponent(s,(function(t){l&&null!=l.get(t.id)||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Rv([].concat(e._componentsViews).concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,r,e._api,n)}},pR={prepareAndUpdate:function(e){lR(this),pR.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,o=this._api,r=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,o),s.performDataProcessorTasks(i,t),hR(this,i),a.update(i,o),e(i),s.performVisualTasks(i,t),xR(this,i,o,t,n);var l=i.get("backgroundColor")||"transparent",c=i.get("darkMode");r.setBackgroundColor(l),null!=c&&"auto"!==c&&r.setDarkMode(c),$P.trigger("afterupdate",i,o)}},updateTransform:function(t){var n=this,i=this._model,o=this._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,o,t);l&&l.update&&r.push(s)}else r.push(s)}}));var a=fy();i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];if(r.updateTransform){var s=r.updateTransform(e,i,o,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),_R(this,i,o,t,{},a),$P.trigger("afterupdate",i,o)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),aN.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),xR(this,n,this._api,t,{}),$P.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),aN.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,o){if("series"!==e){var r=n.getViewOfComponentModel(o);r&&r.__alive&&r.updateVisual(o,i,n._api,t)}})),i.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)})),$P.trigger("afterupdate",i,this._api))},updateLayout:function(e){pR.update.call(this,e)}},dR=function(e,t,n,i){if(e._disposed)ER(e.id);else{for(var o,r=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=RS(r,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(o=c[t](r,s,i)))return o}"production"!==process.env.NODE_ENV&&pS("No coordinate system that supports "+t+" found by the given finder.")}},hR=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},fR=function(e,t){var n=this,i=this.getModel(),o=e.type,r=e.escapeConnect,a=OR[o],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),u=null!=l[0]&&qS(l[0]);this[eR]=!0;var p=[e],d=!1;e.batch&&(d=!0,p=zv(e.batch,(function(t){return(t=Ov(Ev({},t),e)).batch=null,t})));var h,f=[],g=lI(e),m=cI(e);if(m&&XT(this._api),Rv(p,(function(t){if((h=(h=a.action(t,n._model,n._api))||Ev({},t)).type=s.event||h.type,f.push(h),m){var i=zS(e),o=i.queryOptionMap,r=i.mainTypeSpecified?o.keys()[0]:"series";uR(n,c,t,r),CR(n)}else g?(uR(n,c,t,"series"),CR(n)):u&&uR(n,c,t,u.main,u.sub)})),"none"!==c&&!m&&!g&&!u)try{this[tR]?(lR(this),pR.update.call(this,e),this[tR]=null):pR[c].call(this,e)}catch(e){throw this[eR]=!1,e}if(h=d?{type:s.event||o,escapeConnect:r,batch:f}:f[0],this[eR]=!1,!t){var v=this._messageCenter;if(v.trigger(h.type,h),g){var y={type:"selectchanged",escapeConnect:r,selected:QT(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(y.type,y)}}},gR=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();fR.call(this,n,e)}},mR=function(e){!e&&this.trigger("updated")},vR=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[tR]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},yR=function(e,t){e.on("mouseover",(function(e){var n=nP(e.target,sI);n&&(!function(e,t,n){"production"===process.env.NODE_ENV||sI(e)||dS("param should be highDownDispatcher");var i=lT(e),o=KT(i.componentMainType,i.componentIndex,i.componentHighDownName,n),r=o.dispatchers,a=o.focusSelf;r?(a&&ZT(i.componentMainType,i.componentIndex,n),Rv(r,(function(e){return BT(e,t)}))):($T(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&ZT(i.componentMainType,i.componentIndex,n),BT(e,t))}(n,e,t._api),CR(t))})).on("mouseout",(function(e){var n=nP(e.target,sI);n&&(!function(e,t,n){"production"===process.env.NODE_ENV||sI(e)||dS("param should be highDownDispatcher"),XT(n);var i=lT(e),o=KT(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;o?Rv(o,(function(e){return jT(e,t)})):jT(e,t)}(n,e,t._api),CR(t))})).on("click",(function(e){var n=nP(e.target,(function(e){return null!=lT(e).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",o=lT(n);t._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},xR=function(e,t,n,i,o){!function(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,o){var r=o.get("zlevel")||0,a=o.get("z")||0,s=o.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:r,z:a,idx:o.componentIndex,type:e,key:s})})),i){var o,r,a=t.concat(n);qx(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Rv(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=o&&(i=Math.max(o,i)),a?(i===o&&a!==r&&i++,r=a):r&&(i===o&&i++,r=""),o=i,n.setZLevel(i)}))}}(t),bR(e,t,n,i,o),Rv(e._chartsViews,(function(e){e.__alive=!1})),_R(e,t,n,i,o),Rv(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},bR=function(e,t,i,a,s,l){Rv(l||e._componentsViews,(function(e){var s=e.__model;o(s,e),e.render(s,t,i,a),n(s,e),r(s,e)}))},_R=function(e,t,i,a,s,l){var c=e._scheduler;s=Ev(s||{},{updatedSeries:t.getSeries()}),$P.trigger("series:beforeupdate",t,i,s);var u=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;c.updatePayload(i,a),o(t,n),l&&l.get(t.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(u=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),JT(t)})),c.unfinished=u||c.unfinished,$P.trigger("series:layoutlabels",t,i,s),$P.trigger("series:transition",t,i,s),t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];n(t,i),r(t,i)})),function(e,t){var n=e._zr,i=n.storage,o=0;i.traverse((function(e){e.isGroup||o++})),o>t.get("hoverLayerThreshold")&&!av.node&&!av.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),$P.trigger("series:afterupdate",t,i,s)},CR=function(e){e[nR]=!0,e.getZr().wakeUp()},MR=function(e){e[nR]&&(e.getZr().storage.traverse((function(e){VA(e)||t(e)})),e[nR]=!1)},wR=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){FT(t,n),CR(e)},n.prototype.leaveEmphasis=function(t,n){GT(t,n),CR(e)},n.prototype.enterBlur=function(t){WT(t),CR(e)},n.prototype.leaveBlur=function(t){HT(t),CR(e)},n.prototype.enterSelect=function(t){UT(t),CR(e)},n.prototype.leaveSelect=function(t){YT(t),CR(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(BE))(e)},SR=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][oR]=t}}Rv(LR,(function(n,i){e._messageCenter.on(i,(function(n){if(jR[e.group]&&0!==e[oR]){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),o=[];Rv(BR,(function(t){t!==e&&t.group===e.group&&o.push(t)})),t(o,0),Rv(o,(function(e){1!==e[oR]&&e.dispatchAction(i)})),t(o,2)}}))}))}}(),t}(jy),DR=AR.prototype;DR.on=rR("on"),DR.off=rR("off"),DR.one=function(e,t,n){var i=this;hS("ECharts#one is deprecated."),this.on.call(this,e,(function n(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];t&&t.apply&&t.apply(this,o),i.off(e,n)}),n)};var kR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ER(e){"production"!==process.env.NODE_ENV&&pS("Instance "+e+" has been disposed")}var OR={},LR={},NR=[],PR=[],RR=[],zR={},VR={},BR={},jR={},FR=+new Date-0,GR="_echarts_instance_";function WR(e,t,n){var i=!(n&&n.ssr);if(i){if("production"!==process.env.NODE_ENV&&!e)throw new Error("Initialize failed: invalid dom.");var o=function(e){return BR[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,GR)]}(e);if(o)return"production"!==process.env.NODE_ENV&&pS("There is a chart instance already initialized on the dom."),o;"production"!==process.env.NODE_ENV&&(!Kv(e)||"CANVAS"===e.nodeName.toUpperCase()||(e.clientWidth||n&&null!=n.width)&&(e.clientHeight||n&&null!=n.height)||pS("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload."))}var r=new AR(e,t,n);return r.id="ec_"+FR++,BR[r.id]=r,i&&FS(e,GR,r.id),SR(r),$P.trigger("afterinit",r),r}function HR(e,t){zR[e]=t}function UR(e){Lv(PR,e)<0&&PR.push(e)}function YR(e,t){KR(NR,e,t,2e3)}function qR(e,t){$P.on(e,t)}function XR(e,t,n){Hv(t)&&(n=t,t="");var i=Xv(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,LR[t]||(ay(iR.test(i)&&iR.test(t)),OR[i]||(OR[i]={action:n,actionInfo:e}),LR[t]=i)}function $R(e,t){KR(RR,e,t,3e3,"visual")}var ZR=[];function KR(e,t,n,i,o){if((Hv(t)||Xv(t))&&(n=t,t=i),"production"!==process.env.NODE_ENV){if(isNaN(t)||null==t)throw new Error("Illegal priority");Rv(e,(function(e){ay(e.__raw!==n)}))}if(!(Lv(ZR,n)>=0)){ZR.push(n);var r=SN.wrapStageHandler(n,o);r.__prio=t,r.__raw=n,e.push(r)}}function JR(e,t){VR[e]=t}var QR=function(e){var t=(e=Av(e)).type,n="";t||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),mS(n));var i=t.split(":");2!==i.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),mS(n));var o=!1;"echarts"===i[0]&&(t=i[1],o=!0),e.__isBuiltIn=o,iL.set(t,e)};$R(KP,yN),$R(JP,bN),$R(JP,_N),$R(KP,$N),$R(JP,ZN),$R(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=UP(n,t))}));var o=i.getVisual("decal");if(o)i.getVisual("style").decal=UP(o,t)}}))})),UR(pO),YR(900,(function(e){var t=fy();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),o=e.getData(),r={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}})),t.each(dO)})),JR("default",(function(e,t){Ov(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ew,i=new UM({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var o,r=new sT({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new UM({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((o=new mA({shape:{startAngle:-wN/2,endAngle:-wN/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*wN/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*wN/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=r.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),XR({type:_T,event:_T,update:_T},xy),XR({type:wT,event:wT,update:wT},xy),XR({type:ST,event:ST,update:ST},xy),XR({type:CT,event:CT,update:CT},xy),XR({type:MT,event:MT,update:MT},xy),HR("light",BN),HR("dark",UN);var ez=[],tz={registerPreprocessor:UR,registerProcessor:YR,registerPostInit:function(e){qR("afterinit",e)},registerPostUpdate:function(e){qR("afterupdate",e)},registerUpdateLifecycle:qR,registerAction:XR,registerCoordinateSystem:function(e,t){FE.register(e,t)},registerLayout:function(e,t){KR(RR,e,t,1e3,"layout")},registerVisual:$R,registerTransform:QR,registerLoading:JR,registerMap:function(e,t,n){var i,o=(i="registerMap","production"!==process.env.NODE_ENV&&(ZP[i]||dS("Implementation of "+i+" doesn't exists.")),ZP[i]);o&&o(e,t,n)},registerImpl:function(e,t){"production"!==process.env.NODE_ENV&&ZP[e]&&dS("Already has an implementation of "+e+"."),ZP[e]=t},PRIORITY:QP,ComponentModel:tE,ComponentView:ZL,SeriesModel:XL,ChartView:aN,registerComponentModel:function(e){tE.registerClass(e)},registerComponentView:function(e){ZL.registerClass(e)},registerSeriesModel:function(e){XL.registerClass(e)},registerChartView:function(e){aN.registerClass(e)},registerSubTypeDefaulter:function(e,t){tE.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,Ow[e]=n}};function nz(e){Wv(e)?Rv(e,(function(e){nz(e)})):Lv(ez,e)>=0||(ez.push(e),Hv(e)&&(e={install:e}),e.install(tz))}function iz(e){return null==e?0:e.length||1}function oz(e){return e}var rz=function(){function e(e,t,n,i,o,r){this._old=e,this._new=t,this._oldKeyGetter=n||oz,this._newKeyGetter=i||oz,this.context=o,this._diffModeMultiple="multiple"===r}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var r=0;r<e.length;r++){var a=i[r],s=n[a],l=iz(s);if(l>1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,r)}else 1===l?(n[a]=null,this._update&&this._update(s,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},o=[],r=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],c=i[s],u=iz(l),p=iz(c);if(u>1&&1===p)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&p>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===p)this._update&&this._update(c,l),i[s]=null;else if(u>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var d=0;d<u;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=t[i],r=iz(o);if(r>1)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var o=this._diffModeMultiple,r=0;r<e.length;r++){var a="_ec_"+this[i](e[r],r);if(o||(n[r]=a),t){var s=t[a],l=iz(s);0===l?(t[a]=r,o&&n.push(a)):1===l?t[a]=[s,r]:s.push(r)}}},e}(),az=rz,sz=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function lz(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function cz(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var uz=function(e){this.otherDims={},null!=e&&Ev(this,e)},pz=NS(),dz={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},hz=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=mz(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return ny(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=MO(this.source),n=!vz(e),i="",o=[],r=0,a=0;r<e;r++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===r)s=t?u.name:null,l=u.type,c=u.ordinalMeta,a++;else{var p=this.getSourceDimension(r);p&&(s=t?p.name:null,l=p.type)}o.push({property:s,type:l,ordinalMeta:c}),!t||null==s||u&&u.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=dz[l]||"f",c&&(i+=c.uid),i+="$"}var d=this.source;return{dimensions:o,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===t)o.isCalculationCoord||(i=o.name),n++;else{var r=this.getSourceDimension(t);r&&(i=r.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function fz(e){return e instanceof hz}function gz(e){for(var t=fy(),n=0;n<(e||[]).length;n++){var i=e[n],o=Xv(i)?i.name:i;null!=o&&null==t.get(o)&&t.set(o,n)}return t}function mz(e){var t=pz(e);return t.dimNameMap||(t.dimNameMap=gz(e.dimensionsDefine))}function vz(e){return e>30}var yz,xz,bz,_z,wz,Sz,Cz,Mz=Xv,Tz=zv,Iz="undefined"==typeof Int32Array?Array:Int32Array,Az=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Dz=["_approximateExtent"],kz=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;fz(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var o={},r=[],a={},s=!1,l={},c=0;c<n.length;c++){var u=n[c],p=Uv(u)?new uz({name:u}):u instanceof uz?u:new uz(u),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var h=p.otherDims=p.otherDims||{};r.push(d),o[d]=p,null!=l[d]&&(s=!0),p.createInvertedIndices&&(a[d]=[]),0===h.itemName&&(this._nameDimIdx=c),0===h.itemId&&(this._idDimIdx=c),"production"!==process.env.NODE_ENV&&ay(i||p.storeDimIndex>=0),i&&(p.storeDimIndex=c)}if(this.dimensions=r,this._dimInfos=o,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=fy();Rv(r,(function(e){f.set(o[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(qv(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if("production"!==process.env.NODE_ENV&&null==t)throw new Error("Unknown dimension "+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,o=this;if(e instanceof gL&&(i=e),!i){var r=this.dimensions,a=xO(e)||Pv(e)?new TO(e,r.length):e;i=new gL;var s=Tz(r,(function(e){return{type:o._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(e,t){var n={},i=n.encode={},o=fy(),r=[],a=[],s={};Rv(e.dimensions,(function(t){var n,l=e.getDimensionInfo(t),c=l.coordDim;if(c){"production"!==process.env.NODE_ENV&&ay(null==rE.get(c));var u=l.coordDimIndex;lz(i,c)[u]=t,l.isExtraCoord||(o.set(c,1),"ordinal"!==(n=l.type)&&"time"!==n&&(r[0]=t),lz(s,c)[u]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}rE.each((function(e,t){var n=lz(i,t),o=l.otherDims[t];null!=o&&!1!==o&&(n[o]=l.name)}))}));var l=[],c={};o.each((function(e,t){var n=i[t];c[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=zv(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(r=u.slice());var p=i.tooltip;return p&&p.length?a=p.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,n.userOutput=new sz(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,o=n.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<o;a++){var s=a-i;this._nameList[a]=t[s],r&&Cz(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==uE&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===aE&&!n.pure)for(var r=[],a=e;a<t;a++){var s=n.getItem(a,r);if(!this.hasItemOption&&CS(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=AS(l,null));var c=s.id;null==o[a]&&null!=c&&(o[a]=AS(c,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)Cz(this,a);yz(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Mz(e)?Ev(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=bz(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return xz(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return Wv(e)?i.getValues(Tz(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if("production"!==process.env.NODE_ENV&&!n)throw new Error("Do not supported yet");var i=n[t];return null==i||isNaN(i)?-1:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){Hv(e)&&(n=t,t=e,e=[]);var i=n||this,o=Tz(_z(e),this._getStoreDimIndex,this);this._store.each(o,i?Fv(t,i):t)},e.prototype.filterSelf=function(e,t,n){Hv(e)&&(n=t,t=e,e=[]);var i=n||this,o=Tz(_z(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Fv(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={};return Rv(jv(e),(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){Hv(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var o=n||i||this,r=Tz(_z(e),this._getStoreDimIndex,this),a=Sz(this);return a._store=this._store.map(r,o?Fv(t,o):t),a},e.prototype.modify=function(e,t,n,i){var o=this,r=n||i||this;"production"!==process.env.NODE_ENV&&Rv(_z(e),(function(e){o.getDimensionInfo(e).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=Tz(_z(e),this._getStoreDimIndex,this);this._store.modify(a,r?Fv(t,r):t)},e.prototype.downSample=function(e,t,n,i){var o=Sz(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),o},e.prototype.lttbDownSample=function(e,t){var n=Sz(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new UD(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new az(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return xz(e,t)}),(function(e){return xz(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Mz(e)?Ev(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var o=i[t];return null==o&&(Wv(o=this.getVisual(t))?o=o.slice():Mz(o)&&(o=Ev({},o)),i[t]=o),o},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Mz(t)?Ev(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Mz(e)?Ev(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?Ev(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;cT(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Rv(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Tz(this.dimensions,this._getDimInfo,this),this.hostModel)),wz(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Hv(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(oy(arguments)))})},e.internalField=(yz=function(e){var t=e._invertedIndicesMap;Rv(t,(function(n,i){var o=e._dimInfos[i],r=o.ordinalMeta,a=e._store;if(r){n=t[i]=new Iz(r.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}}))},bz=function(e,t,n){return AS(e._getCategory(t,n),null)},xz=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=bz(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},_z=function(e){return Wv(e)||(e=null!=e?[e]:[]),e},Sz=function(t){var n=new e(t._schema?t._schema:Tz(t.dimensions,t._getDimInfo,t),t.hostModel);return wz(n,t),n},wz=function(e,t){Rv(Az.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,Rv(Dz,(function(n){e[n]=Av(t[n])})),e._calculationInfo=Ev({},t._calculationInfo)},void(Cz=function(e,t){var n=e._nameList,i=e._idList,o=e._nameDimIdx,r=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=o&&(n[t]=a=bz(e,o,t)),null==s&&null!=r&&(i[t]=s=bz(e,r,t)),null==s&&null!=a){var l=e._nameRepeatCount,c=l[a]=(l[a]||0)+1;s=a,c>1&&(s+="__ec__"+c),i[t]=s}})),e}();function Ez(e,t){xO(e)||(e=_O(e));var n=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],o=fy(),r=[],a=function(e,t,n,i){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Rv(t,(function(e){var t;Xv(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))})),o}(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&vz(a),l=i===e.dimensionsDefine,c=l?mz(e):gz(i),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var p=fy(u),d=new uL(a),h=0;h<d.length;h++)d[h]=-1;function f(e){var t=d[e];if(t<0){var n=i[e],o=Xv(n)?n:{name:n},a=new uz,s=o.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=o.type&&(a.type=o.type),null!=o.displayName&&(a.displayName=o.displayName);var l=r.length;return d[e]=l,a.storeDimIndex=e,r.push(a),a}return r[t]}if(!s)for(h=0;h<a;h++)f(h);p.each((function(e,t){var n=bS(e).slice();if(1===n.length&&!Uv(n[0])&&n[0]<0)p.set(t,!1);else{var i=p.set(t,[]);Rv(n,(function(e,n){var o=Uv(e)?c.get(e):e;null!=o&&o<a&&(i[n]=o,m(f(o),t,n))}))}}));var g=0;function m(e,t,n){null!=rE.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,o.set(t,!0))}Rv(n,(function(e){var t,n,i,o;if(Uv(e))t=e,o={};else{t=(o=e).name;var r=o.ordinalMeta;o.ordinalMeta=null,(o=Ev({},o)).ordinalMeta=r,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var s=p.get(t);if(!1!==s){if(!(s=bS(s)).length)for(var c=0;c<(n&&n.length||1);c++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}Rv(s,(function(e,r){var a=f(e);if(l&&null!=o.type&&(a.type=o.type),m(Ov(a,o),t,r),null==a.name&&n){var s=n[r];!Xv(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Ov(a.otherDims,i)}))}}));var v=t.generateCoord,y=t.generateCoordCount,x=null!=y;y=v?y||1:0;var b=v||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)Rv(r,(function(e){_(e)})),r.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Oz(b,o,x),S.coordDimIndex=0,(!v||y<=0)&&(S.isExtraCoord=!0),y--),_(S),null!=S.type||xE(e,w)!==fE.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=fy(),n=0;n<e.length;n++){var i=e[n],o=i.name,r=t.get(o)||0;r>0&&(i.name=o+(r-1)),r++,t.set(o,r)}}(r),new hz({source:e,dimensions:r,fullDimensionCount:a,dimensionOmitted:s})}function Oz(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var Lz=function(e){this.coordSysDims=[],this.axisMap=fy(),this.categoryAxisMap=fy(),this.coordSysName=e};var Nz={cartesian2d:function(e,t,n,i){var o=e.getReferringComponents("xAxis",VS).models[0],r=e.getReferringComponents("yAxis",VS).models[0];if("production"!==process.env.NODE_ENV){if(!o)throw new Error('xAxis "'+ty(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!r)throw new Error('yAxis "'+ty(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],n.set("x",o),n.set("y",r),Pz(o)&&(i.set("x",o),t.firstCategoryDimIndex=0),Pz(r)&&(i.set("y",r),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var o=e.getReferringComponents("singleAxis",VS).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],n.set("single",o),Pz(o)&&(i.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var o=e.getReferringComponents("polar",VS).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");if("production"!==process.env.NODE_ENV){if(!a)throw new Error("angleAxis option not found");if(!r)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",a),Pz(r)&&(i.set("radius",r),t.firstCategoryDimIndex=0),Pz(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var o=e.ecModel,r=o.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=r.dimensions.slice();Rv(r.parallelAxisIndex,(function(e,r){var s=o.getComponent("parallelAxis",e),l=a[r];n.set(l,s),Pz(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=r))}))}};function Pz(e){return"category"===e.get("type")}function Rz(e,t,n){var i,o,r,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!fz(e.schema)}(t)?(o=t.schema,i=o.dimensions,r=t.store):i=t;var l,c,u,p,d=!(!e||!e.get("stack"));if(Rv(i,(function(e,t){Uv(e)&&(i[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||a||l||(a=!0),c){u="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=c.coordDim,f=c.type,g=0;Rv(i,(function(e){e.coordDim===h&&g++}));var m={name:u,coordDim:h,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(r&&(m.storeDimIndex=r.ensureCalculationDimension(p,f),v.storeDimIndex=r.ensureCalculationDimension(u,f)),o.appendCalculationDimension(m),o.appendCalculationDimension(v)):(i.push(m),i.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:u}}function zz(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Vz(e,t){return zz(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Bz(e,t,n){n=n||{};var i,o=t.getSourceManager(),r=!1;e?(r=!0,i=_O(e)):r=(i=o.getSource()).sourceFormat===aE;var a=function(e){var t=e.get("coordinateSystem"),n=new Lz(t),i=Nz[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,i=e.get("coordinateSystem"),o=FE.get(i);return t&&t.coordSysDims&&(n=zv(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var o=i.get("type");n.type=cz(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,c=Hv(l)?l:l?Gv(mE,s,t):null,u=Ez(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!r}),p=function(e,t,n){var i,o;return n&&Rv(e,(function(e,r){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==i||(e[i].otherDims.itemName=0),i}(u.dimensions,n.createInvertedIndices,a),d=r?null:o.getSharedDataStore(u),h=Rz(t,{schema:u,store:d}),f=new kz(u,t);f.setCalculationInfo(h);var g=null!=p&&function(e){if(e.sourceFormat===aE){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!Wv(SS(t))}}(i)?function(e,t,n,i){return i===p?n:this.defaultDimValueGetter(e,t,n,i)}:null;return f.hasItemOption=!1,f.initData(r?i:d,null,g),f}var jz=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();QS(jz);var Fz=jz,Gz=0,Wz=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Gz}return e.createByAxisModel=function(t){var n=t.option,i=n.data,o=i&&zv(i,Hz);return new e({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Uv(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=fy(this.categories))},e}();function Hz(e){return Xv(e)&&null!=e.value?e.value:e+""}function Uz(e){return"interval"===e.type||"log"===e.type}function Yz(e,t,n,i){var o={},r=e[1]-e[0],a=o.interval=Qw(r/t,!0);null!=n&&a<n&&(a=o.interval=n),null!=i&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=Xz(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),$z(e,0,t),$z(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[Fw(Math.ceil(e[0]/a)*a,s),Fw(Math.floor(e[1]/a)*a,s)],e),o}function qz(e){var t=Math.pow(10,Jw(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Fw(n*t)}function Xz(e){return Ww(e)+2}function $z(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Zz(e,t){return e>=t[0]&&e<=t[1]}function Kz(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Jz(e,t){return e*(t[1]-t[0])+t[0]}var Qz=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Wz({})),Wv(i)&&(i=new Wz({categories:zv(i,(function(e){return Xv(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return S(t,e),t.prototype.parse=function(e){return null==e?NaN:Uv(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Zz(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return Kz(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Jz(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,t.length);o<a;++o){var s=t[o];n[o]=s,i[s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Fz);Fz.registerClass(Qz);var eV=Qz,tV=Fw,nV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return S(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Zz(e,this._extent)},t.prototype.normalize=function(e){return Kz(e,this._extent)},t.prototype.scale=function(e){return Jz(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xz(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!t)return r;n[0]<i[0]&&(e?r.push({value:tV(i[0]-t,o)}):r.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=tV(a+t,o))!==r[r.length-1].value);)if(r.length>1e4)return[];var s=r.length?r[r.length-1].value:i[1];return n[1]>s&&(e?r.push({value:tV(s+t,o)}):r.push({value:n[1]})),r},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<t.length;o++){for(var r=t[o],a=t[o-1],s=0,l=[],c=(r.value-a.value)/e;s<e-1;){var u=tV(a.value+(s+1)*c);u>i[0]&&u<i[1]&&l.push(u),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Ww(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Lk(tV(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var r=Yz(i,e,t,n);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(t[0]=tV(Math.floor(t[0]/o)*o)),e.fixMax||(t[1]=tV(Math.ceil(t[1]/o)*o))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(Fz);Fz.registerClass(nV);var iV=nV,oV="undefined"!=typeof Float32Array,rV=oV?Float32Array:Array;function aV(e){return Wv(e)?oV?new Float32Array(e):e:new rV(e)}var sV="__ec_stack_";function lV(e){return e.get("stack")||sV+e.seriesIndex}function cV(e){return e.dim+e.index}function uV(e,t){var n=[];return t.eachSeriesByType(e,(function(e){gV(e)&&n.push(e)})),n}function pV(e){var t=function(e){var t={};Rv(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.getData(),o=n.dim+"_"+n.index,r=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var c=a.get(r,s);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];if(o){o.sort((function(e,t){return e-t}));for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];s>0&&(r=null===r?s:Math.min(r,s))}n[i]=r}}return n}(e),n=[];return Rv(e,(function(e){var i,o=e.coordinateSystem.getBaseAxis(),r=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var a=o.dim+"_"+o.index,s=t[a],l=Math.abs(r[1]-r[0]),c=o.scale.getExtent(),u=Math.abs(c[1]-c[0]);i=s?l/u*s:l}else{var p=e.getData();i=Math.abs(r[1]-r[0])/p.count()}var d=jw(e.get("barWidth"),i),h=jw(e.get("barMaxWidth"),i),f=jw(e.get("barMinWidth")||(mV(e)?.5:1),i),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:h,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:cV(o),stackId:lV(e)})})),dV(n)}function dV(e){var t={};Rv(e,(function(e,n){var i=e.axisKey,o=e.bandWidth,r=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=r.stacks;t[i]=r;var s=e.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var c=e.barMaxWidth;c&&(a[s].maxWidth=c);var u=e.barMinWidth;u&&(a[s].minWidth=u);var p=e.barGap;null!=p&&(r.gap=p);var d=e.barCategoryGap;null!=d&&(r.categoryGap=d)}));var n={};return Rv(t,(function(e,t){n[t]={};var i=e.stacks,o=e.bandWidth,r=e.categoryGap;if(null==r){var a=jv(i).length;r=Math.max(35-4*a,15)+"%"}var s=jw(r,o),l=jw(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,p=(c-s)/(u+(u-1)*l);p=Math.max(p,0),Rv(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,c-=i+l*i,u--}else{var i=p;t&&t<i&&(i=Math.min(t,c)),n&&n>i&&(i=n),i!==p&&(e.width=i,c-=i+l*i,u--)}})),p=(c-s)/(u+(u-1)*l),p=Math.max(p,0);var d,h=0;Rv(i,(function(e,t){e.width||(e.width=p),d=e,h+=e.width*(1+l)})),d&&(h-=d.width*l);var f=-h/2;Rv(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:o,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function hV(e,t){var n=uV(e,t),i=pV(n);Rv(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),o=lV(e),r=i[cV(n)][o],a=r.offset,s=r.width;t.setLayout({bandWidth:r.bandWidth,offset:a,size:s})}))}function fV(e){return{seriesType:e,plan:KL(),reset:function(e){if(gV(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),r=t.getDimensionIndex(t.mapDimension(o.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(o.dim),c=t.getCalculationInfo("stackResultDimension"),u=zz(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),d=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,o),h=mV(e),f=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){for(var i,o=e.count,l=h&&aV(3*o),c=h&&s&&aV(3*o),y=h&&aV(o),x=n.master.getRect(),b=p?x.width:x.height,_=t.getStore(),w=0;null!=(i=e.next());){var S=_.get(u?g:r,i),C=_.get(a,i),M=d,T=void 0;u&&(T=+S-_.get(r,i));var I=void 0,A=void 0,D=void 0,k=void 0;if(p){var E=n.dataToPoint([S,C]);if(u)M=n.dataToPoint([T,C])[0];I=M,A=E[1]+v,D=E[0]-M,k=m,Math.abs(D)<f&&(D=(D<0?-1:1)*f)}else{E=n.dataToPoint([C,S]);if(u)M=n.dataToPoint([C,T])[1];I=E[0]+v,A=M,D=m,k=E[1]-M,Math.abs(k)<f&&(k=(k<=0?-1:1)*f)}h?(l[w]=I,l[w+1]=A,l[w+2]=p?D:k,c&&(c[w]=p?x.x:I,c[w+1]=p?A:x.y,c[w+2]=b),y[i]=i):t.setItemLayout(i,{x:I,y:A,width:D,height:k}),w+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function gV(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function mV(e){return e.pipelineContext&&e.pipelineContext.large}var vV=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return S(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return mk(e.value,uk[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(fk(this._minLevelUnit))]||uk.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC");return function(e,t,n,i,o){var r=null;if(Uv(n))r=n;else if(Hv(n))r=n(e.value,t,{level:e.level});else{var a=Ev({},lk);if(e.level>0)for(var s=0;s<pk.length;++s)a[pk[s]]="{primary|"+a[pk[s]]+"}";var l=n?!1===n.inherit?n:Ov(n,a):a,c=vk(e.value,o);if(l[c])r=l[c];else if(l.inherit){for(s=dk.indexOf(c)-1;s>=0;--s)if(l[c]){r=l[c];break}r=r||a.none}if(Wv(r)){var u=null==e.level?0:e.level>=0?e.level:r.length+e.level;r=r[u=Math.min(u,r.length-1)]}}return mk(new Date(e.value),r,o,i)}(e,t,n,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),o=function(e,t,n,i){var o=1e4,r=dk,a=0;function s(e,t,n,o,r,a,s){for(var l=new Date(t),c=t,u=l[o]();c<n&&c<=i[1];)s.push({value:c}),u+=e,l[r](u),c=l.getTime();s.push({value:c,notAdd:!0})}function l(e,o,r){var a=[],l=!o.length;if(!function(e,t,n,i){var o=Kw(t),r=Kw(n),a=function(e){return yk(o,e,i)===yk(r,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},p=function(){return u()&&a("minute")},d=function(){return p()&&a("second")},h=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return p();case"second":return d();case"millisecond":return h()}}(fk(e),i[0],i[1],n)){l&&(o=[{value:CV(new Date(i[0]),e,n)},{value:i[1]}]);for(var c=0;c<o.length-1;c++){var u=o[c].value,p=o[c+1].value;if(u!==p){var d=void 0,h=void 0,f=void 0,g=!1;switch(e){case"year":d=Math.max(1,Math.round(t/ak/365)),h=xk(n),f=Tk(n);break;case"half-year":case"quarter":case"month":d=bV(t),h=bk(n),f=Ik(n);break;case"week":case"half-week":case"day":d=xV(t),h=_k(n),f=Ak(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=_V(t),h=wk(n),f=Dk(n);break;case"minute":d=wV(t,!0),h=Sk(n),f=kk(n);break;case"second":d=wV(t,!1),h=Ck(n),f=Ek(n);break;case"millisecond":d=SV(t),h=Mk(n),f=Ok(n)}s(d,u,p,h,f,g,a),"year"===e&&r.length>1&&0===c&&r.unshift({value:r[0].value-d})}}for(c=0;c<a.length;c++)r.push(a[c]);return a}}for(var c=[],u=[],p=0,d=0,h=0;h<r.length&&a++<o;++h){var f=fk(r[h]);if(gk(r[h]))if(l(r[h],c[c.length-1]||[],u),f!==(r[h+1]?fk(r[h+1]):null)){if(u.length){d=p,u.sort((function(e,t){return e.value-t.value}));for(var g=[],m=0;m<u.length;++m){var v=u[m].value;0!==m&&u[m-1].value===v||(g.push(u[m]),v>=i[0]&&v<=i[1]&&p++)}var y=(i[1]-i[0])/t;if(p>1.5*y&&d>y/1.5)break;if(c.push(g),p>y||e===r[h])break}u=[]}}"production"!==process.env.NODE_ENV&&a>=o&&pS("Exceed safe limit.");var x=Bv(zv(c,(function(e){return Bv(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),b=[],_=x.length-1;for(h=0;h<x.length;++h)for(var w=x[h],S=0;S<w.length;++S)b.push({value:w[S].value,level:_-h});b.sort((function(e,t){return e.value-t.value}));var C=[];for(h=0;h<b.length;++h)0!==h&&b[h].value===b[h-1].value||C.push(b[h]);return C}(this._minLevelUnit,this._approxInterval,i,t);return(n=n.concat(o)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=ak,t[1]+=ak),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-ak}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=yV.length,a=Math.min(function(e,t,n,i){for(;n<i;){var o=n+i>>>1;e[o][1]<t?n=o+1:i=o}return n}(yV,this._approxInterval,0,r),r-1);this._interval=yV[a][1],this._minLevelUnit=yV[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return qv(e)?e:+Kw(e)},t.prototype.contain=function(e){return Zz(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Kz(this.parse(e),this._extent)},t.prototype.scale=function(e){return Jz(e,this._extent)},t.type="time",t}(iV),yV=[["second",ik],["minute",ok],["hour",rk],["quarter-day",6*rk],["half-day",12*rk],["day",1.2*ak],["half-week",3.5*ak],["week",7*ak],["month",31*ak],["quarter",95*ak],["half-year",sk/2],["year",sk]];function xV(e,t){return(e/=ak)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function bV(e){return(e/=30*ak)>6?6:e>3?3:e>2?2:1}function _V(e){return(e/=rk)>12?12:e>6?6:e>3.5?4:e>2?2:1}function wV(e,t){return(e/=t?ok:ik)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function SV(e){return Qw(e,!0)}function CV(e,t,n){var i=new Date(e);switch(fk(t)){case"year":case"month":i[Ik(n)](0);case"day":i[Ak(n)](1);case"hour":i[Dk(n)](0);case"minute":i[kk(n)](0);case"second":i[Ek(n)](0),i[Ok(n)](0)}return i.getTime()}Fz.registerClass(vV);var MV=vV,TV=Fz.prototype,IV=iV.prototype,AV=Fw,DV=Math.floor,kV=Math.ceil,EV=Math.pow,OV=Math.log,LV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new iV,t._interval=0,t}return S(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return zv(IV.getTicks.call(this,e),(function(e){var t=e.value,o=Fw(EV(this.base,t));return o=t===n[0]&&this._fixMin?PV(o,i[0]):o,{value:o=t===n[1]&&this._fixMax?PV(o,i[1]):o}}),this)},t.prototype.setExtent=function(e,t){var n=OV(this.base);e=OV(Math.max(0,e))/n,t=OV(Math.max(0,t))/n,IV.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=TV.getExtent.call(this);t[0]=EV(e,t[0]),t[1]=EV(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=PV(t[0],n[0])),this._fixMax&&(t[1]=PV(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=OV(e[0])/OV(t),e[1]=OV(e[1])/OV(t),TV.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i,o=(i=n,Math.pow(10,Jw(i)));for(e/n*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var r=[Fw(kV(t[0]/o)*o),Fw(DV(t[1]/o)*o)];this._interval=o,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){IV.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Zz(e=OV(e)/OV(this.base),this._extent)},t.prototype.normalize=function(e){return Kz(e=OV(e)/OV(this.base),this._extent)},t.prototype.scale=function(e){return e=Jz(e,this._extent),EV(this.base,e)},t.type="log",t}(Fz),NV=LV.prototype;function PV(e,t){return AV(e,Ww(t))}NV.getMinorTicks=IV.getMinorTicks,NV.getLabel=IV.getLabel,Fz.registerClass(LV);var RV=LV,zV=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=this._modelMinRaw=t.get("min",!0);Hv(o)?this._modelMinNum=FV(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=FV(e,o));var r=this._modelMaxRaw=t.get("max",!0);if(Hv(r)?this._modelMaxNum=FV(e,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=FV(e,r)),i)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=Wv(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?("production"!==process.env.NODE_ENV&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[yw(s[0],1),yw(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,c=null!=s;null==a&&(a=e?i?0:NaN:t-o[0]*r),null==s&&(s=e?i?i-1:NaN:n+o[1]*r),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var u=ey(a)||ey(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var p=this._determinedMin,d=this._determinedMax;return null!=p&&(a=p,l=!0),null!=d&&(s=d,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){"production"!==process.env.NODE_ENV&&ay(!this.frozen),this[BV[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=VV[e];"production"!==process.env.NODE_ENV&&ay(!this.frozen&&null==this[n]),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),VV={min:"_determinedMin",max:"_determinedMax"},BV={min:"_dataMin",max:"_dataMax"};function jV(e,t,n){var i=e.rawExtentInfo;return i||(i=new zV(e,t,n),e.rawExtentInfo=i,i)}function FV(e,t){return null==t?null:ey(t)?NaN:e.parse(t)}function GV(e,t){var n=e.type,i=jV(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var o=i.min,r=i.max,a=t.ecModel;if(a&&"time"===n){var s=uV("bar",a),l=!1;if(Rv(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var c=pV(s),u=function(e,t,n,i){var o=n.axis.getExtent(),r=o[1]-o[0],a=function(e,t,n){if(e&&t){var i=e[cV(t)];return null!=i&&null!=n?i[lV(n)]:i}}(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;Rv(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;Rv(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,p=u/(1-(s+l)/r)-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}(o,r,t,c);o=u.min,r=u.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function WV(e,t){var n=t,i=GV(e,n),o=i.extent,r=n.get("splitNumber");e instanceof RV&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function HV(e,t){if(t=t||e.get("type"))switch(t){case"category":return new eV({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new MV({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Fz.getClass(t)||iV)}}function UV(e){var t,n,i=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=i,function(t,i){return e.scale.getFormattedLabel(t,i,n)}):Uv(i)?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(i):Hv(i)?(t=i,function(n,i){return null!=o&&(i=n.value-o),t(YV(e,n),i,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function YV(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function qV(e,t){var n=t*Math.PI/180,i=e.width,o=e.height,r=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n));return new Ax(e.x,e.y,r,a)}function XV(e){var t=e.get("interval");return null==t?"auto":t}function $V(e){return"category"===e.type&&0===XV(e.getLabelModel())}function ZV(e,t){var n={};return Rv(e.mapDimensionsAll(t),(function(t){n[Vz(e,t)]=!0})),jv(n)}var KV=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),JV=1e-8;function QV(e,t){return Math.abs(e-t)<JV}function eB(e,t,n){var i=0,o=e[0];if(!o)return!1;for(var r=1;r<e.length;r++){var a=e[r];i+=mM(o[0],o[1],a[0],a[1],t,n),o=a}var s=e[0];return QV(o[0],s[0])&&QV(o[1],s[1])||(i+=mM(o[0],o[1],s[0],s[1],t,n)),0!==i}var tB=[];function nB(e,t){for(var n=0;n<e.length;n++)Py(e[n],e[n],t)}function iB(e,t,n,i){for(var o=0;o<e.length;o++){var r=e[o];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&(Ry(t,t,r),zy(n,n,r))}}var oB=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),rB=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},aB=function(e){this.type="linestring",this.points=e},sB=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.type="geoJSON",o.geometries=n,o._center=i&&[i[0],i[1]],o}return S(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var o=t[i],r=o.exterior,a=r&&r.length;a>n&&(e=o,n=a)}if(e)return function(e){for(var t=0,n=0,i=0,o=e.length,r=e[o-1][0],a=e[o-1][1],s=0;s<o;s++){var l=e[s][0],c=e[s][1],u=r*c-l*a;t+=u,n+=(r+l)*u,i+=(a+c)*u,r=l,a=c}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0];return Rv(this.geometries,(function(t){"polygon"===t.type?iB(t.exterior,n,i,e):Rv(t.points,(function(t){iB(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new Ax(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(eB(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(eB(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var o=this.getBoundingRect(),r=o.width/o.height;n?i||(i=n/r):n=r*i;for(var a=new Ax(e,t,n,i),s=o.calculateTransform(a),l=this.geometries,c=0;c<l.length;c++){var u=l[c];"polygon"===u.type?(nB(u.exterior,s),Rv(u.interiors,(function(e){nB(e,s)}))):Rv(u.points,(function(e){nB(e,s)}))}(o=this._rect).copy(a),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(oB),lB=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return S(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=ux(tB),o=e;o&&!o.isGeoSVGGraphicRoot;)dx(i,o.getLocalTransform(),i),o=o.parent;return mx(i,i),Py(n,n,i),n},t}(oB);function cB(e,t,n){for(var i=0;i<e.length;i++)e[i]=uB(e[i],t[i],n)}function uB(e,t,n){for(var i=[],o=t[0],r=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),o=s+=o,r=l+=r,i.push([s/n,l/n])}return i}function pB(e,t){return zv(Bv((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),Rv(t.features,(function(e){var t=e.geometry,i=t.encodeOffsets,o=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=uB(o,i,n);break;case"Polygon":case"MultiLineString":cB(o,i,n);break;case"MultiPolygon":Rv(o,(function(e,t){return cB(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}(e)).features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,o=[];switch(i.type){case"Polygon":var r=i.coordinates;o.push(new rB(r[0],r.slice(1)));break;case"MultiPolygon":Rv(i.coordinates,(function(e){e[0]&&o.push(new rB(e[0],e.slice(1)))}));break;case"LineString":o.push(new aB([i.coordinates]));break;case"MultiLineString":o.push(new aB(i.coordinates))}var a=new sB(n[t||"name"],o,n.cp);return a.properties=n,a}))}var dB=NS();function hB(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=gB(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=UV(e);return{labels:zv(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function fB(e,t){return"category"===e.type?function(e,t){var n,i,o=mB(e,"ticks"),r=XV(t),a=vB(o,r);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(Hv(r))n=bB(e,r,!0);else if("auto"===r){var s=gB(e,e.getLabelModel());i=s.labelCategoryInterval,n=zv(s.labels,(function(e){return e.tickValue}))}else n=xB(e,i=r,!0);return yB(o,r,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:zv(e.scale.getTicks(),(function(e){return e.value}))}}function gB(e,t){var n,i,o=mB(e,"labels"),r=XV(t),a=vB(o,r);return a||(Hv(r)?n=bB(e,r):(i="auto"===r?function(e){var t=dB(e).autoInterval;return null!=t?t:dB(e).autoInterval=e.calculateCategoryInterval()}(e):r,n=xB(e,i)),yB(o,r,{labels:n,labelCategoryInterval:i}))}function mB(e,t){return dB(e)[t]||(dB(e)[t]=[])}function vB(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function yB(e,t,n){return e.push({key:t,value:n}),n}function xB(e,t,n){var i=UV(e),o=e.scale,r=o.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=r[0],u=o.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var p=$V(e),d=a.get("showMinLabel")||p,h=a.get("showMaxLabel")||p;d&&c!==r[0]&&g(r[0]);for(var f=c;f<=r[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:o.getLabel(t),tickValue:e})}return h&&f-l!==r[1]&&g(r[1]),s}function bB(e,t,n){var i=e.scale,o=UV(e),r=[];return Rv(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&r.push(n?s:{formattedLabel:o(e),rawLabel:a,tickValue:s})})),r}var _B=[0,1],wB=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Uw(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&SB(n=n.slice(),i.count()),Bw(e,_B,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&SB(n=n.slice(),i.count());var o=Bw(e,n,_B,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=zv(fB(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,i){var o=t.length;if(!e.onBand||n||!o)return;var r,a,s=e.getExtent();if(1===o)t[0].coord=s[0],r=t[1]={coord:s[1]};else{var l=t[o-1].tickValue-t[0].tickValue,c=(t[o-1].coord-t[0].coord)/l;Rv(t,(function(e){e.coord-=c/2})),a=1+e.scale.getExtent()[1]-t[o-1].tickValue,r={coord:t[o-1].coord+c*a},t.push(r)}var u=s[0]>s[1];p(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift());i&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]});p(s[1],r.coord)&&(i?r.coord=s[1]:t.pop());i&&p(r.coord,s[1])&&t.push({coord:s[1]});function p(e,t){return e=Fw(e),t=Fw(t),u?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),zv(this.scale.getMinorTicks(e),(function(e){return zv(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return hB(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=UV(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(i)),p=Math.abs(c*Math.sin(i)),d=0,h=0;l<=r[1];l+=s){var f,g,m=fw(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),h=Math.max(h,g,7)}var v=d/u,y=h/p;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),b=dB(e.model),_=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}(this)},e}();function SB(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var CB=wB,MB=2*Math.PI,TB=lM.CMD,IB=["top","right","bottom","left"];function AB(e,t,n,i,o){var r=n.width,a=n.height;switch(e){case"top":i.set(n.x+r/2,n.y-t),o.set(0,-1);break;case"bottom":i.set(n.x+r/2,n.y+a+t),o.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),o.set(-1,0);break;case"right":i.set(n.x+r+t,n.y+a/2),o.set(1,0)}}function DB(e,t,n,i,o,r,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s),u=(a/=c)*n+e,p=(s/=c)*n+t;if(Math.abs(i-o)%MB<1e-4)return l[0]=u,l[1]=p,c-n;if(r){var d=i;i=hM(o),o=hM(d)}else i=hM(i),o=hM(o);i>o&&(o+=MB);var h=Math.atan2(s,a);if(h<0&&(h+=MB),h>=i&&h<=o||h+MB>=i&&h+MB<=o)return l[0]=u,l[1]=p,c-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,m=n*Math.cos(o)+e,v=n*Math.sin(o)+t,y=(f-a)*(f-a)+(g-s)*(g-s),x=(m-a)*(m-a)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(x))}function kB(e,t,n,i,o,r,a,s){var l=o-e,c=r-t,u=n-e,p=i-t,d=Math.sqrt(u*u+p*p),h=(l*(u/=d)+c*(p/=d))/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var f=a[0]=e+h*u,g=a[1]=t+h*p;return Math.sqrt((f-o)*(f-o)+(g-r)*(g-r))}function EB(e,t,n,i,o,r,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,c=a[0]=Math.min(Math.max(o,e),s),u=a[1]=Math.min(Math.max(r,t),l);return Math.sqrt((c-o)*(c-o)+(u-r)*(u-r))}var OB=[];function LB(e,t,n){var i=EB(t.x,t.y,t.width,t.height,e.x,e.y,OB);return n.set(OB[0],OB[1]),i}function NB(e,t,n){for(var i,o,r=0,a=0,s=0,l=0,c=1/0,u=t.data,p=e.x,d=e.y,h=0;h<u.length;){var f=u[h++];1===h&&(s=r=u[h],l=a=u[h+1]);var g=c;switch(f){case TB.M:r=s=u[h++],a=l=u[h++];break;case TB.L:g=kB(r,a,u[h],u[h+1],p,d,OB,!0),r=u[h++],a=u[h++];break;case TB.C:g=yb(r,a,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],p,d,OB),r=u[h++],a=u[h++];break;case TB.Q:g=Cb(r,a,u[h++],u[h++],u[h],u[h+1],p,d,OB),r=u[h++],a=u[h++];break;case TB.A:var m=u[h++],v=u[h++],y=u[h++],x=u[h++],b=u[h++],_=u[h++];h+=1;var w=!!(1-u[h++]);i=Math.cos(b)*y+m,o=Math.sin(b)*x+v,h<=1&&(s=i,l=o),g=DB(m,v,x,b,b+_,w,(p-m)*x/y+m,d,OB),r=Math.cos(b+_)*y+m,a=Math.sin(b+_)*x+v;break;case TB.R:g=EB(s=r=u[h++],l=a=u[h++],u[h++],u[h++],p,d,OB);break;case TB.Z:g=kB(r,a,s,l,p,d,OB,!0),r=s,a=l}g<c&&(c=g,n.set(OB[0],OB[1]))}return c}var PB=new vx,RB=new vx,zB=new vx,VB=new vx,BB=new vx;function jB(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var o=e.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||IB,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=o.anchor,u=e.getComputedTransform(),p=u&&mx([],u),d=t.get("length2")||0;c&&zB.copy(c);for(var h=0;h<a.length;h++){AB(a[h],0,s,PB,VB),vx.scaleAndAdd(RB,PB,VB,d),RB.transform(p);var f=e.getBoundingRect(),g=c?c.distance(RB):e instanceof kM?NB(RB,e.path,zB):LB(RB,f,zB);g<l&&(l=g,RB.transform(u),zB.transform(u),zB.toArray(r[0]),RB.toArray(r[1]),PB.toArray(r[2]))}WB(r,t.get("minTurnAngle")),n.setShape({points:r})}}}var FB=[],GB=new vx;function WB(e,t){if(t<=180&&t>0){t=t/180*Math.PI,PB.fromArray(e[0]),RB.fromArray(e[1]),zB.fromArray(e[2]),vx.sub(VB,PB,RB),vx.sub(BB,zB,RB);var n=VB.len(),i=BB.len();if(!(n<.001||i<.001)){VB.scale(1/n),BB.scale(1/i);var o=VB.dot(BB);if(Math.cos(t)<o){var r=kB(RB.x,RB.y,zB.x,zB.y,PB.x,PB.y,FB,!1);GB.fromArray(FB),GB.scaleAndAdd(BB,r/Math.tan(Math.PI-t));var a=zB.x!==RB.x?(GB.x-RB.x)/(zB.x-RB.x):(GB.y-RB.y)/(zB.y-RB.y);if(isNaN(a))return;a<0?vx.copy(GB,RB):a>1&&vx.copy(GB,zB),GB.toArray(e[1])}}}}function HB(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,PB.fromArray(e[0]),RB.fromArray(e[1]),zB.fromArray(e[2]),vx.sub(VB,RB,PB),vx.sub(BB,zB,RB);var i=VB.len(),o=BB.len();if(!(i<.001||o<.001))if(VB.scale(1/i),BB.scale(1/o),VB.dot(t)<Math.cos(n)){var r=kB(RB.x,RB.y,zB.x,zB.y,PB.x,PB.y,FB,!1);GB.fromArray(FB);var a=Math.PI/2,s=a+Math.acos(BB.dot(t))-n;if(s>=a)vx.copy(GB,zB);else{GB.scaleAndAdd(BB,r/Math.tan(Math.PI/2-s));var l=zB.x!==RB.x?(GB.x-RB.x)/(zB.x-RB.x):(GB.y-RB.y)/(zB.y-RB.y);if(isNaN(l))return;l<0?vx.copy(GB,RB):l>1&&vx.copy(GB,zB)}GB.toArray(e[1])}}}function UB(e,t,n,i){var o="normal"===n,r=o?e:e.ensureState(n);r.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?e.useStyle(s):r.style=s}function YB(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var o=Oy(i[0],i[1]),r=Oy(i[1],i[2]);if(!o||!r)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(o,r)*n,s=Ny([],i[1],i[0],a/o),l=Ny([],i[1],i[2],a/r),c=Ny([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)e.lineTo(i[u][0],i[u][1])}function qB(e,t,n){var i=e.getTextGuideLine(),o=e.getTextContent();if(o){for(var r=t.normal,a=r.get("show"),s=o.ignore,l=0;l<yT.length;l++){var c=yT[l],u=t[c],p="normal"===c;if(u){var d=u.get("show");if((p?s:ny(o.states[c]&&o.states[c].ignore,s))||!ny(d,a)){var h=p?i:i&&i.states[c];h&&(h.ignore=!0),i&&UB(i,!0,c,u);continue}i||(i=new rA,e.setTextGuideLine(i),p||!s&&a||UB(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),UB(i,!1,c,u)}}if(i){Ov(i.style,n),i.style.fill=null;var f=r.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=YB}}else i&&e.removeTextGuideLine()}function XB(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<vT.length;i++){var o=vT[i];n[o]=e.getModel([o,t])}return n}function $B(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var o=i.label,r=o.getComputedTransform(),a=o.getBoundingRect(),s=!r||r[1]<1e-5&&r[2]<1e-5,l=o.style.margin||0,c=a.clone();c.applyTransform(r),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new DA(a,r):null;t.push({label:o,labelLine:i.labelLine,rect:c,localRect:a,obb:u,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:r})}}return t}function ZB(e,t,n,i,o,r){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,c=!1,u=0,p=0;p<a;p++){var d=e[p],h=d.rect;(s=h[t]-l)<0&&(h[t]-=s,d.label[t]-=s,c=!0),u+=Math.max(-s,0),l=h[t]+h[n]}u>0&&r&&b(-u/a,0,a);var f,g,m=e[0],v=e[a-1];return y(),f<0&&_(-f,.8),g<0&&_(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),c}function y(){f=m.rect[t]-i,g=o-v.rect[t]-v.rect[n]}function x(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){b(i*n,0,a);var o=i+e;o<0&&_(-o*n,1)}else _(-e*n,1)}}function b(n,i,o){0!==n&&(c=!0);for(var r=i;r<o;r++){var a=e[r];a.rect[t]+=n,a.label[t]+=n}}function _(i,o){for(var r=[],s=0,l=1;l<a;l++){var c=e[l-1].rect,u=Math.max(e[l].rect[t]-c[t]-c[n],0);r.push(u),s+=u}if(s){var p=Math.min(Math.abs(i)/s,o);if(i>0)for(l=0;l<a-1;l++){b(r[l]*p,0,l+1)}else for(l=a-1;l>0;l--){b(-(r[l-1]*p),l,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?b(n,0,i+1):b(-n,a-i-1,a),(e-=n)<=0)return}}function KB(e,t,n,i){return ZB(e,"y","height",t,n,i)}function JB(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Ax(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;o<e.length;o++){var r=e[o],a=r.axisAligned,s=r.localRect,l=r.transform,c=r.label,u=r.labelLine;n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=r.obb,d=!1,h=0;h<t.length;h++){var f=t[h];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new DA(f.localRect,f.transform)),p||(p=new DA(s,l)),p.intersect(f.obb)){d=!0;break}}}d?(i(c),u&&i(u)):(c.attr("ignore",r.defaultAttr.ignore),u&&u.attr("ignore",r.defaultAttr.labelGuideIgnore),t.push(r))}}function QB(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function ej(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:QB(i&&i.shape.points)}}var tj=["align","verticalAlign","width","height","fontSize"],nj=new lw,ij=NS(),oj=NS();function rj(e,t,n){for(var i=0;i<n.length;i++){var o=n[i];null!=t[o]&&(e[o]=t[o])}}var aj=["x","y","rotation"],sj=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Ax.applyTransform(l,l,s),s?nj.setLocalTransform(s):(nj.x=nj.y=nj.rotation=nj.originX=nj.originY=0,nj.scaleX=nj.scaleY=1),nj.rotation=hM(nj.rotation);var c,u=i.__hostTarget;if(u){c=u.getBoundingRect().plain();var p=u.getComputedTransform();Ax.applyTransform(c,c,p)}var d=c&&u.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:l,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:nj.x,y:nj.y,scaleX:nj.scaleX,scaleY:nj.scaleY,rotation:nj.rotation,style:{x:r.x,y:r.y,align:r.align,verticalAlign:r.verticalAlign,width:r.width,height:r.height,fontSize:r.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Hv(i)||jv(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var o=e.getTextContent(),r=lT(e);o&&!o.disableLabelLayout&&t._addLabel(r.dataIndex,r.dataType,n,o,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){jB(e,t)}}for(var o=0;o<this._labelList.length;o++){var r=this._labelList[o],a=r.label,s=a.__hostTarget,l=r.defaultAttr,c=void 0;c=(c=Hv(r.layoutOption)?r.layoutOption(ej(r,s)):r.layoutOption)||{},r.computedLayoutOption=c;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*u:l.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(null!=c.x?(a.x=jw(c.x,t),a.setStyle("x",0),p=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=c.y?(a.y=jw(c.y,n),a.setStyle("y",0),p=!0):(a.y=l.y,a.setStyle("y",l.style.y)),c.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),p=!1)}ij(a).needsUpdateLabelLine=p,a.rotation=null!=c.rotate?c.rotate*u:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var h=0;h<tj.length;h++){var f=tj[h];a.setStyle(f,null!=c[f]?c[f]:l.style[f])}if(c.draggable){if(a.draggable=!0,a.cursor="move",s){var g=r.seriesModel;if(null!=r.dataIndex)g=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex);a.on("drag",i(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),i=e.getHeight(),o=$B(this._labelList),r=Bv(o,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=Bv(o,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));ZB(r,"x","width",0,n,t),KB(a,0,i),JB(Bv(o,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;Rv(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,o=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var r=!i,a=t.getTextContent();!r&&a&&(r=ij(a).needsUpdateLabelLine),r&&e._updateLabelLine(t,n),o&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=lT(e),o=i.dataIndex;if(n&&null!=o){var r=t.getData(i.dataType),a=r.getItemModel(o),s={},l=r.getItemVisual(o,"style");if(l){var c=r.getVisual("drawType");s.stroke=l[c]}var u=a.getModel("labelLine");qB(e,XB(a),s),jB(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!VA(e))){var o=(h=ij(n)).oldLayout,r=lT(e),a=r.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(r.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(Lv(c,"select")>=0&&n.attr(h.oldLayoutSelect),Lv(c,"emphasis")>=0&&n.attr(h.oldLayoutEmphasis)),RA(n,s,t,a)}else if(n.attr(s),!AD(n).valueAnimation){var u=ny(n.style.opacity,1);n.style.opacity=0,zA(n,{style:{opacity:u}},t,a)}if(h.oldLayout=s,n.states.select){var p=h.oldLayoutSelect={};rj(p,s,aj),rj(p,n.states.select,aj)}if(n.states.emphasis){var d=h.oldLayoutEmphasis={};rj(d,s,aj),rj(d,n.states.emphasis,aj)}kD(n,a,l,t,t)}if(i&&!i.ignore&&!i.invisible){o=(h=oj(i)).oldLayout;var h,f={points:i.shape.points};o?(i.attr({shape:o}),RA(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,zA(i,{style:{strokePercent:1}},t)),h.oldLayout=f}},e}(),lj=NS();var cj=Math.sin,uj=Math.cos,pj=Math.PI,dj=2*Math.PI,hj=180/pj,fj=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,o,r){this._add("C",e,t,n,i,o,r)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,o,r){this.ellipse(e,t,n,n,0,i,o,r)},e.prototype.ellipse=function(e,t,n,i,o,r,a,s){var l=a-r,c=!s,u=Math.abs(l),p=i_(u-dj)||(c?l>=dj:-l>=dj),d=l>0?l%dj:l%dj+dj,h=!1;h=!!p||!i_(u)&&d>=pj==!!c;var f=e+n*uj(r),g=t+i*cj(r);this._start&&this._add("M",f,g);var m=Math.round(o*hj);if(p){var v=1/this._p,y=(c?1:-1)*(dj-v);this._add("A",n,i,m,1,+c,e+n*uj(r+y),t+i*cj(r+y)),v>.01&&this._add("A",n,i,m,0,+c,f,g)}else{var x=e+n*uj(a),b=t+i*cj(a);this._add("A",n,i,m,+h,+c,x,b)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,o,r,a,s,l){for(var c=[],u=this._p,p=1;p<arguments.length;p++){var d=arguments[p];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),gj="none",mj=Math.round;var vj=["lineCap","miterLimit","lineJoin"],yj=zv(vj,(function(e){return"stroke-"+e.toLowerCase()}));function xj(e,t,n,i){var o=null==t.opacity?1:t.opacity;if(n instanceof zM)e("opacity",o);else{if(function(e){var t=e.fill;return null!=t&&t!==gj}(t)){var r=t_(t.fill);e("fill",r.color);var a=null!=t.fillOpacity?t.fillOpacity*r.opacity*o:r.opacity*o;(i||a<1)&&e("fill-opacity",a)}else e("fill",gj);if(function(e){var t=e.stroke;return null!=t&&t!==gj}(t)){var s=t_(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,c=l?(t.lineWidth||0)/l:0,u=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*o:s.opacity*o,p=t.strokeFirst;if((i||1!==c)&&e("stroke-width",c),(i||p)&&e("paint-order",p?"stroke":"fill"),(i||u<1)&&e("stroke-opacity",u),t.lineDash){var d=_P(n),h=d[0],f=d[1];h&&(f=mj(f||0),e("stroke-dasharray",h.join(",")),(f||i)&&e("stroke-dashoffset",f))}else i&&e("stroke-dasharray",gj);for(var g=0;g<vj.length;g++){var m=vj[g];if(i||t[m]!==TM[m]){var v=t[m]||TM[m];v&&e(yj[g],v)}}}else i&&e("stroke",gj)}}var bj="http://www.w3.org/2000/svg",_j="http://www.w3.org/1999/xlink",wj="http://www.w3.org/2000/xmlns/",Sj="http://www.w3.org/XML/1998/namespace",Cj="ecmeta_";function Mj(e){return document.createElementNS(bj,e)}function Tj(e,t,n,i,o){return{tag:e,attrs:n||{},children:i,text:o,key:t}}function Ij(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var i=t.children,o=t.tag,r=t.attrs,a=t.text;return function(e,t){var n=[];if(t)for(var i in t){var o=t[i],r=i;!1!==o&&(!0!==o&&null!=o&&(r+='="'+o+'"'),n.push(r))}return"<"+e+" "+n.join(" ")+">"}(o,r)+("style"!==o?Zy(a):a||"")+(i?""+n+zv(i,(function(t){return e(t)})).join(n)+n:"")+("</"+o+">")}(e)}function Aj(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Dj(e,t,n,i){return Tj("svg","root",{width:e,height:t,xmlns:bj,"xmlns:xlink":_j,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var kj=0;function Ej(){return kj++}var Oj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Lj="transform-origin";function Nj(e,t,n){var i=Ev({},e.shape);Ev(i,t),e.buildPath(n,i);var o=new fj;return o.reset(h_(e)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function Pj(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[Lj]=n+"px "+i+"px")}var Rj={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zj(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Vj(e){return Uv(e)?Oj[e]?"cubic-bezier("+Oj[e]+")":Ib(e)?e:"":""}function Bj(e,t,n,i){var o=e.animators,r=o.length,a=[];if(e instanceof yA){var s=function(e,t,n){var i,o,r=e.shape.paths,a={};if(Rv(r,(function(e){var t=Aj(n.zrId);t.animation=!0,Bj(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,l=jv(r),c=l.length;if(c){var u=r[o=l[c-1]];for(var p in u){var d=u[p];a[p]=a[p]||{d:""},a[p].d+=d.d||""}for(var h in s){var f=s[h].animation;f.indexOf(o)>=0&&(i=f)}}})),i){t.d=!1;var s=zj(a,n);return i.replace(o,s)}}(e,t,n);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},c=0;c<r;c++){var u=o[c],p=[u.getMaxTime()/1e3+"s"],d=Vj(u.getClip().easing),h=u.getDelay();d?p.push(d):p.push("linear"),h&&p.push(h/1e3+"s"),u.getLoop()&&p.push("infinite");var f=p.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(u)}function g(o){var r,a=o[1],s=a.length,l={},c={},u={},p="animation-timing-function";function d(e,t,n){for(var i=e.getTracks(),o=e.getMaxTime(),r=0;r<i.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],d=Math.round(u.time/o*100)+"%",h=Vj(u.easing),f=u.rawValue;(Uv(f)||qv(f))&&(t[d]=t[d]||{},t[d][l]=u.rawValue,h&&(t[d][p]=h))}}}}for(var h=0;h<s;h++){(S=(w=a[h]).targetName)?"shape"===S&&d(w,c):!i&&d(w,l)}for(var f in l){var g={};uw(g,e),Ev(g,l[f]);var m=f_(g),v=l[f][p];u[f]=m?{transform:m}:{},Pj(u[f],g),v&&(u[f][p]=v)}var y=!0;for(var f in c){u[f]=u[f]||{};var x=!r;v=c[f][p];x&&(r=new lM);var b=r.len();r.reset(),u[f].d=Nj(e,c[f],r);var _=r.len();if(!x&&b!==_){y=!1;break}v&&(u[f][p]=v)}if(!y)for(var f in u)delete u[f].d;if(!i)for(h=0;h<s;h++){var w,S;"style"===(S=(w=a[h]).targetName)&&d(w,u,(function(e){return Rj[e]}))}var C,M=jv(u),T=!0;for(h=1;h<M.length;h++){var I=M[h-1],A=M[h];if(u[I][Lj]!==u[A][Lj]){T=!1;break}C=u[I][Lj]}if(T&&C){for(var f in u)u[f][Lj]&&delete u[f][Lj];t[Lj]=C}if(Bv(M,(function(e){return jv(u[e]).length>0})).length)return zj(u,n)+" "+o[0]+" both"}for(var m in l){(s=g(l[m]))&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+Ej();n.cssNodes["."+v]={animation:a.join(",")},t.class=v}}function jj(e,t,n,i){var o=JSON.stringify(e),r=n.cssStyleCache[o];r||(r=n.zrId+"-cls-"+Ej(),n.cssStyleCache[o]=r,n.cssNodes["."+r+(i?":hover":"")]=e),t.class=t.class?t.class+" "+r:r}var Fj=Math.round;function Gj(e){return e&&Uv(e.src)}function Wj(e){return e&&Hv(e.toDataURL)}function Hj(e,t,n,i){xj((function(o,r){var a="fill"===o||"stroke"===o;a&&p_(r)?tF(t,e,o,i):a&&l_(r)?nF(n,e,o,i):e[o]=a&&"none"===r?"transparent":r}),t,n,!1),function(e,t,n){var i=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(i)){var o=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),r=n.shadowCache,a=r[o];if(!a){var s=e.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,p=i.shadowOffsetY||0,d=i.shadowBlur,h=t_(i.shadowColor),f=h.opacity,g=h.color,m=d/2/l+" "+d/2/c;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Tj("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Tj("feDropShadow","",{dx:u/l,dy:p/c,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),r[o]=a}t.filter=d_(a)}}(n,e,i)}function Uj(e,t){var n=function(e){if("function"==typeof Nw)return Nw(e)}(t);n&&(n.each((function(t,n){null!=t&&(e[(Cj+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[Cj+"silent"]="true"))}function Yj(e){return i_(e[0]-1)&&i_(e[1])&&i_(e[2])&&i_(e[3]-1)}function qj(e,t,n){if(t&&(!function(e){return i_(e[4])&&i_(e[5])}(t)||!Yj(t))){var i=n?10:1e4;e.transform=Yj(t)?"translate("+Fj(t[4]*i)/i+" "+Fj(t[5]*i)/i+")":function(e){return"matrix("+o_(e[0])+","+o_(e[1])+","+o_(e[2])+","+o_(e[3])+","+r_(e[4])+","+r_(e[5])+")"}(t)}}function Xj(e,t,n){for(var i=e.points,o=[],r=0;r<i.length;r++)o.push(Fj(i[r][0]*n)/n),o.push(Fj(i[r][1]*n)/n);t.points=o.join(" ")}function $j(e){return!e.smooth}var Zj,Kj,Jj={circle:[(Zj=["cx","cy","r"],Kj=zv(Zj,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var i=0;i<Kj.length;i++){var o=Kj[i],r=e[o[0]];null!=r&&(t[o[1]]=Fj(r*n)/n)}})],polyline:[Xj,$j],polygon:[Xj,$j]};function Qj(e,t){var n=e.style,i=e.shape,o=Jj[e.type],r={},a=t.animation,s="path",l=e.style.strokePercent,c=t.compress&&h_(e)||4;if(!o||t.willUpdate||o[1]&&!o[1](i)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var u=!e.path||e.shapeChanged();e.path||e.createPathProxy();var p=e.path;u&&(p.beginPath(),e.buildPath(p,e.shape),e.pathUpdated());var d=p.getVersion(),h=e,f=h.__svgPathBuilder;h.__svgPathVersion===d&&f&&l===h.__svgPathStrokePercent||(f||(f=h.__svgPathBuilder=new fj),f.reset(c),p.rebuildPath(f,l),f.generateStr(),h.__svgPathVersion=d,h.__svgPathStrokePercent=l),r.d=f.getStr()}else{s=e.type;var g=Math.pow(10,c);o[0](i,r,g)}return qj(r,e.transform),Hj(r,n,e,t),Uj(r,e),t.animation&&Bj(e,r,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent())jj(c={"pointer-events":"none"},t,n,!0);else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var r=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf("select")>=0&&a||r;s&&(o=Qb(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&e.transform?e.transform[0]:1);var c={cursor:"pointer"};o&&(c.fill=o),i.stroke&&(c.stroke=i.stroke),l&&(c["stroke-width"]=l),jj(c,t,n,!0)}}(e,r,t),Tj(s,e.id+"",r)}function eF(e,t){return e instanceof kM?Qj(e,t):e instanceof zM?function(e,t){var n=e.style,i=n.image;if(i&&!Uv(i)&&(Gj(i)?i=i.src:Wj(i)&&(i=i.toDataURL())),i){var o=n.x||0,r=n.y||0,a={href:i,width:n.width,height:n.height};return o&&(a.x=o),r&&(a.y=r),qj(a,e.transform),Hj(a,n,e,t),Uj(a,e),t.animation&&Bj(e,a,t),Tj("image",e.id+"",a)}}(e,t):e instanceof LM?function(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var o=n.font||cv,r=n.x||0,a=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(n.y||0,vw(o),n.textBaseline),s={"dominant-baseline":"central","text-anchor":a_[n.textAlign]||n.textAlign};if(eT(n)){var l="",c=n.fontStyle,u=JM(n.fontSize);if(!parseFloat(u))return;var p=n.fontFamily||lv,d=n.fontWeight;l+="font-size:"+u+";font-family:"+p+";",c&&"normal"!==c&&(l+="font-style:"+c+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+o;return i.match(/\s/)&&(s["xml:space"]="preserve"),r&&(s.x=r),a&&(s.y=a),qj(s,e.transform),Hj(s,n,e,t),Uj(s,e),t.animation&&Bj(e,s,t),Tj("text",e.id+"",s,void 0,i)}}(e,t):void 0}function tF(e,t,n,i){var o,r=e[n],a={gradientUnits:r.global?"userSpaceOnUse":"objectBoundingBox"};if(c_(r))o="linearGradient",a.x1=r.x,a.y1=r.y,a.x2=r.x2,a.y2=r.y2;else{if(!u_(r))return void("production"!==process.env.NODE_ENV&&Iv("Illegal gradient type."));o="radialGradient",a.cx=ny(r.x,.5),a.cy=ny(r.y,.5),a.r=ny(r.r,.5)}for(var s=r.colorStops,l=[],c=0,u=s.length;c<u;++c){var p=100*r_(s[c].offset)+"%",d=t_(s[c].color),h=d.color,f=d.opacity,g={offset:p};g["stop-color"]=h,f<1&&(g["stop-opacity"]=f),l.push(Tj("stop",c+"",g))}var m=Ij(Tj(o,"",a,l)),v=i.gradientCache,y=v[m];y||(y=i.zrId+"-g"+i.gradientIdx++,v[m]=y,a.id=y,i.defs[y]=Tj(o,y,a,l)),t[n]=d_(y)}function nF(e,t,n,i){var o,r=e.style[n],a=e.getBoundingRect(),s={},l=r.repeat,c="no-repeat"===l,u="repeat-x"===l,p="repeat-y"===l;if(s_(r)){var d=r.imageWidth,h=r.imageHeight,f=void 0,g=r.image;if(Uv(g)?f=g:Gj(g)?f=g.src:Wj(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";ay(d,m),ay(h,m)}else if(null==d||null==h){var v=function(e,t){if(e){var n=e.elm,i=d||t.width,o=h||t.height;"pattern"===e.tag&&(u?(o=1,i/=a.width):p&&(i=1,o/=a.height)),e.attrs.width=i,e.attrs.height=o,n&&(n.setAttribute("width",i),n.setAttribute("height",o))}},y=rC(f,null,e,(function(e){c||v(w,e),v(o,e)}));y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}o=Tj("image","img",{href:f,width:d,height:h}),s.width=d,s.height=h}else r.svgElement&&(o=Av(r.svgElement),s.width=r.svgWidth,s.height=r.svgHeight);if(o){var x,b;c?x=b=1:u?(b=1,x=s.width/a.width):p?(x=1,b=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==b||isNaN(b)||(s.height=b);var _=f_(r);_&&(s.patternTransform=_);var w=Tj("pattern","",s,[o]),S=Ij(w),C=i.patternCache,M=C[S];M||(M=i.zrId+"-p"+i.patternIdx++,C[S]=M,s.id=M,w=i.defs[M]=Tj("pattern",M,s,[o])),t[n]=d_(M)}}function iF(e,t,n){var i=n.clipPathCache,o=n.defs,r=i[e.id];if(!r){var a={id:r=n.zrId+"-c"+n.clipPathIdx++};i[e.id]=r,o[r]=Tj("clipPath",r,a,[Qj(e,n)])}t["clip-path"]=d_(r)}function oF(e){return document.createTextNode(e)}function rF(e,t,n){e.insertBefore(t,n)}function aF(e,t){e.removeChild(t)}function sF(e,t){e.appendChild(t)}function lF(e){return e.parentNode}function cF(e){return e.nextSibling}function uF(e,t){e.textContent=t}var pF=58,dF=120,hF=Tj("","");function fF(e){return void 0===e}function gF(e){return void 0!==e}function mF(e,t,n){for(var i={},o=t;o<=n;++o){var r=e[o].key;void 0!==r&&("production"!==process.env.NODE_ENV&&null!=i[r]&&console.error("Duplicate key "+r),i[r]=o)}return i}function vF(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function yF(e){var t,n=e.children,i=e.tag;if(gF(i)){var o=e.elm=Mj(i);if(_F(hF,e),Wv(n))for(t=0;t<n.length;++t){var r=n[t];null!=r&&sF(o,yF(r))}else gF(e.text)&&!Xv(e.text)&&sF(o,oF(e.text))}else e.elm=oF(e.text);return e.elm}function xF(e,t,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&rF(e,yF(r),t)}}function bF(e,t,n,i){for(;n<=i;++n){var o=t[n];if(null!=o)if(gF(o.tag))aF(lF(o.elm),o.elm);else aF(e,o.elm)}}function _F(e,t){var n,i=t.elm,o=e&&e.attrs||{},r=t.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==dF?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(wj,n,a):n.charCodeAt(3)===pF?i.setAttributeNS(Sj,n,a):n.charCodeAt(5)===pF?i.setAttributeNS(_j,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function wF(e,t){var n=t.elm=e.elm,i=e.children,o=t.children;e!==t&&(_F(e,t),fF(t.text)?gF(i)&&gF(o)?i!==o&&function(e,t,n){for(var i,o,r,a=0,s=0,l=t.length-1,c=t[0],u=t[l],p=n.length-1,d=n[0],h=n[p];a<=l&&s<=p;)null==c?c=t[++a]:null==u?u=t[--l]:null==d?d=n[++s]:null==h?h=n[--p]:vF(c,d)?(wF(c,d),c=t[++a],d=n[++s]):vF(u,h)?(wF(u,h),u=t[--l],h=n[--p]):vF(c,h)?(wF(c,h),rF(e,c.elm,cF(u.elm)),c=t[++a],h=n[--p]):vF(u,d)?(wF(u,d),rF(e,u.elm,c.elm),u=t[--l],d=n[++s]):(fF(i)&&(i=mF(t,a,l)),fF(o=i[d.key])||(r=t[o]).tag!==d.tag?rF(e,yF(d),c.elm):(wF(r,d),t[o]=void 0,rF(e,r.elm,c.elm)),d=n[++s]);(a<=l||s<=p)&&(a>l?xF(e,null==n[p+1]?null:n[p+1].elm,n,s,p):bF(e,t,a,l))}(n,i,o):gF(o)?(gF(e.text)&&uF(n,""),xF(n,null,o,0,o.length-1)):gF(i)?bF(n,i,0,i.length-1):gF(e.text)&&uF(n,""):e.text!==t.text&&(gF(i)&&bF(n,i,0,i.length-1),uF(n,t.text)))}var SF=0,CF=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=MF("refreshHover"),this.configLayer=MF("configLayer"),this.storage=t,this._opts=n=Ev({},n),this.root=e,this._id="zr"+SF++,this._oldVNode=Dj(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=Mj("svg");_F(null,this._oldVNode),i.appendChild(o),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(vF(e,t))wF(e,t);else{var n=e.elm,i=lF(n);yF(t),null!==i&&(rF(i,t.elm,cF(n)),bF(i,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return eF(e,Aj(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,o=Aj(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var r=[],a=this._bgVNode=function(e,t,n,i){var o;if(n&&"none"!==n)if(o=Tj("rect","bg",{width:e,height:t,x:"0",y:"0"}),p_(n))tF({fill:n},o.attrs,"fill",i);else if(l_(n))nF({style:{fill:n},dirty:xy,getBoundingRect:function(){return{width:e,height:t}}},o.attrs,"fill",i);else{var r=t_(n),a=r.color,s=r.opacity;o.attrs.fill=a,s<1&&(o.attrs["fill-opacity"]=s)}return o}(n,i,this._backgroundColor,o);a&&r.push(a);var s=e.compress?null:this._mainVNode=Tj("g","main",{},[]);this._paintList(t,o,s?s.children:r),s&&r.push(s);var l=zv(jv(o.defs),(function(e){return o.defs[e]}));if(l.length&&r.push(Tj("defs","defs",{},l)),e.animation){var c=function(e,t,n){var i=(n=n||{}).newline?"\n":"",o=" {"+i,r=i+"}",a=zv(jv(e),(function(t){return t+o+zv(jv(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+r})).join(i),s=zv(jv(t),(function(e){return"@keyframes "+e+o+zv(jv(t[e]),(function(n){return n+o+zv(jv(t[e][n]),(function(i){var o=t[e][n][i];return"d"===i&&(o='path("'+o+'")'),i+":"+o+";"})).join(i)+r})).join(i)+r})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(o.cssNodes,o.cssAnims,{newline:!0});if(c){var u=Tj("style","stl",{},[],c);r.push(u)}}return Dj(n,i,r,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Ij(this.renderToVNode({animation:ny(e.cssAnimation,!0),emphasis:ny(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ny(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,o,r=e.length,a=[],s=0,l=0,c=0;c<r;c++){var u=e[c];if(!u.invisible){var p=u.__clipPaths,d=p&&p.length||0,h=o&&o.length||0,f=void 0;for(f=Math.max(d-1,h-1);f>=0&&(!p||!o||p[f]!==o[f]);f--);for(var g=h-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<d;m++){var v={};iF(p[m],v,t);var y=Tj("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}o=p;var x=eF(u,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,o=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&o&&(o.style.display="none",e=bP(i,0,n),t=bP(i,1,n),o.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,o){var r=o.style;r.width=e+"px",r.height=t+"px"}if(l_(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=g_(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function MF(e){return function(){"production"!==process.env.NODE_ENV&&Iv('In SVG mode painter not support method "'+e+'"')}}var TF=CF;function IF(e,t,n){var i=hv.createCanvas(),o=t.getWidth(),r=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=o+"px",a.height=r+"px",i.setAttribute("data-zr-dom-id",e)),i.width=o*n,i.height=r*n,i}var AF=function(e){function t(t,n,i){var o,r=e.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,i=i||J_,"string"==typeof t?o=IF(t,n,i):Xv(t)&&(t=(o=t).id),r.id=t,r.dom=o;var a=o.style;return a&&(vy(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=n,r.dpr=i,r}return S(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=IF("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,r=[],a=this.maxRepaintRectCount,s=!1,l=new Ax(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===r.length){(t=new Ax(0,0,0,0)).copy(e),r.push(t)}else{for(var t,n=!1,i=1/0,o=0,c=0;c<r.length;++c){var u=r[c];if(u.intersect(e)){var p=new Ax(0,0,0,0);p.copy(u),p.union(e),r[c]=p,n=!0;break}if(s){l.copy(e),l.union(u);var d=e.width*e.height,h=u.width*u.height,f=l.width*l.height-d-h;f<i&&(i=f,o=c)}}if(s&&(r[o].union(e),n=!0),!n)(t=new Ax(0,0,0,0)).copy(e),r.push(t);s||(s=r.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){if(h=e[u]){var p=h.shouldBePainted(n,i,!0,!0);(f=h.__isRendered&&(h.__dirty&Xx||!p)?h.getPrevPaintRect():null)&&c(f);var d=p&&(h.__dirty&Xx||!h.__isRendered)?h.getPaintRect():null;d&&c(d)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h,f;p=(h=t[u])&&h.shouldBePainted(n,i,!0,!0);if(h&&(!p||!h.__zr)&&h.__isRendered)(f=h.getPrevPaintRect())&&c(f)}do{o=!1;for(u=0;u<r.length;)if(r[u].isZero())r.splice(u,1);else{for(var g=u+1;g<r.length;)r[u].intersect(r[g])?(o=!0,r[u].union(r[g]),r.splice(g,1)):g++;u++}}while(o);return this._paintRects=r,r},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),i.width=e*n,i.height=t*n,r&&(r.width=e*n,r.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,o=this.ctx,r=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,c=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/c,a/c));var p=this.domBack;function d(e,n,i,r){if(o.clearRect(e,n,i,r),t&&"transparent"!==t){var a=void 0;if(Jv(t))a=(t.global||t.__width===i&&t.__height===r)&&t.__canvasGradient||yP(o,t,{x:0,y:0,width:i,height:r}),t.__canvasGradient=a,t.__width=i,t.__height=r;else null!=t.image&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,a=AP(o,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}}));o.save(),o.fillStyle=a||t,o.fillRect(e,n,i,r),o.restore()}s&&(o.save(),o.globalAlpha=l,o.drawImage(p,e,n,i,r),o.restore())}!n||s?d(0,0,r,a):n.length&&Rv(n,(function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)}))},t}(jy),DF=AF,kF=1e5,EF=314159,OF=.01;var LF=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=Ev({},n||{}),this.dpr=n.devicePixelRatio||J_,this._singleCanvas=o,this.root=e,e.style&&(vy(e),e.innerHTML=""),this.storage=t;var r=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(o){var s=e,l=s.width,c=s.height;null!=n.width&&(l=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=c*this.dpr,this._width=l,this._height=c;var u=new DF(s,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=EF,r.push(EF),this._domRoot=e}else{this._width=bP(e,0,n),this._height=bP(e,1,n);var p=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(p)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var o=0;o<i.length;o++){var r=i[o],a=this._layers[r];if(!a.__builtin__&&a.refresh){var s=0===o?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<t;r++){var a=e[r];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(kF)),i||(i=n.ctx).save(),FP(i,a,o,r===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(kF)},e.prototype.paintOne=function(e,t){jP(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,t,n),r=o.finished,a=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),r)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;eb((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(EF).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,o=[],r=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&o.push(l)}for(var c=!0,u=!1,p=function(a){var s,l=o[a],p=l.ctx,h=r&&l.createRepaintRects(e,t,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,h);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,h)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var o=e[s];if(o.__inHover&&(u=!0),i._doPaintEl(o,l,r,t,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&p.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var b=d.dpr,_=0;_<h.length;++_){var w=h[_];p.save(),p.beginPath(),p.rect(w.x*b,w.y*b,w.width*b,w.height*b),p.clip(),x(w),p.restore()}else p.save(),x(),p.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},d=this,h=0;h<o.length;h++)p(h);return av.wxa&&Rv(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,i,o,r){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(FP(a,e,o,r),e.setPrevPaintRect(s))}else FP(a,e,o,r)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=EF);var n=this._layers[e];return n||((n=new DF("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Dv(n,this._layerConfig[e],!0):this._layerConfig[e-OF]&&Dv(n,this._layerConfig[e-OF],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,o=i.length,r=this._domRoot,a=null,s=-1;if(n[e])"production"!==process.env.NODE_ENV&&Iv("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(o>0&&e>i[0]){for(s=0;s<o-1&&!(i[s]<e&&i[s+1]>e);s++);a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?r.insertBefore(t.dom,l.nextSibling):r.appendChild(t.dom)}else r.firstChild?r.insertBefore(t.dom,r.firstChild):r.appendChild(t.dom);t.painter||(t.painter=this)}else"production"!==process.env.NODE_ENV&&Iv("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];e.call(t,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&e.call(t,r,o)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||e.call(t,r,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){r&&(r.__endIndex!==e&&(r.__dirty=!0),r.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,o,r=null,a=0;for(o=0;o<e.length;o++){var s,l=(s=e[o]).zlevel,c=void 0;i!==l&&(i=l,a=0),s.incremental?((c=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(l+(a>0?OF:0),this._needsManuallyCompositing),c.__builtin__||Iv("ZLevel "+l+" has been used by unkown layer "+c.id),c!==r&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,t(o),r=c),s.__dirty&Xx&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Rv(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Dv(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+OF)Dv(this._layers[o],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(Lv(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,o=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=bP(o,0,i),t=bP(o,1,i),n.style.display="",this._width!==e||t!==this._height){for(var r in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(EF).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new DF("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,o=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,o):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var c=a[s];FP(n,c,r,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),NF=LF;var PF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return S(t,e),t.prototype.getInitialData=function(e){if("production"!==process.env.NODE_ENV){var t=e.coordinateSystem;if("polar"!==t&&"cartesian2d"!==t)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Bz(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Ew,n=fP("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,a=.8*e.itemHeight,s=fP(r,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?o:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),r.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(XL),RF=PF;function zF(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=zO(e,t,n[0]);return null!=o?o+"":null}if(i){for(var r=[],a=0;a<n.length;a++)r.push(zO(e,t,n[a]));return r.join(" ")}}function VF(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Wv(t))return t+"";for(var i=[],o=0;o<n.length;o++){var r=e.getDimensionIndex(n[o]);r>=0&&i.push(t[r])}return i.join(" ")}var BF=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.updateData(t,n,i,o),r}return S(t,e),t.prototype._createSymbol=function(e,t,n,i,o){this.removeAll();var r=fP(e,-1,-1,2,2,null,o);r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=jF,this._symbolType=e,this.add(r)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){FT(this.childAt(0))},t.prototype.downplay=function(){GT(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,o){this.silent=!1;var r=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=r!==this._symbolType,c=o&&o.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,e,n,s,u)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):RA(d,p,a,n),GA(d)}if(this._updateCommon(e,n,s,i,o),l){var d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,zA(d,p,a,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,c,u,p,d,h,f=this.childAt(0),g=e.hostModel;if(i&&(r=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,h=i.cursorStyle,u=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(t),v=m.getModel("emphasis");r=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),p=bD(m),d=v.getShallow("scale"),h=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=mP(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),h&&f.attr("cursor",h);var b=e.getItemVisual(t,"style"),_=b.fill;if(f instanceof zM){var w=f.style;f.useStyle(Ev({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(Ev({},b)):f.useStyle(b),f.style.decal=null,f.setColor(_,o&&o.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=f.z2,f.z2+=S):null!=C&&(f.z2=C,this._z2=null);var M=o&&o.useNameLabel;xD(f,p,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return M?e.getName(t):zF(e,t)},inheritColor:_,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=r,f.ensureState("select").style=s,f.ensureState("blur").style=a;var I=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*I,T.scaleY=this._sizeY*I,this.setSymbolScale(1),tI(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),o=lT(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&BA(a,{style:{opacity:0}},t,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();BA(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:r})},t.getSymbolSize=function(e,t){return gP(e.getItemVisual(t,"symbolSize"))},t}(Ew);function jF(e,t){this.parent.drift(e,t)}function FF(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function GF(e){return null==e||Xv(e)||(e={isIgnore:e}),e||{}}function WF(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:bD(t),cursorStyle:t.get("cursor")}}var HF=function(){function e(e){this.group=new Ew,this._SymbolCtor=e||BF}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=GF(t);var n=this.group,i=e.hostModel,o=this._data,r=this._SymbolCtor,a=t.disableAnimation,s=WF(e),l={disableAnimation:a},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};o||n.removeAll(),e.diff(o).add((function(i){var o=c(i);if(FF(e,o,i,t)){var a=new r(e,i,s,l);a.setPosition(o),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,p){var d=o.getItemGraphicEl(p),h=c(u);if(FF(e,h,u,t)){var f=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new r(e,u,s,l)).setPosition(h);else{d.updateData(e,u,s,l);var m={x:h[0],y:h[1]};a?d.attr(m):RA(d,m,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=WF(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=GF(n);for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(FF(t,r,o,n)){var a=new this._SymbolCtor(t,o,this._seriesScope);a.traverse(i),a.setPosition(r),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){fD(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();function UF(e,t,n){var i=e.getBaseAxis(),o=e.getOtherAxis(i),r=function(e,t){var n=0,i=e.scale.getExtent();"start"===t?n=i[0]:"end"===t?n=i[1]:qv(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(o,n),a=i.dim,s=o.dim,l=t.mapDimension(s),c=t.mapDimension(a),u="x"===s||"radius"===s?1:0,p=zv(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,h=t.getCalculationInfo("stackResultDimension");return zz(t,p[0])&&(d=!0,p[0]=h),zz(t,p[1])&&(d=!0,p[1]=h),{dataDimsForPoint:p,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function YF(e,t,n,i){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=e.valueStart);var r=e.baseDataOffset,a=[];return a[r]=n.get(e.baseDim,i),a[1-r]=o,t.dataToPoint(a)}var qF=Math.min,XF=Math.max;function $F(e,t){return isNaN(e)||isNaN(t)}function ZF(e,t,n,i,o,r,a,s,l){for(var c,u,p,d,h,f,g=n,m=0;m<i;m++){var v=t[2*g],y=t[2*g+1];if(g>=o||g<0)break;if($F(v,y)){if(l){g+=r;continue}break}if(g===n)e[r>0?"moveTo":"lineTo"](v,y),p=v,d=y;else{var x=v-c,b=y-u;if(x*x+b*b<.5){g+=r;continue}if(a>0){for(var _=g+r,w=t[2*_],S=t[2*_+1];w===v&&S===y&&m<i;)m++,g+=r,w=t[2*(_+=r)],S=t[2*_+1],x=(v=t[2*g])-c,b=(y=t[2*g+1])-u;var C=m+1;if(l)for(;$F(w,S)&&C<i;)C++,w=t[2*(_+=r)],S=t[2*_+1];var M=.5,T=0,I=0,A=void 0,D=void 0;if(C>=i||$F(w,S))h=v,f=y;else{T=w-c,I=S-u;var k=v-c,E=w-v,O=y-u,L=S-y,N=void 0,P=void 0;if("x"===s){var R=T>0?1:-1;h=v-R*(N=Math.abs(k))*a,f=y,A=v+R*(P=Math.abs(E))*a,D=y}else if("y"===s){var z=I>0?1:-1;h=v,f=y-z*(N=Math.abs(O))*a,A=v,D=y+z*(P=Math.abs(L))*a}else N=Math.sqrt(k*k+O*O),h=v-T*a*(1-(M=(P=Math.sqrt(E*E+L*L))/(P+N))),f=y-I*a*(1-M),D=y+I*a*M,A=qF(A=v+T*a*M,XF(w,v)),D=qF(D,XF(S,y)),A=XF(A,qF(w,v)),f=y-(I=(D=XF(D,qF(S,y)))-y)*N/P,h=qF(h=v-(T=A-v)*N/P,XF(c,v)),f=qF(f,XF(u,y)),A=v+(T=v-(h=XF(h,qF(c,v))))*P/N,D=y+(I=y-(f=XF(f,qF(u,y))))*P/N}e.bezierCurveTo(p,d,h,f,v,y),p=A,d=D}else e.lineTo(v,y)}c=v,u=y,g+=r}return m}var KF=function(){this.smooth=0,this.smoothConstraint=!0},JF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KF},t.prototype.buildPath=function(e,t){var n=t.points,i=0,o=n.length/2;if(t.connectNulls){for(;o>0&&$F(n[2*o-2],n[2*o-1]);o--);for(;i<o&&$F(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=ZF(e,n,i,o,o,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=lM.CMD,a="x"===t,s=[],l=0;l<o.length;){var c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=void 0,g=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:if(c=o[l++],u=o[l++],(g=a?(e-n)/(c-n):(e-i)/(u-i))<=1&&g>=0){var m=a?(u-i)*g+i:(c-n)*g+n;return a?[e,m]:[m,e]}n=c,i=u;break;case r.C:c=o[l++],u=o[l++],p=o[l++],d=o[l++],h=o[l++],f=o[l++];var v=a?gb(n,c,p,h,e,s):gb(i,u,d,f,e,s);if(v>0)for(var y=0;y<v;y++){var x=s[y];if(x<=1&&x>=0){m=a?hb(i,u,d,f,x):hb(n,c,p,h,x);return a?[e,m]:[m,e]}}n=h,i=f}}},t}(kM),QF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t}(KF),eG=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return S(t,e),t.prototype.getDefaultShape=function(){return new QF},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,o=0,r=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;r>0&&$F(n[2*r-2],n[2*r-1]);r--);for(;o<r&&$F(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=ZF(e,n,o,r,r,1,t.smooth,a,t.connectNulls);ZF(e,i,o+s-1,s,r,-1,t.stackedOnSmooth,a,t.connectNulls),o+=s+1,e.closePath()}},t}(kM);function tG(e,t,n,i,o){var r=e.getArea(),a=r.x,s=r.y,l=r.width,c=r.height,u=n.get(["lineStyle","width"])||2;a-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var p=new UM({shape:{x:a,y:s,width:l,height:c}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),f=d.inverse;h?(f&&(p.shape.x+=l),p.shape.width=0):(f||(p.shape.y+=c),p.shape.height=0);var g=Hv(o)?function(e){o(e,p)}:null;zA(p,{shape:{width:l,height:c,x:a,y:s}},n,null,i,g)}return p}function nG(e,t,n){var i=e.getArea(),o=Fw(i.r0,1),r=Fw(i.r,1),a=new KI({shape:{cx:Fw(e.cx,1),cy:Fw(e.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,zA(a,{shape:{endAngle:i.endAngle,r:r}},n));return a}function iG(e,t,n,i,o){return e?"polar"===e.type?nG(e,t,n):"cartesian2d"===e.type?tG(e,t,n,i,o):null:null}function oG(e,t){return e.type===t}function rG(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function aG(e){for(var t=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<e.length;){var a=e[r++],s=e[r++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[t,n],[i,o]]}function sG(e,t){var n=aG(e),i=n[0],o=n[1],r=aG(t),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function lG(e){return qv(e)?e:e?.5:0}function cG(e,t,n,i){var o=t.getBaseAxis(),r="x"===o.dim||"radius"===o.dim?0:1,a=[],s=0,l=[],c=[],u=[],p=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||p.push(e[s],e[s+1]);e=p}for(s=0;s<e.length-2;s+=2)switch(u[0]=e[s+2],u[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),n){case"end":l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1]);break;case"middle":var d=(c[r]+u[r])/2,h=[];l[r]=h[r]=d,l[1-r]=c[1-r],h[1-r]=u[1-r],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function uG(e,t){var n,i,o=[],r=e.length;function a(e,t,n){var i=e.coord;return{coord:n,color:function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),o=Math.floor(i),r=Math.ceil(i),a=Hb(t[o]),s=Hb(t[r]),l=i-o,c=Zb([Lb(Vb(a[0],s[0],l)),Lb(Vb(a[1],s[1],l)),Lb(Vb(a[2],s[2],l)),Nb(Vb(a[3],s[3],l))],"rgba");return n?{color:c,leftIndex:o,rightIndex:r,value:i}:c}}((n-i)/(t.coord-i),[e.color,t.color])}}for(var s=0;s<r;s++){var l=e[s],c=l.coord;if(c<0)n=l;else{if(c>t){i?o.push(a(i,l,t)):n&&o.push(a(n,l,0),a(n,l,t));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}function pG(e,t,n){var i=e.get("showAllSymbol"),o="auto"===i;if(!i||o){var r=n.getAxesByScale("ordinal")[0];if(r&&(!o||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var o=t.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*BF.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(r,t))){var a=t.mapDimension(r.dim),s={};return Rv(r.getViewLabels(),(function(e){var t=r.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function dG(e,t){return isNaN(e)||isNaN(t)}function hG(e,t){return[e[2*t],e[2*t+1]]}function fG(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<vT.length;t++)if(e.get([vT[t],"endLabel","show"]))return!0;return!1}function gG(e,t,n,i){if(oG(t,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=fG(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,r,o,t)}:null,c=t.getBaseAxis().isHorizontal(),u=tG(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var p=u.shape,d=Math.max(p.width,p.height);c?(p.y-=d,p.height+=2*d):(p.x-=d,p.width+=2*d)}return l&&l(1,u),u}return"production"!==process.env.NODE_ENV&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),nG(t,n,i)}var mG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.init=function(){var e=new Ew,t=new HF;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,o=e.coordinateSystem,r=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=a.getLayout("points")||[],u="polar"===o.type,p=this._coordSys,d=this._symbolDraw,h=this._polyline,f=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=UF(o,a,y),b=v&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),o=aV(2*i),r=0;r<i;r++){var a=YF(n,e,t,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,x),_=e.get("showSymbol"),w=e.get("connectNulls"),S=_&&!u&&pG(e,a,o),C=this._data;C&&C.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),C.setItemGraphicEl(t,null))})),_||d.remove(),r.add(g);var M,T=!u&&e.get("step");o&&o.getArea&&e.get("clip",!0)&&(null!=(M=o.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=function(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count())if("cartesian2d"===t.type){for(var o,r,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if("x"===(o=s&&s.coordDim)||"y"===o){r=i[a];break}}if(r){var l=t.getAxis(o),c=zv(r.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,p=r.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),p.reverse());var d=uG(c,"x"===o?n.getWidth():n.getHeight()),h=d.length;if(!h&&u)return c[0].coord<0?p[1]?p[1]:c[u-1].color:p[0]?p[0]:c[0].color;var f=d[0].coord-10,g=d[h-1].coord+10,m=g-f;if(m<.001)return"transparent";Rv(d,(function(e){e.offset=(e.coord-f)/m})),d.push({offset:h?d[h-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:p[0]||"transparent"});var v=new _A(0,0,0,0,d,!0);return v[o]=f,v[o+"2"]=g,v}"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style only support x or y dimension.")}else"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style is only supported on cartesian2d.")}(a,o,n)||a.getVisual("style")[a.getVisual("drawType")];if(h&&p.type===o.type&&T===this._step){v&&!f?f=this._newPolygon(c,b):f&&!v&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,o,jk(I));var A=g.getClipPath();if(A)zA(A,{shape:gG(this,o,!1,e).shape},e);else g.setClipPath(gG(this,o,!0,e));_&&d.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),rG(this._stackedOnPoints,b)&&rG(this._points,c)||(m?this._doUpdateAnimation(a,b,o,n,T,y,w):(T&&(c=cG(c,o,T,w),b&&(b=cG(b,o,T,w))),h.setShape({points:c}),f&&f.setShape({points:c,stackedOnPoints:b})))}else _&&d.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,o,M),T&&(c=cG(c,o,T,w),b&&(b=cG(b,o,T,w))),h=this._newPolyline(c),v?f=this._newPolygon(c,b):f&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,o,jk(I)),g.setClipPath(gG(this,o,!0,e));var D=e.getModel("emphasis"),k=D.get("focus"),E=D.get("blurScope"),O=D.get("disabled");(h.useStyle(Ov(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),rI(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1);lT(h).seriesIndex=e.seriesIndex,tI(h,k,E,O);var L=lG(e.get("smooth")),N=e.get("smoothMonotone");if(h.setShape({smooth:L,smoothMonotone:N,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Ov(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=lG(P.get("smooth"))),f.setShape({smooth:L,stackedOnSmooth:R,smoothMonotone:N,connectNulls:w}),rI(f,e,"areaStyle"),lT(f).seriesIndex=e.seriesIndex,tI(f,k,E,O)}var z=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=T,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,h),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){lT(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var o=e.getData(),r=LS(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],c=a[2*r+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,p=e.get("z")||0;(s=new BF(o,r)).x=l,s.y=c,s.setZ(u,p);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=p,d.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else aN.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var o=e.getData(),r=LS(o,i);if(this._changePolyState("normal"),null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else aN.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;RT(this._polyline,e),t&&RT(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new JF({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new eG({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,o,r=t.getBaseAxis(),a=r.inverse;"cartesian2d"===t.type?(i=r.isHorizontal(),o=!1):"polar"===t.type&&(i="angle"===r.dim,o=!0);var s=e.hostModel,l=s.get("animationDuration");Hv(l)&&(l=l(null));var c=s.get("animationDelay")||0,u=Hv(c)?c(null):c;e.eachItemGraphicEl((function(e,r){var s=e;if(s){var p=[e.x,e.y],d=void 0,h=void 0,f=void 0;if(n)if(o){var g=n,m=t.pointToCoord(p);i?(d=g.startAngle,h=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,h=g.r,f=m[0])}else{var v=n;i?(d=v.x,h=v.x+v.width,f=e.x):(d=v.y+v.height,h=v.y,f=e.y)}var y=h===d?0:(f-d)/(h-d);a&&(y=1-y);var x=Hv(c)?c(r):l*y+u,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(fG(e)){var o=e.getData(),r=this._polyline,a=o.getLayout("points");if(!a)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new sT({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&dG(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(xD(r,bD(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?VF(o,n):zF(o,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),o=n.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:e.get("align")||r,verticalAlign:e.get("verticalAlign")||a}}}(i,t)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,o,r,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,p=u.get("connectNulls"),d=r.get("precision"),h=r.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?h:0)*(m?-1:1),b=(g?0:-h)*(m?-1:1),_=g?"x":"y",w=function(e,t,n){for(var i,o,r=e.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c<r;c++)if(o=e[2*c+a],!isNaN(o)&&!isNaN(e[2*c+1-a]))if(0!==c){if(i<=t&&o>=t||i>=t&&o<=t){l=c;break}s=c,i=o}else i=o;return{range:[s,l],t:(t-i)/(o-i)}}(c,y,_),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!p){var T=hG(c,S[0]);s.attr({x:T[0]+x,y:T[1]+b}),o&&(M=u.getRawValue(S[0]))}else{(T=l.getPointOn(y,_))&&s.attr({x:T[0]+x,y:T[1]+b});var I=u.getRawValue(S[0]),A=u.getRawValue(S[1]);o&&(M=WS(n,d,I,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===e||i.lastFrameIndex>0?S[0]:0;T=hG(c,D);o&&(M=u.getRawValue(D)),s.attr({x:T[0]+x,y:T[1]+b})}if(o){var k=AD(s);"function"==typeof k.setLabelText&&k.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,o,r,a){var s=this._polyline,l=this._polygon,c=e.hostModel,u=function(e,t,n,i,o,r,a,s){for(var l=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),c=[],u=[],p=[],d=[],h=[],f=[],g=[],m=UF(o,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],_=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=2*b.idx,S=2*b.idx1;var C=v[w],M=v[w+1],T=y[S],I=y[S+1];(isNaN(C)||isNaN(M))&&(C=T,M=I),c.push(C,M),u.push(T,I),p.push(n[w],n[w+1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(b.idx1));break;case"+":var A=b.idx,D=m.dataDimsForPoint,k=o.dataToPoint([t.get(D[0],A),t.get(D[1],A)]);S=2*A,c.push(k[0],k[1]),u.push(y[S],y[S+1]);var E=YF(m,o,t,A);p.push(E[0],E[1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(A));break;case"-":_=!1}_&&(h.push(b),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var O=c.length,L=aV(O),N=aV(O),P=aV(O),R=aV(O),z=[];for(x=0;x<f.length;x++){var V=f[x],B=2*x,j=2*V;L[B]=c[j],L[B+1]=c[j+1],N[B]=u[j],N[B+1]=u[j+1],P[B]=p[j],P[B+1]=p[j+1],R[B]=d[j],R[B+1]=d[j+1],z[x]=h[V]}return{current:L,next:N,stackedOnCurrent:P,stackedOnNext:R,status:z}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),p=u.current,d=u.stackedOnCurrent,h=u.next,f=u.stackedOnNext;if(o&&(p=cG(u.current,n,o,a),d=cG(u.stackedOnCurrent,n,o,a),h=cG(u.next,n,o,a),f=cG(u.stackedOnNext,n,o,a)),sG(p,h)>3e3||l&&sG(d,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=p;var g={shape:{points:h}};u.current!==p&&(g.shape.__points=u.next),s.stopAnimation(),RA(s,g,c),l&&(l.setShape({points:p,stackedOnPoints:d}),l.stopAnimation(),RA(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;y<v.length;y++){if("="===v[y].cmd){var x=e.getItemGraphicEl(v[y].idx1);x&&m.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,i=2*m[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(aN),vG=mG;function yG(e,t){return{seriesType:e,plan:KL(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,o=e.pipelineContext,r=t||o.large;if(i){var a=zv(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");zz(n,a[0])&&(a[0]=l),zz(n,a[1])&&(a[1]=l);var c=n.getStore(),u=n.getDimensionIndex(a[0]),p=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,o=r&&aV(n*s),a=[],l=[],d=e.start,h=0;d<e.end;d++){var f=void 0;if(1===s){var g=c.get(u,d);f=i.dataToPoint(g,null,l)}else a[0]=c.get(u,d),a[1]=c.get(p,d),f=i.dataToPoint(a,null,l);r?(o[h++]=f[0],o[h++]=f[1]):t.setItemLayout(d,f.slice())}r&&t.setLayout("points",o)}}}}}}var xG={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,i=0;i<e.length;i++){var o=e[i],r=Math.abs(o);r>t&&(t=r,n=o)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},bG=function(e){return Math.round(e.length/2)};function _G(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),o=e.get("sampling"),r=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===r.type&&o){var s=r.getBaseAxis(),l=r.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(u||1),d=Math.round(a/p);if(isFinite(d)&&d>1){"lttb"===o&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var h=void 0;Uv(o)?h=xG[o]:Hv(o)&&(h=o),h&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,h,bG))}}}}}var wG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.getInitialData=function(e,t){return Bz(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),r=i.dataToPoint(o);if(n)Rv(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(r[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,u=void 0,p=1,d=0;d<i.length;d++){var h=i[d].coord,f=d===i.length-1?i[d-1].tickValue+p:i[d].tickValue;if(f===s){u=h;break}if(f<s)c=h;else if(null!=c&&f>s){u=(h+c)/2;break}1===d&&(p=f-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),r[n]=e.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;r[c]+=s+l/2}return r}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(XL);XL.registerClass(wG);var SG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.getInitialData=function(){return Bz(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=XD(wG.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(wG),CG=SG,MG=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},TG=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return S(t,e),t.prototype.getDefaultShape=function(){return new MG},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r0||0,0),r=Math.max(t.r,0),a=.5*(r-o),s=o+a,l=t.startAngle,c=t.endAngle,u=t.clockwise,p=2*Math.PI,d=u?c-l<p:l-c<p;d||(l=c-(u?p:-p));var h=Math.cos(l),f=Math.sin(l),g=Math.cos(c),m=Math.sin(c);d?(e.moveTo(h*o+n,f*o+i),e.arc(h*s+n,f*s+i,a,-Math.PI+l,l,!u)):e.moveTo(h*r+n,f*r+i),e.arc(n,i,r,l,c,!u),e.arc(g*s+n,m*s+i,a,c-2*Math.PI,c-Math.PI,!u),0!==o&&e.arc(n,i,o,c,l,u)},t}(kM);function IG(e,t,n){return t*Math.sin(e)*(n?-1:1)}function AG(e,t,n){return t*Math.cos(e)*(n?1:-1)}function DG(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Wv(i)||(i=[i,i,i,i]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:zv(i,(function(e){return yw(e,o)}))}}var kG=Math.max,EG=Math.min;var OG=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return S(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");"cartesian2d"===o||"polar"===o?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i)):"production"!==process.env.NODE_ENV&&pS("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){fD(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var o,r=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?o=c.isHorizontal():"polar"===l.type&&(o="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,p=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==i.type&&pS("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==t.type&&pS("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);p&&this._enableRealtimeSort(p,a,n);var d=e.get("clip",!0)||p,h=function(e,t){var n=e.getArea&&e.getArea();if(oG(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var o=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}(l,a);r.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],x=this._backgroundEls,b=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function w(e){var t=jG[l.type](a,e),n=function(e,t,n){var i="polar"===e.type?KI:UM;return new i({shape:qG(t,n,e),silent:!0,z2:0})}(l,o,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=jG[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&BG[l.type](i)){var s=!1;d&&(s=LG[l.type](h,i));var m=NG[l.type](e,a,t,i,o,u,c.model,!1,f);p&&(m.forceLabelAnimation=!0),GG(m,a,t,n,i,e,o,"polar"===l.type),b?m.attr({shape:i}):p?PG(p,u,m,i,t,o,!1,!1):zA(m,{shape:i},e,t),a.setItemGraphicEl(t,m),r.add(m),m.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=jG[l.type](a,t,i);if(g){var C=void 0;0===x.length?C=w(n):((C=x[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?C.setShape("r",v):C.setShape("cornerRadius",v),y[t]=C);var M=jG[l.type](a,t);RA(C,{shape:qG(o,M,l)},u,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&BG[l.type](S)){var I=!1;if(d&&(I=LG[l.type](h,S))&&r.remove(T),T?GA(T):T=NG[l.type](e,a,t,S,o,u,c.model,!!T,f),p&&(T.forceLabelAnimation=!0),_){var A=T.getTextContent();if(A){var D=AD(A);null!=D.prevValue&&(D.prevValue=D.value)}}else GG(T,a,t,i,S,e,o,"polar"===l.type);b?T.attr({shape:S}):p?PG(p,u,T,S,t,o,!0,_):RA(T,{shape:S},e,t,null),a.setItemGraphicEl(t,T),T.ignore=I,r.add(T)}else r.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&FA(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Ew);S.removeAll();for(var C=0;C<y.length;++C)S.add(y[C]);r.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),UG(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),UG(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&iG(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var r=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(o.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,r,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var o=n(t);o=null==o?NaN:o,i.push({dataIndex:t,mappedValue:o,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:zv(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,o=e.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(o,i.getRawOrdinalNumber(a)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>r)return!0;r=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),o=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=r;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var o=this._dataSort(e,n,t);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,o=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){FA(t,e,lT(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(aN),LG={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,r=e.y+e.height,a=kG(t.x,e.x),s=EG(t.x+t.width,o),l=kG(t.y,e.y),c=EG(t.y+t.height,r),u=s<a,p=c<l;return t.x=u&&a>o?s:a,t.y=p&&l>r?c:l,t.width=u?0:s-a,t.height=p?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var o=EG(t.r,e.r),r=kG(t.r0,e.r0);t.r=o,t.r0=r;var a=o-r<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},NG={cartesian2d:function(e,t,n,i,o,r,a,s,l){var c=new UM({shape:Ev({},i),z2:1});(c.__dataIndex=n,c.name="item",r)&&(c.shape[o?"height":"width"]=0);return c},polar:function(e,t,n,i,o,r,a,s,l){var c=!o&&l?TG:KI,u=new c({shape:i,z2:1});u.name="item";var p,d,h=FG(o);if(u.calculateTextPosition=(p=h,d=({isRoundCap:c===TG}||{}).isRoundCap,function(e,t,n){var i=t.position;if(!i||i instanceof Array)return xw(e,t,n);var o=p(i),r=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,u=a.r0,h=(c+u)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,v=d?Math.abs(c-u)/2:0,y=Math.cos,x=Math.sin,b=s+c*y(f),_=l+c*x(f),w="left",S="top";switch(o){case"startArc":b=s+(u-r)*y(m),_=l+(u-r)*x(m),w="center",S="top";break;case"insideStartArc":b=s+(u+r)*y(m),_=l+(u+r)*x(m),w="center",S="bottom";break;case"startAngle":b=s+h*y(f)+IG(f,r+v,!1),_=l+h*x(f)+AG(f,r+v,!1),w="right",S="middle";break;case"insideStartAngle":b=s+h*y(f)+IG(f,-r+v,!1),_=l+h*x(f)+AG(f,-r+v,!1),w="left",S="middle";break;case"middle":b=s+h*y(m),_=l+h*x(m),w="center",S="middle";break;case"endArc":b=s+(c+r)*y(m),_=l+(c+r)*x(m),w="center",S="bottom";break;case"insideEndArc":b=s+(c-r)*y(m),_=l+(c-r)*x(m),w="center",S="top";break;case"endAngle":b=s+h*y(g)+IG(g,r+v,!0),_=l+h*x(g)+AG(g,r+v,!0),w="left",S="middle";break;case"insideEndAngle":b=s+h*y(g)+IG(g,-r+v,!0),_=l+h*x(g)+AG(g,-r+v,!0),w="right",S="middle";break;default:return xw(e,t,n)}return(e=e||{}).x=b,e.y=_,e.align=w,e.verticalAlign=S,e}),r){var f=o?"r":"endAngle",g={};u.shape[f]=o?i.r0:i.startAngle,g[f]=i[f],(s?RA:zA)(u,{shape:g},r)}return u}};function PG(e,t,n,i,o,r,a,s){var l,c;r?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?RA:zA)(n,{shape:l},t,o,null),(a?RA:zA)(n,{shape:c},t?e.baseAxis.model:null,o)}function RG(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var zG=["x","y","width","height"],VG=["cx","cy","r","startAngle","endAngle"],BG={cartesian2d:function(e){return!RG(e,zG)},polar:function(e){return!RG(e,VG)}},jG={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),o=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,o,r)}(n,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function FG(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function GG(e,t,n,i,o,r,a,s){var l=t.getItemVisual(n,"style");if(s){if(!r.get("roundCap")){var c=e.shape;Ev(c,DG(i.getModel("itemStyle"),c,!0)),e.setShape(c)}}else{var u=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var p=i.getShallow("cursor");p&&e.attr("cursor",p);var d=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",h=bD(i);xD(e,h,{labelFetcher:r,labelDataIndex:n,defaultText:zF(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=e.getTextContent();if(s&&f){var g=i.get(["label","position"]);e.textConfig.inside="middle"===g||null,function(e,t,n,i){if(qv(i))e.setTextConfig({rotation:i});else if(Wv(t))e.setTextConfig({rotation:0});else{var o,r=e.shape,a=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(a+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-o;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}(e,"outside"===g?d:g,FG(a),i.get(["label","rotate"]))}DD(f,h,r.getRawValue(n),(function(e){return VF(t,e)}));var m=i.getModel(["emphasis"]);tI(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),rI(e,i),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(o)&&(e.style.fill="none",e.style.stroke="none",Rv(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var WG=function(){},HG=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return S(t,e),t.prototype.getDefaultShape=function(){return new WG},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],e.rect(r[0],r[1],a[0],a[1])},t}(kM);function UG(e,t,n,i){var o=e.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=e.getModel("backgroundStyle"),c=o.getLayout("largeBackgroundPoints");if(c){var u=new HG({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=r,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var p=new HG({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=r,p.largeDataIndices=a,p.barWidth=s,t.add(p),p.useStyle(o.getVisual("style")),lT(p).seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",YG),p.on("mousemove",YG)),n&&n.push(p)}var YG=uN((function(e){var t=function(e,t,n){for(var i=e.baseDimIdx,o=1-i,r=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,p=r.length/3;u<p;u++){var d=3*u;if(l[i]=c,l[o]=r[d+2],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}(this,e.offsetX,e.offsetY);lT(this).dataIndex=t>=0?t:null}),30,!1);function qG(e,t,n){if(oG(n,"cartesian2d")){var i=t,o=n.getArea();return{x:e?i.x:o.x,y:e?o.y:i.y,width:e?i.width:o.width,height:e?o.height:i.height}}var r=t;return{cx:(o=n.getArea()).cx,cy:o.cy,r0:e?o.r0:r.r0,r:e?o.r:r.r,startAngle:e?r.startAngle:0,endAngle:e?r.endAngle:2*Math.PI}}var XG=OG;var $G=2*Math.PI,ZG=Math.PI/180;function KG(e,t){return qk(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function JG(e,t){var n=KG(e,t),i=e.get("center"),o=e.get("radius");Wv(o)||(o=[0,o]);var r,a,s=jw(n.width,t.getWidth()),l=jw(n.height,t.getHeight()),c=Math.min(s,l),u=jw(o[0],c/2),p=jw(o[1],c/2),d=e.coordinateSystem;if(d){var h=d.dataToPoint(i);r=h[0]||0,a=h[1]||0}else Wv(i)||(i=[i,i]),r=jw(i[0],s)+n.x,a=jw(i[1],l)+n.y;return{cx:r,cy:a,r0:u,r:p}}function QG(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),o=KG(e,n),r=JG(e,n),a=r.cx,s=r.cy,l=r.r,c=r.r0,u=-e.get("startAngle")*ZG,p=e.get("endAngle"),d=e.get("padAngle")*ZG;p="auto"===p?u-$G:-p*ZG;var h=e.get("minAngle")*ZG+d,f=0;t.each(i,(function(e){!isNaN(e)&&f++}));var g=t.getSum(i),m=Math.PI/(g||f)*2,v=e.get("clockwise"),y=e.get("roseType"),x=e.get("stillShowZeroSum"),b=t.getDataExtent(i);b[0]=0;var _=v?1:-1,w=[u,p],S=_*d/2;sM(w,!v),u=w[0],p=w[1];var C=Math.abs(p-u),M=C,T=0,I=u;if(t.setLayout({viewRect:o,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:c,r:y?NaN:l});else{(i="area"!==y?0===g&&x?m:e*m:C/f)<h?(i=h,M-=h):T+=e;var o=I+_*i,r=0,u=0;d>i?u=r=I+_*i/2:(r=I+S,u=o-S),t.setItemLayout(n,{angle:i,startAngle:r,endAngle:u,clockwise:v,cx:a,cy:s,r0:c,r:y?Bw(e,b,[c,l]):l}),I=o}})),M<$G&&f)if(M<=.001){var A=C/f;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=A;var o=0,r=0;A<d?r=o=u+_*(n+.5)*A:(o=u+_*n*A+S,r=u+_*(n+1)*A-S),i.startAngle=o,i.endAngle=r}}))}else m=M/T,I=u,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),o=i.angle===h?h:e*m,r=0,a=0;o<d?a=r=I+_*o/2:(r=I+S,a=I+_*o-S),i.startAngle=r,i.endAngle=a,I+=_*o}}))}))}function eW(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),o=0;o<n.length;o++)if(!n[o].isSelected(t))return!1;return!0}))}}}}var tW=Math.PI/180;function nW(e,t,n,i,o,r,a,s,l,c){if(!(e.length<2)){for(var u=e.length,p=0;p<u;p++)if("outer"===e[p].position&&"labelLine"===e[p].labelAlignTo){var d=e[p].label.x-c;e[p].linePoints[1][0]+=d,e[p].label.x=c}KB(e,l,l+a)&&function(e){for(var r={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],c=l.label.y>n?a:r,u=Math.abs(l.label.y-n);if(u>=c.maxY){var p=l.label.x-t-l.len2*o,d=i+l.len,f=Math.abs(p)<d?Math.sqrt(u*u/(1-p*p/d/d)):d;c.rB=f,c.maxY=u}c.list.push(l)}h(r),h(a)}(e)}function h(e){for(var r=e.rB,a=r*r,s=0;s<e.list.length;s++){var l=e.list[s],c=Math.abs(l.label.y-n),u=i+l.len,p=u*u,d=Math.sqrt((1-Math.abs(c*c/a))*p),h=t+(d+l.len2)*o,f=h-l.label.x;iW(l,l.targetTextWidth-f*o,!0),l.label.x=h}}}function iW(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,o=i.style,r=e.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,c=o.overflow,u=r.width+(a?0:l);if(t<u||n){var p=r.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var h=t-l,f=t<u?h:n?h>e.unconstrainedWidth?null:h:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var m=(i.style.margin||0)+2.1;r.height=g.height+m,r.y-=(r.height-p)/2}}}function oW(e){return"center"===e.position}function rW(e){var t,n,i=e.getData(),o=[],r=!1,a=(e.get("minShowLabelAngle")||0)*tW,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,p=s.y,d=s.height;function h(e){e.ignore=!0}i.each((function(e){var s=i.getItemGraphicEl(e),p=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(e),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),x=m.get("alignTo"),b=jw(m.get("edgeDistance"),c),_=m.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=jw(S,c);var C=w.get("length2");if(C=jw(C,c),Math.abs(p.endAngle-p.startAngle)<a)return Rv(d.states,h),d.ignore=!0,void(f&&(Rv(f.states,h),f.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(d)){var M,T,I,A,D=(p.startAngle+p.endAngle)/2,k=Math.cos(D),E=Math.sin(D);t=p.cx,n=p.cy;var O="inside"===v||"inner"===v;if("center"===v)M=p.cx,T=p.cy,A="center";else{var L=(O?(p.r+p.r0)/2*k:p.r*k)+t,N=(O?(p.r+p.r0)/2*E:p.r*E)+n;if(M=L+3*k,T=N+3*E,!O){var P=L+k*(S+l-p.r),R=N+E*(S+l-p.r),z=P+(k<0?-1:1)*C;M="edge"===x?k<0?u+b:u+c-b:z+(k<0?-y:y),T=R,I=[[L,N],[P,R],[z,R]]}A=O?"center":"edge"===x?k>0?"right":"left":k>0?"left":"right"}var V=Math.PI,B=0,j=m.get("rotate");if(qv(j))B=j*(V/180);else if("center"===v)B=0;else if("radial"===j||!0===j){B=k<0?-D+V:-D}else if("tangential"===j&&"outside"!==v&&"outer"!==v){var F=Math.atan2(k,E);F<0&&(F=2*V+F),E>0&&(F=V+F),B=F-V}if(r=!!B,d.x=M,d.y=T,d.rotation=B,d.setStyle({verticalAlign:"middle"}),O){d.setStyle({align:A});var G=d.states.select;G&&(G.x+=d.x,G.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var H=(d.style.margin||0)+2.1;W.y-=H/2,W.height+=H,o.push({label:d,labelLine:f,position:v,len:S,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new vx(k,E),linePoints:I,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:b,bleedMargin:_,rect:W,unconstrainedWidth:W.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:O})}})),!r&&e.get("avoidLabelOverlap")&&function(e,t,n,i,o,r,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,p=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;oW(e[d])||(h.x<t?(u=Math.min(u,h.x),l.push(e[d])):(p=Math.max(p,h.x),c.push(e[d])))}for(d=0;d<e.length;d++)if(!oW(m=e[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;h=m.label;var f=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?h.x<t?f[2][0]-m.labelDistance-a-m.edgeDistance:a+o-m.edgeDistance-f[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?h.x<t?u-a-m.bleedMargin:a+o-p-m.bleedMargin:h.x<t?h.x-a-m.bleedMargin:a+o-h.x-m.bleedMargin,m.targetTextWidth=g,iW(m,g)}for(nW(c,t,n,i,1,0,r,0,s,p),nW(l,t,n,i,-1,0,r,0,s,u),d=0;d<e.length;d++){var m;if(!oW(m=e[d])&&m.linePoints){h=m.label,f=m.linePoints;var v="edge"===m.labelAlignTo,y=h.style.padding,x=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:x,_=m.rect.width+b,w=f[1][0]-f[2][0];v?h.x<t?f[2][0]=a+m.edgeDistance+_+m.labelDistance:f[2][0]=a+o-m.edgeDistance-_-m.labelDistance:(h.x<t?f[2][0]=h.x+m.labelDistance:f[2][0]=h.x-m.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=h.y}}}(o,t,n,l,c,d,u,p);for(var f=0;f<o.length;f++){var g=o[f],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&(Rv(m.states,h),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(v){var b=g.linePoints;y||!b?(Rv(v.states,h),v.ignore=!0):(WB(b,g.minTurnAngle),HB(b,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new vx(b[0][0],b[0][1])})}}}var aW=function(e){function t(t,n,i){var o=e.call(this)||this;o.z2=2;var r=new sT;return o.setTextContent(r),o.updateData(t,n,i,!0),o}return S(t,e),t.prototype.updateData=function(e,t,n,i){var o=this,r=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),c=Ev(DG(a.getModel("itemStyle"),l,!0),l);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var u=r.getShallow("animationType");r.ecModel.ssr?(zA(o,{scaleX:0,scaleY:0},r,{dataIndex:t,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===u?(o.shape.r=l.r0,zA(o,{shape:{r:l.r}},r,t)):null!=n?(o.setShape({startAngle:n,endAngle:n}),zA(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,t)):(o.shape.endAngle=l.startAngle,RA(o,{shape:{endAngle:l.endAngle}},r,t))}else GA(o),RA(o,{shape:c},r,t);o.useStyle(e.getItemVisual(t,"style")),rI(o,a);var p=(l.startAngle+l.endAngle)/2,d=r.get("selectedOffset"),h=Math.cos(p)*d,f=Math.sin(p)*d,g=a.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(r,e,t),o.ensureState("emphasis").shape=Ev({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},DG(s.getModel("itemStyle"),l)),Ev(o.ensureState("select"),{x:h,y:f,shape:DG(a.getModel(["select","itemStyle"]),l)}),Ev(o.ensureState("blur"),{shape:DG(a.getModel(["blur","itemStyle"]),l)});var m=o.getTextGuideLine(),v=o.getTextContent();m&&Ev(m.ensureState("select"),{x:h,y:f}),Ev(v.ensureState("select"),{x:h,y:f}),tI(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,o=t.getItemModel(n),r=o.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;xD(i,bD(o),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new rA,this.setTextGuideLine(p)),qB(this,XB(o),{stroke:s,opacity:iy(r.get(["lineStyle","opacity"]),l,1)})}},t}(KI),sW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return S(t,e),t.prototype.render=function(e,t,n,i){var o,r=e.getData(),a=this._data,s=this.group;if(!a&&r.count()>0){for(var l=r.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<r.count();++c)l=r.getItemLayout(c);l&&(o=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&e.get("showEmptyCircle")){var u=new KI({shape:JG(e,n)});u.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}r.diff(a).add((function(e){var t=new aW(r,e,o);r.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(r,e,o),n.off("click"),s.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){FA(a.getItemGraphicEl(t),e,t)})).execute(),rW(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},t.type="pie",t}(aN),lW=sW;function cW(e,t,n){t=Wv(t)&&{coordDimensions:t}||Ev({encodeDefine:e.getEncode()},t);var i=e.getSource(),o=Ez(i,t).dimensions,r=new kz(o,e);return r.initData(i,n),r}var uW=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),pW=uW,dW=NS(),hW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new pW(Fv(this.getData,this),Fv(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return cW(this,{coordDimensions:["value"],encodeDefaulter:Gv(vE,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=dW(n),o=i.seats;if(!o){var r=[];n.each(n.mapDimension("value"),(function(e){r.push(e)})),o=i.seats=function(e,t){var n=Vv(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var i=Math.pow(10,t),o=zv(e,(function(e){return(isNaN(e)?0:e)/n*i*100})),r=100*i,a=zv(o,(function(e){return Math.floor(e)})),s=Vv(a,(function(e,t){return e+t}),0),l=zv(o,(function(e,t){return e-a[t]}));s<r;){for(var c=Number.NEGATIVE_INFINITY,u=null,p=0,d=l.length;p<d;++p)l[p]>c&&(c=l[p],u=p);++a[u],l[u]=0,++s}return zv(a,(function(e){return e/i}))}(r,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=o[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){_S(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(XL),fW=hW;var gW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return S(t,e),t.prototype.getInitialData=function(e,t){return Bz(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(XL),mW=gW,vW=function(){},yW=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return S(t,e),t.prototype.getDefaultShape=function(){return new vW},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,o=t.size,r=this.symbolProxy,a=r.shape,s=e.getContext?e.getContext():e,l=s&&o[0]<4,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],p=i[n++];isNaN(u)||isNaN(p)||(c&&!c.contain(u,p)||(a.x=u-o[0]/2,a.y=p-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,o=this._ctx,r=this.softClipShape;if(o){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,o=n.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-r/2,u=i[l+1]-a/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,o=i[0],r=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var p=n[u++],d=n[u++];a=Math.min(p,a),l=Math.max(p,l),s=Math.min(d,s),c=Math.max(d,c)}e=this._rect=new Ax(a-o/2,s-r/2,l-a+o,c-s+r)}return e},t}(kM),xW=function(){function e(){this.group=new Ew}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],o=t.getLayout("points"),r=i&&i.shape.points;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new yW({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=fP(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var r=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=lT(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),bW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=yG("").reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new xW:new HF,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(aN),_W=bW,wW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(tE),SW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",VS).models[0]},t.type="cartesian2dAxis",t}(tE);Nv(SW,KV);var CW={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},MW=Dv({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},CW),TW=Dv({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},CW),IW={category:MW,value:TW,time:Dv({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},TW),log:Ov({logBase:10},TW)},AW={value:1,category:1,time:1,log:1};function DW(e,t,n,i){Rv(AW,(function(o,r){var a=Dv(Dv({},IW[r],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+r,n}return S(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=$k(this),i=n?Kk(e):{};Dv(e,t.getTheme().get(r+"Axis")),Dv(e,this.getDefaultOption()),e.type=kW(e),n&&Zk(e,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Wz.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+r,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",kW)}function kW(e){return e.type||(e.data?"category":"value")}var EW=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return zv(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Bv(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),OW=["x","y"];function LW(e){return"interval"===e.type||"time"===e.type}var NW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=OW,t}return S(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(LW(e)&&LW(t)){var n=e.getExtent(),i=t.getExtent(),o=this.dataToPoint([n[0],i[0]]),r=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(r[0]-o[0])/a,c=(r[1]-o[1])/s,u=o[0]-n[0]*l,p=o[1]-i[0]*c,d=this._transform=[l,0,0,c,u,p];this._invTransform=mx([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),o=this.getArea(),r=new Ax(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(r)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return Py(n,e,this._transform);var r=this.getAxis("x"),a=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(o,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Py(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=o.coordToData(o.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,o=Math.min(n[0],n[1])-e,r=Math.max(t[0],t[1])-i+e,a=Math.max(n[0],n[1])-o+e;return new Ax(i,o,r,a)},t}(EW),PW=function(e){function t(t,n,i,o,r){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=o||"value",a.position=r||"bottom",a}return S(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(CB),RW=PW;function zW(e,t,n){n=n||{};var i=e.coordinateSystem,o=t.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,c=o.dim,u=i.getRect(),p=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===c?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=["y"===c?f[d[l]]:p[0],"x"===c?f[d[l]]:p[3]],r.rotation=Math.PI/2*("x"===c?0:1);r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?f[d[s]]-f[d.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),ty(n.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var m=t.get(["axisLabel","rotate"]);return r.labelRotate="top"===l?-m:m,r.z2=1,r}function VW(e){return"cartesian2d"===e.get("coordinateSystem")}function BW(e){var t={xAxisModel:null,yAxisModel:null};return Rv(t,(function(n,i){var o=i.replace(/Model$/,""),r=e.getReferringComponents(o,VS).models[0];if("production"!==process.env.NODE_ENV&&!r)throw new Error(o+' "'+iy(e.get(o+"Index"),e.get(o+"Id"),0)+'" not found');t[i]=r})),t}var jW=Math.log;function FW(e,t,n){var i=iV.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=i.getInterval.call(n),l=GV(e,t),c=l.extent,u=l.fixMin,p=l.fixMax;if("log"===e.type){var d=jW(e.base);c=[jW(c[0])/d,jW(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:p});var h=i.getExtent.call(e);u&&(c[0]=h[0]),p&&(c[1]=h[1]);var f=i.getInterval.call(e),g=c[0],m=c[1];if(u&&p)f=(m-g)/a;else if(u)for(m=c[0]+f*a;m<c[1]&&isFinite(m)&&isFinite(c[1]);)f=qz(f),m=c[0]+f*a;else if(p)for(g=c[1]-f*a;g>c[0]&&isFinite(g)&&isFinite(c[0]);)f=qz(f),g=c[1]-f*a;else{e.getTicks().length-1>a&&(f=qz(f));var v=f*a;(g=Fw((m=Math.ceil(c[1]/f)*f)-v))<0&&c[0]>=0?(g=0,m=Fw(v)):m>0&&c[1]<=0&&(m=0,g=-Fw(v))}var y=(o[0].value-r[0].value)/s,x=(o[a].value-r[a].value)/s;if(i.setExtent.call(e,g+f*y,m+f*x),i.setInterval.call(e,f),(y||x)&&i.setNiceExtent.call(e,g+f,m-f),"production"!==process.env.NODE_ENV){var b=i.getTicks.call(e);b[1]&&(!function(e){var t=Math.pow(10,Jw(Math.abs(e))),n=Math.abs(e/t);return 0===n||1===n||2===n||3===n||5===n}(f)||Hw(b[1].value)>Hw(f))&&pS("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var GW=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=OW,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=jv(e),i=n.length;if(i){for(var o=[],r=i-1;r>=0;r--){var a=e[+n[r]],s=a.model,l=a.scale;Uz(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(WV(l,s),Uz(l)&&(t=a))}o.length&&(t||WV((t=o.pop()).scale,t.model),Rv(o,(function(e){FW(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var o={};Rv(n.x,(function(e){HW(n,"y",e,o)})),Rv(n.y,(function(e){HW(n,"x",e,o)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),o=!n&&e.get("containLabel"),r=qk(i,{width:t.getWidth(),height:t.getHeight()});this._rect=r;var a=this._axesList;function s(){Rv(a,(function(e){var t=e.isHorizontal(),n=t?[0,r.width]:[0,r.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?r.x:r.y)}))}s(),o&&(Rv(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent();o=n instanceof eV?n.count():(i=n.getTicks()).length;var a,s=e.getLabelModel(),l=UV(e),c=1;o>40&&(c=Math.ceil(o/40));for(var u=0;u<o;u+=c){var p=l(i?i[u]:{value:r[0]+u},u),d=qV(s.getTextRect(p),s.get("rotate")||0);a?a.union(d):a=d}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);r[n]-=t[n]+i,"top"===e.position?r.y+=t.height+i:"left"===e.position&&(r.x+=t.width+i)}}})),s()),Rv(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Xv(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===e||o[i].getAxis("y").index===t)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,o=e.xAxisModel||i&&i.getReferringComponents("xAxis",VS).models[0],r=e.yAxisModel||i&&i.getReferringComponents("yAxis",VS).models[0],a=e.gridModel,s=this._coordsList;if(i)Lv(s,t=i.coordinateSystem)<0&&(t=null);else if(o&&r)t=this.getCartesian(o.componentIndex,r.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(r)n=this.getAxis("y",r.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,o=this,r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(WW(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=r.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=r.left?"right":"left"),r[l]=!0;var c=new RW(t,HV(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=o,c.index=i,o._axesList.push(c),a[t][i]=c,s[t]++}}}this._axesMap=a,Rv(a.x,(function(t,n){Rv(a.y,(function(o,r){var a="x"+n+"y"+r,s=new NW(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(o)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Rv(ZV(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Rv(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(VW(e)){var i=BW(e),o=i.xAxisModel,r=i.yAxisModel;if(!WW(o,t)||!WW(r,t))return;var a=this.getCartesian(o.componentIndex,r.componentIndex),s=e.getData(),l=a.getAxis("x"),c=a.getAxis("y");n(s,l),n(s,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Rv(this.getCartesians(),(function(i){var o=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),r=i.getOtherAxis(o);Lv(t,o)<0&&t.push(o),Lv(n,r)<0&&n.push(r)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(o,r){var a=new e(o,t,n);a.name="grid_"+r,a.resize(o,n,!0),o.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(VW(e)){var t=BW(e),n=t.xAxisModel,i=t.yAxisModel,o=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!o)throw new Error('Grid "'+iy(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==i.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var r=o.coordinateSystem;e.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=OW,e}();function WW(e,t){return e.getCoordSysModel()===t}function HW(e,t,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)UW(r[l])&&(o=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&UW(r[c])&&!i[u(r[c])]){o=r[c];break}o&&(i[u(o)]=!0)}function u(e){return e.dim+"_"+e.index}}function UW(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}(e)}var YW=GW,qW=Math.PI,XW=function(){function e(e,t){this.group=new Ew,this.opt=t,this.axisModel=e,Ov(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ew({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!$W[e]},e.prototype.add=function(e){$W[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,o,r=Xw(t-e);return $w(r)?(o=n>0?"top":"bottom",i="center"):$w(r-qW)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=r>0&&r<qW?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),$W={axisLine:function(e,t,n,i){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var r=t.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],c=s[0]>l[0];a&&(Py(s,s,a),Py(l,l,a));var u=Ev({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new lA({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});eD(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var d=t.get(["axisLine","symbol"]);if(null!=d){var h=t.get(["axisLine","symbolSize"]);Uv(d)&&(d=[d,d]),(Uv(h)||qv(h))&&(h=[h,h]);var f=mP(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];Rv([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var o=fP(d[i],-g/2,-m/2,g,m,u.stroke,!0),r=t.r+t.offset,a=c?l:s;o.attr({rotation:t.rotate,x:a[0]+r*Math.cos(e.rotation),y:a[1]-r*Math.sin(e.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(e,t,n,i){var o=function(e,t,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||o.scale.isBlank())return;for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),c=QW(o.getTicksCoords(),t.transform,l,Ov(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<c.length;u++)e.add(c[u]);return c}(n,i,t,e),r=function(e,t,n,i){var o=n.axis,r=ty(i.axisLabelShow,n.get(["axisLabel","show"]));if(!r||o.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=o.getViewLabels(),c=(ty(i.labelRotate,a.get("rotate"))||0)*qW/180,u=XW.innerTextLayout(i.rotation,c,i.labelDirection),p=n.getCategories&&n.getCategories(!0),d=[],h=XW.isLabelSilent(n),f=n.get("triggerEvent");return Rv(l,(function(r,c){var g="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(r.tickValue):r.tickValue,m=r.formattedLabel,v=r.rawLabel,y=a;if(p&&p[g]){var x=p[g];Xv(x)&&x.textStyle&&(y=new UD(x.textStyle,a,n.ecModel))}var b=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=o.dataToCoord(g),w=y.getShallow("align",!0)||u.textAlign,S=ny(y.getShallow("alignMinLabel",!0),w),C=ny(y.getShallow("alignMaxLabel",!0),w),M=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,T=ny(y.getShallow("verticalAlignMinLabel",!0),M),I=ny(y.getShallow("verticalAlignMaxLabel",!0),M),A=new sT({x:_,y:i.labelOffset+i.labelDirection*s,rotation:u.rotation,silent:h,z2:10+(r.level||0),style:_D(y,{text:m,align:0===c?S:c===l.length-1?C:w,verticalAlign:0===c?T:c===l.length-1?I:M,fill:Hv(b)?b("category"===o.type?v:"value"===o.type?g+"":g,c):b})});if(A.anid="label_"+g,f){var D=XW.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=v,D.tickIndex=c,"category"===o.type&&(D.dataIndex=g),lT(A).eventData=D}t.add(A),A.updateTransform(),d.push(A),e.add(A),A.decomposeTransform()})),d}(n,i,t,e);(function(e,t,n){if($V(e.axis))return;var i=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var r=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],p=n[n.length-1],d=n[n.length-2];!1===i?(ZW(r),ZW(c)):KW(r,a)&&(i?(ZW(a),ZW(u)):(ZW(r),ZW(c)));!1===o?(ZW(s),ZW(p)):KW(l,s)&&(o?(ZW(l),ZW(d)):(ZW(s),ZW(p)))}(t,r,o),function(e,t,n,i){var o=n.axis,r=n.getModel("minorTick");if(!r.get("show")||o.scale.isBlank())return;var a=o.getMinorTicksCoords();if(!a.length)return;for(var s=r.getModel("lineStyle"),l=i*r.get("length"),c=Ov(s.getLineStyle(),Ov(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var p=QW(a[u],t.transform,l,c,"minorticks_"+u),d=0;d<p.length;d++)e.add(p[d])}(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&JB($B(zv(r,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}}))))},axisName:function(e,t,n,i){var o=ty(e.axisName,t.get("name"));if(o){var r,a,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,p=t.axis.getExtent(),d=p[0]>p[1]?-1:1,h=["start"===s?p[0]-d*u:"end"===s?p[1]+d*u:(p[0]+p[1])/2,JW(s)?e.labelOffset+l*u:0],f=t.get("nameRotate");null!=f&&(f=f*qW/180),JW(s)?r=XW.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(r=function(e,t,n,i){var o,r,a=Xw(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;$w(a-qW/2)?(r=l?"bottom":"top",o="center"):$w(a-1.5*qW)?(r=l?"top":"bottom",o="center"):(r="middle",o=a<1.5*qW&&a>qW/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:o,textVerticalAlign:r}}(e.rotation,s,f||0,p),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(r.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=ty(e.nameTruncateMaxWidth,m.maxWidth,a),x=new sT({x:h[0],y:h[1],rotation:r.rotation,silent:XW.isLabelSilent(t),style:_D(c,{text:o,font:g,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||r.textAlign,verticalAlign:c.get("verticalAlign")||r.textVerticalAlign}),z2:1});if(dD({el:x,componentModel:t,itemName:o}),x.__fullText=o,x.anid="name",t.get("triggerEvent")){var b=XW.makeAxisEventDataBase(t);b.targetType="axisName",b.name=o,lT(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function ZW(e){e&&(e.ignore=!0)}function KW(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var o=ux([]);return fx(o,o,-e.rotation),n.applyTransform(dx([],o,e.getLocalTransform())),i.applyTransform(dx([],o,t.getLocalTransform())),n.intersect(i)}}function JW(e){return"middle"===e||"center"===e}function QW(e,t,n,i,o){for(var r=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(Py(a,a,t),Py(s,s,t));var u=new lA({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});eD(u.shape,u.style.lineWidth),u.anid=o+"_"+e[l].tickValue,r.push(u)}return r}function eH(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var i=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),r=o.get("link",!0)||[],a=[];Rv(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=oH(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var c=n.model.getModel("tooltip",i);if(Rv(n.getAxes(),Gv(h,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var u="axis"===c.get("trigger"),p="cross"===c.get(["axisPointer","type"]),d=n.getTooltipAxes(c.get(["axisPointer","axis"]));(u||p)&&Rv(d.baseAxes,Gv(h,!p||"cross",u)),p&&Rv(d.otherAxes,Gv(h,"cross",!1))}}function h(i,s,u){var p=u.model.getModel("axisPointer",o),d=p.get("show");if(d&&("auto"!==d||i||iH(p))){null==s&&(s=p.get("triggerTooltip")),p=i?function(e,t,n,i,o,r){var a=t.getModel("axisPointer"),s={};Rv(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=Av(a.get(e))})),s.snap="category"!==e.type&&!!r,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===o){var c=a.get(["label","show"]);if(l.show=null==c||c,!r){var u=s.lineStyle=a.get("crossStyle");u&&Ov(l,u.textStyle)}}return e.model.getModel("axisPointer",new UD(s,n,i))}(u,c,o,t,i,s):p;var h=p.get("snap"),f=p.get("triggerEmphasis"),g=oH(u.model),m=s||h||"category"===u.type,v=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:p,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:h,useHandle:iH(p),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=function(e,t){for(var n=t.model,i=t.dim,o=0;o<e.length;o++){var r=e[o]||{};if(tH(r[i+"AxisId"],n.id)||tH(r[i+"AxisIndex"],n.componentIndex)||tH(r[i+"AxisName"],n.name))return o}}(r,u);if(null!=y){var x=a[y]||(a[y]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=r[y].mapper,v.linkGroup=x}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&Rv(e.coordSysAxesInfo[oH(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function tH(e,t){return"all"===e||Wv(e)&&Lv(e,t)>=0||e===t}function nH(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[oH(e)]}function iH(e){return!!e.get(["handle","show"])}function oH(e){return e.type+"||"+e.id}var rH={},aH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(t,n,i,o){this.axisPointerClass&&function(e){var t=nH(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,o=n.option,r=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=iH(n);null==r&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var r=function(e){var t=nH(e);return t&&t.axisPointerModel}(e);r?(this._axisPointer||(this._axisPointer=new o)).render(e,r,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if("production"!==process.env.NODE_ENV&&rH[e])throw new Error("axisPointer "+e+" exists");rH[e]=t},t.getAxisPointerClass=function(e){return e&&rH[e]},t.type="axis",t}(ZL),sH=NS();function lH(e,t,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:r,clamp:!0});if(c.length){var u=s.length,p=sH(e).splitAreaColors,d=fy(),h=0;if(p)for(var f=0;f<c.length;f++){var g=p.get(c[f].tickValue);if(null!=g){h=(g+(u-1)*f)%u;break}}var m=o.toGlobalCoord(c[0].coord),v=a.getAreaStyle();s=Wv(s)?s:[s];for(f=1;f<c.length;f++){var y=o.toGlobalCoord(c[f].coord),x=void 0,b=void 0,_=void 0,w=void 0;o.isHorizontal()?(x=m,b=l.y,_=y-x,w=l.height,m=x+_):(x=l.x,b=m,_=l.width,m=b+(w=y-b));var S=c[f-1].tickValue;null!=S&&d.set(S,h),t.add(new UM({anid:null!=S?"area_"+S:null,shape:{x:x,y:b,width:_,height:w},style:Ov({fill:s[h]},v),autoBatch:!0,silent:!0})),h=(h+1)%u}sH(e).splitAreaColors=d}}}function cH(e){sH(e).splitAreaColors=null}var uH=["axisLine","axisTickLabel","axisName"],pH=["splitArea","splitLine","minorSplitLine"],dH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return S(t,e),t.prototype.render=function(t,n,i,o){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Ew,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=zW(a,t),l=new XW(t,Ev({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Uz(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));Rv(uH,l.add,l),this._axisGroup.add(l.getGroup()),Rv(pH,(function(e){t.get([e,"show"])&&hH[e](this,this._axisGroup,t,a)}),this),o&&"changeAxisOrder"===o.type&&o.isInitSort||aD(r,this._axisGroup,t),e.prototype.render.call(this,t,n,i,o)}},t.prototype.remove=function(){cH(this)},t.type="cartesianAxis",t}(aH),hH={splitLine:function(e,t,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=Wv(s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=o.isHorizontal(),u=0,p=o.getTicksCoords({tickModel:r}),d=[],h=[],f=a.getLineStyle(),g=0;g<p.length;g++){var m=o.toGlobalCoord(p[g].coord);c?(d[0]=m,d[1]=l.y,h[0]=m,h[1]=l.y+l.height):(d[0]=l.x,d[1]=m,h[0]=l.x+l.width,h[1]=m);var v=u++%s.length,y=p[g].tickValue,x=new lA({anid:null!=y?"line_"+p[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Ov({stroke:s[v]},f),silent:!0});eD(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,i){var o=n.axis,r=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=o.isHorizontal(),l=o.getMinorTicksCoords();if(l.length)for(var c=[],u=[],p=r.getLineStyle(),d=0;d<l.length;d++)for(var h=0;h<l[d].length;h++){var f=o.toGlobalCoord(l[d][h].coord);s?(c[0]=f,c[1]=a.y,u[0]=f,u[1]=a.y+a.height):(c[0]=a.x,c[1]=f,u[0]=a.x+a.width,u[1]=f);var g=new lA({anid:"minor_line_"+l[d][h].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:p,silent:!0});eD(g.shape,p.lineWidth),t.add(g)}},splitArea:function(e,t,n,i){lH(e,t,n,i)}},fH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="xAxis",t}(dH),gH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=fH.type,t}return S(t,e),t.type="yAxis",t}(dH),mH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return S(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new UM({shape:e.coordinateSystem.getRect(),style:Ov({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ZL),vH={offset:0};function yH(e){e.registerComponentView(mH),e.registerComponentModel(wW),e.registerCoordinateSystem("cartesian2d",YW),DW(e,"x",SW,vH),DW(e,"y",SW,vH),e.registerComponentView(fH),e.registerComponentView(gH),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function xH(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var o=i.getIndicatorAxes();Rv(o,(function(e,r){t.each(t.mapDimension(o[r].dim),(function(e,t){n[t]=n[t]||[];var o=i.dataToPoint(e,r);n[t][r]=bH(o)?o:_H(i)}))})),t.each((function(e){var o=function(e,t,n){if(e&&t)for(var i=0,o=e.length;i<o;i++)if(t.call(n,e[i],i,e))return e[i]}(n[e],(function(e){return bH(e)}))||_H(i);n[e].push(o.slice()),t.setItemLayout(e,n[e])}))}}))}function bH(e){return!isNaN(e[0])&&!isNaN(e[1])}function _H(e){return[e.cx,e.cy]}function wH(e){var t=e.polar;if(t){Wv(t)||(t=[t]);var n=[];Rv(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],Wv(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}Rv(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var SH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,o=this.group,r=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=gP(e.getItemVisual(t,"symbolSize")),o=fP(n,-1,-1,2,2),r=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),o}}function l(t,n,i,o,r,a){i.removeAll();for(var l=0;l<n.length-1;l++){var c=s(o,r);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),gD[a?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,r)):c.setPosition(n[l]),i.add(c))}}function c(e){return zv(e,(function(e){return[i.cx,i.cy]}))}r.diff(a).add((function(t){var n=r.getItemLayout(t);if(n){var i=new iA,o=new rA,a={shape:{points:n}};i.shape.points=c(n),o.shape.points=c(n),zA(i,a,e,t),zA(o,a,e,t);var s=new Ew,u=new Ew;s.add(o),s.add(i),s.add(u),l(o.shape.points,n,u,r,t,!0),r.setItemGraphicEl(t,s)}})).update((function(t,n){var i=a.getItemGraphicEl(n),o=i.childAt(0),s=i.childAt(1),c=i.childAt(2),u={shape:{points:r.getItemLayout(t)}};u.shape.points&&(l(o.shape.points,u.shape.points,c,r,t,!1),GA(s),GA(o),RA(o,u,e),RA(s,u,e),r.setItemGraphicEl(t,i))})).remove((function(e){o.remove(a.getItemGraphicEl(e))})).execute(),r.eachItemGraphicEl((function(e,t){var n=r.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=r.getItemVisual(t,"style"),c=l.fill;o.add(e),i.useStyle(Ov(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),rI(i,n,"lineStyle"),rI(a,n,"areaStyle");var u=n.getModel("areaStyle"),p=u.isEmpty()&&u.parentModel.isEmpty();a.ignore=p,Rv(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&p})),a.useStyle(Ov(u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),h=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof zM){var i=e.style;e.useStyle(Ev({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(c),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=Av(h);var o=r.getStore().get(r.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),xD(e,bD(n),{labelFetcher:r.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:c,defaultOpacity:l.opacity})})),tI(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(aN),CH=SH,MH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return S(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new pW(Fv(this.getData,this),Fv(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return cW(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(e),a=""===r?this.name:r,s=LL(this,e);return CL("section",{header:a,sortBlocks:!0,blocks:zv(o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return CL("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(zv(n.dimensions,(function(e){return t.mapDimension(e)})),e),o=0,r=i.length;o<r;o++)if(!isNaN(i[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(i[o]),o)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(XL),TH=MH,IH=IW.value;function AH(e,t){return Ov({show:t},e)}var DH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),r=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),p=zv(this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=a;null!=p.color&&(d=Ov({color:p.color},a));var h=Dv(Av(p),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:o,axisLabel:r,name:p.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(Uv(l)){var f=h.name;h.name=l.replace("{value}",null!=f?f:"")}else Hv(l)&&(h.name=l(h.name,h));var g=new UD(h,null,this.ecModel);return Nv(g,KV.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Dv({lineStyle:{color:"#bbb"}},IH.axisLine),axisLabel:AH(IH.axisLabel,!1),axisTick:AH(IH.axisTick,!1),splitLine:AH(IH.splitLine,!0),splitArea:AH(IH.splitArea,!0),indicator:[]},t}(tE),kH=DH,EH=["axisLine","axisTickLabel","axisName"],OH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;Rv(zv(t.getIndicatorAxes(),(function(e){var n=e.model.get("showName")?e.name:"";return new XW(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(e){Rv(EH,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),o=e.getModel("splitLine"),r=e.getModel("splitArea"),a=o.getModel("lineStyle"),s=r.getModel("areaStyle"),l=o.get("show"),c=r.get("show"),u=a.get("color"),p=s.get("color"),d=Wv(u)?u:[u],h=Wv(p)?p:[p],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,x=0;x<m.length;x++){if(l)f[I(f,d,x)].push(new OI({shape:{cx:v,cy:y,r:m[x].coord}}));if(c&&x<m.length-1)g[I(g,h,x)].push(new eA({shape:{cx:v,cy:y,r0:m[x].coord,r:m[x+1].coord}}))}else{var b,_=zv(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),zv(i,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(x=0;x<=b;x++){for(var S=[],C=0;C<n.length;C++)S.push(_[C][x]);if(S[0]?S.push(S[0].slice()):"production"!==process.env.NODE_ENV&&console.error("Can't draw value axis "+x),l)f[I(f,d,x)].push(new rA({shape:{points:S}}));if(c&&w)g[I(g,h,x-1)].push(new iA({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var M=a.getLineStyle(),T=s.getAreaStyle();Rv(g,(function(e,t){this.group.add(JA(e,{style:Ov({stroke:"none",fill:h[t%h.length]},T),silent:!0}))}),this),Rv(f,(function(e,t){this.group.add(JA(e,{style:Ov({fill:"none",stroke:d[t%d.length]},M),silent:!0}))}),this)}function I(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(ZL),LH=OH,NH=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.type="value",o.angle=0,o.name="",o}return S(t,e),t}(CB),PH=NH,RH=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=zv(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new PH(n,new iV);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var o,r=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(r-c.angle);u<a&&(o=c,s=l,a=u)}return[s,+(o&&o.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),r=Math.min(i,o)/2;this.cx=jw(n[0],i),this.cy=jw(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(Uv(a)||qv(a))&&(a=[0,a]),this.r0=jw(a[0],r),this.r=jw(a[1],r),Rv(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;Rv(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var r=t.getData();Rv(n,(function(e){e.scale.unionExtentFromData(r,r.mapDimension(e.dim))}))}}),this);var o=i.get("splitNumber"),r=new iV;r.setExtent(0,o),r.setInterval(1),Rv(n,(function(e,t){FW(e.scale,e.model,r)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(o){var r=new e(o,t,n);i.push(r),o.coordinateSystem=r})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),zH=RH;function VH(e){e.registerCoordinateSystem("radar",zH),e.registerComponentModel(kH),e.registerComponentView(LH),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}var BH="\0_ec_interaction_mutex";function jH(e,t){return!!FH(e)[t]}function FH(e){return e[BH]||(e[BH]={})}XR({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},xy);var GH=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=Fv(n._mousedownHandler,n),o=Fv(n._mousemoveHandler,n),r=Fv(n._mouseupHandler,n),a=Fv(n._mousewheelHandler,n),s=Fv(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Ov(Av(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",r)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",o),t.off("mouseup",r),t.off("mousewheel",a),t.off("pinch",s)},n}return S(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!ax(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&UH("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!jH(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,o=this._y,r=t-i,a=n-o;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&rx(e.event),HH(this,"pan","moveOnMouseMove",e,{dx:r,dy:a,oldX:i,oldY:o,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ax(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=UH("zoomOnMouseWheel",e,this._opt),n=UH("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),r=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=o>3?1.4:o>1?1.2:1.1;WH(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:r,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);WH(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){jH(this._zr,"globalPan")||WH(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(jy);function WH(e,t,n,i,o){e.pointerChecker&&e.pointerChecker(i,o.originX,o.originY)&&(rx(i.event),HH(e,t,n,i,o))}function HH(e,t,n,i,o){o.isAvailableBehavior=Fv(UH,null,n,i),e.trigger(t,o)}function UH(e,t,n){var i=n[e];return!e||i&&(!Uv(i)||t.event[i+"Key"])}var YH=GH;function qH(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function XH(e,t,n,i){var o=e.target,r=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/e.zoom;e.zoom=a,o.x-=(n-o.x)*(c-1),o.y-=(i-o.y)*(c-1),o.scaleX*=c,o.scaleY*=c,o.dirty()}var $H,ZH={axisPointer:1,tooltip:1,brush:1};function KH(e,t,n){var i=t.getComponentByElement(e.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!ZH.hasOwnProperty(i.mainType)&&o&&o.model!==n}function JH(e){Uv(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var QH={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},eU=jv(QH),tU={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nU=jv(tU),iU=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=JH(e);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Ew;this._root=i;var o=[],r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),cU(n,i,null,!0,!1);for(var l,c,u=n.firstChild;u;)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],r){var p=hU(r);p.length>=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=s&&(c=yU(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=i;(i=new Ew).add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new UM({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:o}},e.prototype._parseNode=function(e,t,n,i,o,r){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(o=!0),"text"===s&&(r=!0),"defs"===s||"switch"===s)a=t;else{if(!o){var c=$H[s];if(c&&yy($H,s)){a=c.call(this,e,t);var u=e.getAttribute("name");if(u){var p={name:u,namedFrom:null,svgNodeTagLower:s,el:a};n.push(p),"g"===s&&(l=p)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var d=oU[s];if(d&&yy(oU,s)){var h=d.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=h)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,o,r):3===g.nodeType&&r&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new LM({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});sU(t,n),cU(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,o=i;i&&"auto"!==i?"baseline"===i?o="alphabetic":"before-edge"===i||"text-before-edge"===i?o="top":"after-edge"===i||"text-after-edge"===i?o="bottom":"central"!==i&&"mathematical"!==i||(o="middle"):o="alphabetic",e.style.textBaseline=o}var r=t.__inheritedStyle;if(r){var a=r.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var i=n.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var r=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=r;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void($H={g:function(e,t){var n=new Ew;return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new UM;return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new OI;return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new lA;return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new PI;return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=lU(i));var o=new iA({shape:{points:n||[]},silent:!0});return sU(t,o),cU(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=lU(i));var o=new rA({shape:{points:n||[]},silent:!0});return sU(t,o),cU(e,o,this._defsUsePending,!1,!1),o},image:function(e,t){var n=new zM;return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",r=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r);var a=new Ew;return sU(t,a),cU(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||"0",r=e.getAttribute("dy")||"0",a=new Ew;return sU(t,a),cU(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(r),a},path:function(e,t){var n=AI(e.getAttribute("d")||"");return sU(t,n),cU(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),oU={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),o=parseInt(e.getAttribute("y2")||"0",10),r=new _A(t,n,i,o);return rU(e,r),aU(e,r),r},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),o=new SA(t,n,i);return rU(e,o),aU(e,o),o}};function rU(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function aU(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),o=void 0;o=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r={};vU(n,r,r);var a=r.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:o,color:a})}n=n.nextSibling}}function sU(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ov(t.__inheritedStyle,e.__inheritedStyle))}function lU(e){for(var t=hU(e),n=[],i=0;i<t.length;i+=2){var o=parseFloat(t[i]),r=parseFloat(t[i+1]);n.push([o,r])}return n}function cU(e,t,n,i,o){var r=t,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],o=null;n.replace(fU,(function(e,t,n){return i.push(t,n),""}));for(var r=i.length-1;r>0;r-=2){var a=i[r],s=i[r-1],l=hU(a);switch(o=o||[1,0,0,1,0,0],s){case"translate":hx(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":gx(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fx(o,o,-parseFloat(l[0])*gU,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":dx(o,[1,0,Math.tan(parseFloat(l[0])*gU),1,0,0],o);break;case"skewY":dx(o,[1,Math.tan(parseFloat(l[0])*gU),0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5])}}t.setLocalTransform(o)}}(e,t),vU(e,a,s),i||function(e,t,n){for(var i=0;i<eU.length;i++){var o=eU[i];null!=(r=e.getAttribute(o))&&(t[QH[o]]=r)}for(i=0;i<nU.length;i++){var r;o=nU[i];null!=(r=e.getAttribute(o))&&(n[tU[o]]=r)}}(e,a,s)),r.style=r.style||{},null!=a.fill&&(r.style.fill=pU(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=pU(r,"stroke",a.stroke,n)),Rv(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(r.style[e]=parseFloat(a[e]))})),Rv(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(r.style[e]=a[e])})),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=zv(hU(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var uU=/^url\(\s*#(.*?)\)/;function pU(e,t,n,i){var o=n&&n.match(uU);if(!o)return"none"===n&&(n=null),n;var r=sy(o[1]);i.push([e,t,r])}var dU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hU(e){return e.match(dU)||[]}var fU=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,gU=Math.PI/180;var mU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function vU(e,t,n){var i,o=e.getAttribute("style");if(o)for(mU.lastIndex=0;null!=(i=mU.exec(o));){var r=i[1],a=yy(QH,r)?QH[r]:null;a&&(t[a]=i[2]);var s=yy(tU,r)?tU[r]:null;s&&(n[s]=i[2])}}function yU(e,t){var n=t.width/e.width,i=t.height/e.height,o=Math.min(n,i);return{scale:o,x:-(e.x+e.width/2)*o+(t.x+t.width/2),y:-(e.y+e.height/2)*o+(t.y+t.height/2)}}var xU=fy(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),bU=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=fy(),this._freedGraphics=[],this._mapName=e,this._parsedXML=JH(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=fy();return Rv(e,(function(e){if(null==e.namedFrom){var i=new lB(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,i,o;try{ay(null!=(n=(t=e&&(i=e,o={ignoreViewBox:!0,ignoreRootClip:!0},(new iU).parse(i,o))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var r=new Ew;r.add(n),r.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,l=t.viewBoxRect,c=this._boundingRect;if(!c){var u=void 0,p=void 0,d=void 0,h=void 0;if(null!=a?(u=0,d=a):l&&(u=l.x,d=l.width),null!=s?(p=0,h=s):l&&(p=l.y,h=l.height),null==u||null==p){var f=n.getBoundingRect();null==u&&(u=f.x,d=f.width),null==p&&(p=f.y,h=f.height)}c=this._boundingRect=new Ax(u,p,d,h)}if(l){var g=yU(l,c);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}r.setClipPath(new UM({shape:c.plain()}));var m=[];return Rv(t.named,(function(e){var t;null!=xU.get(e.svgNodeTagLower)&&(m.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:r,boundingRect:c,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var _U=[126,25],wU="南海诸岛",SU=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],CU=0;CU<SU.length;CU++)for(var MU=0;MU<SU[CU].length;MU++)SU[CU][MU][0]/=10.5,SU[CU][MU][1]/=-14,SU[CU][MU][0]+=_U[0],SU[CU][MU][1]+=_U[1];var TU={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var IU=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var AU=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=fy(),this._mapName=e,this._specialAreas=n,this._geoJSON=Uv(i=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:DU(i)})}var o=fy(),r=[];return Rv(n.regions,(function(t){var n=t.name;e&&yy(e,n)&&(t=t.cloneShallow(n=e[n])),r.push(t),o.set(n,t)})),{regions:r,boundingRect:n.boundingRect||new Ax(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?pB(i,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===wU)return;t.push(new sB(wU,zv(SU,(function(e){return{type:"polygon",exterior:e}})),_U))}}(n,t),Rv(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=TU[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:IU[0]})}(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function DU(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}var kU=fy(),EU={registerMap:function(e,t,n){if(t.svg){var i=new bU(e,t.svg);kU.set(e,i)}else{var o=t.geoJson||t.geoJSON;o&&!t.features?n=t.specialAreas:o=t;i=new AU(e,o,n);kU.set(e,i)}},getGeoResource:function(e){return kU.get(e)},getMapForUser:function(e){var t=kU.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=kU.get(e);if(i)return i.load(t,n);"production"!==process.env.NODE_ENV&&console.error("Map "+e+" not exists. The GeoJSON of the map must be provided.")}},OU=["rect","circle","line","ellipse","polygon","polyline","path"],LU=fy(OU),NU=fy(OU.concat(["g"])),PU=fy(OU.concat(["g"])),RU=NS();function zU(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function VU(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var BU=function(){function e(e){var t=new Ew;this.uid=qD("ec_map_draw"),this._controller=new YH(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Ew),t.add(this._svgGroup=new Ew)}return e.prototype.draw=function(e,t,n,i,o){var r="geo"===e.mainType,a=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),p=u.raw,d=u.roam;!l.childAt(0)||o?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):RA(c,d,e);var h=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:h,isGeo:r,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=fy(),n=fy(),i=this._regionsGroup,o=e.transformInfoRaw,r=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*o.scaleX+o.x,e[1]*o.scaleY+o.y]}function u(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var o=c(e[i],n);o&&t.push(o)}return t}function p(e){return{shape:{points:u(e)}}}i.removeAll(),Rv(e.geo.regions,(function(o){var u=o.name,d=t.get(u),h=n.get(u)||{},f=h.dataIdx,g=h.regionModel;d||(d=t.set(u,new Ew),i.add(d),f=a?a.indexOfName(u):null,g=e.isGeo?r.getRegionModel(u):a?a.getItemModel(f):null,n.set(u,{dataIdx:f,regionModel:g}));var m=[],v=[];Rv(o.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=UU(t,l)),Rv(t,(function(e){m.push(new iA(p(e)))}))}else{var n=e.points;l&&(n=UU(n,l,!0)),Rv(n,(function(e){v.push(new rA(p(e)))}))}}));var y=c(o.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new yA({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),jU(e,i,f,g),FU(e,i,u,g,r,f,y),n&&(VU(i),Rv(i.states,VU))}}x(m),x(v,!0)})),t.each((function(t,i){var o=n.get(i),a=o.dataIdx,s=o.regionModel;GU(e,t,i,s,r,a),WU(e,t,i,s,r),HU(e,t,i,s,r)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=fy(),o=!1;Rv(this._svgGraphicRecord.named,(function(t){var n=t.name,r=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,c=a?a.indexOfName(n):null,u=r.getRegionModel(n);(null!=LU.get(s)&&l instanceof AC&&jU(e,l,c,u),l instanceof AC&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom)||(null!=PU.get(s)&&FU(e,l,n,u,r,c,null),GU(e,l,n,u,r,c),WU(e,l,n,u,r),null!=NU.get(s)&&("self"===HU(e,l,n,u,r)&&(o=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(o,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){VT(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var o=i.get(e);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=EU.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=EU.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,o=this._controller,r=this._controllerHost;r.zoomLimit=e.get("scaleLimit"),r.zoom=i.getZoom(),o.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,qH(r,e.dx,e.dy),n.dispatchAction(Ev(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,XH(r,e.scale,e.originX,e.originY),n.dispatchAction(Ev(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(t,o,r){return i.containPoint([o,r])&&!KH(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=RU(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){o._mouseDownFlag=!0})),t.on("click",(function(e){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},e}();function jU(e,t,n,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=zU(o),c=zU(r),u=zU(s),p=zU(a),d=e.data;if(d){var h=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),f&&(l.decal=UP(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=p,VT(t)}function FU(e,t,n,i,o,r,a){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);if(l||c||u&&u.showLabel){var p=l?n:r,d=void 0;(!s||r>=0)&&(d=o);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;xD(t,bD(i),{labelFetcher:d,labelDataIndex:p,defaultText:n},h);var f=t.getTextContent();if(f&&(RU(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function GU(e,t,n,i,o,r){e.data?e.data.setItemGraphicEl(r,t):lT(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function WU(e,t,n,i,o){e.data||dD({el:t,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function HU(e,t,n,i,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return tI(t,a,r.get("blurScope"),r.get("disabled")),e.isGeo&&function(e,t,n){var i=lT(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}(t,o,n),a}function UU(e,t,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=t({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),Rv(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),o}var YU=BU,qU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id)(r=this._mapDraw)&&o.add(r.group);else if(e.needsDrawMap){var r=this._mapDraw||new YU(n);o.add(r.group),r.draw(e,t,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var r=i.getItemLayout(n);if(r&&r.point){var a=r.point,s=r.offset,l=new OI({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:xT+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),p=c.indexOfName(u),d=i.getItemModel(n),h=d.getModel("label"),f=c.getItemGraphicEl(p);xD(l,bD(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(p,n)}},defaultText:u}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){RT(l,e)}}o.add(l)}}}))},t.type="map",t}(aN),XU=qU,$U=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return S(t,e),t.prototype.getInitialData=function(e){for(var t=cW(this,{coordDimensions:["value"],encodeDefaulter:Gv(vE,this)}),n=fy(),i=[],o=0,r=t.count();o<r;o++){var a=t.getName(o);n.set(a,!0)}return Rv(EU.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),o=this.getRawValue(e),r=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var c=a[l].originalData.indexOfName(r),u=i.mapDimension("value");isNaN(a[l].originalData.get(u,c))||s.push(a[l].name)}return CL("section",{header:s.join(", "),noHeader:!s.length,blocks:[CL("nameValue",{name:r,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=fP(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(XL),ZU=$U;function KU(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),Rv(t,(function(e,t){for(var n,i,o,r=(n=zv(e,(function(e){return e.getData()})),i=e[0].get("mapValueCalculation"),o={},Rv(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var i="ec-"+e.getName(n);o[i]=o[i]||[],isNaN(t)||o[i].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var r="ec-"+n[0].getName(t),a=0,s=1/0,l=-1/0,c=o[r].length,u=0;u<c;u++)s=Math.min(s,o[r][u]),l=Math.max(l,o[r][u]),a+=o[r][u];return 0===c?NaN:"min"===i?s:"max"===i?l:"average"===i?a/c:a}))),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(r.cloneShallow()),e[a].mainSeries=e[0]}))}function JU(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var o={};Rv(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var r=i.getName(t),a=n.getRegion(r);if(a&&!isNaN(e)){var s=o[r]||0,l=n.dataToPoint(a.getCenter());o[r]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var r=n.getData();r.each((function(e){var t=r.getName(e),n=r.getItemLayout(e)||{};n.showLabel=!o[t],r.setItemLayout(e,n)})),t[i]=!0}}))}var QU=Py,eY=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new lw,n._rawTransformable=new lw,n.name=t,n}return S(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new Ax(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new Ax(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new Ax(e,t,n,i));var a=r.parent;r.parent=null,r.decomposeTransform(),r.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[jw(e[0],t.getWidth()),jw(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Py([],i,e),n=Py([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),px(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],mx(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new lw;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?QU(n,e,i):wy(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?QU([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=tY(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=tY(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(lw);function tY(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var nY={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},iY=["lng","lat"],oY=function(e){function t(t,n,i){var o=e.call(this,t)||this;o.dimensions=iY,o.type="geo",o._nameCoordMap=fy(),o.map=n;var r,a=i.projection,s=EU.load(n,i.nameMap,i.nameProperty),l=EU.getGeoResource(n),c=o.resourceType=l?l.type:null,u=o.regions=s.regions,p=nY[l.type];if(o._regionsMap=s.regionsMap,o.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===c&&("production"!==process.env.NODE_ENV&&pS("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||("production"!==process.env.NODE_ENV&&pS("project and unproject must be both provided in the projeciton."),a=null)),o.projection=a,a)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(a);(r=r||h.clone()).union(h)}else r=s.boundingRect;return o.setBoundingRect(r.x,r.y,r.width,r.height),o.aspectScale=a?1:ny(i.aspectScale,p.aspectScale),o._invertLongitute=!a&&p.invertLongitute,o}return S(t,e),t.prototype._transformTo=function(e,t,n,i){var o=this.getBoundingRect(),r=this._invertLongitute;o=o.clone(),r&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new Ax(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,r&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(Uv(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=rY(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=rY(t);return i===this?i.pointToData(n):null},t}(eY);function rY(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",VS).models[0]||{}).coordinateSystem:null}Nv(oY,eY);var aY=oY;function sY(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],o=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])){var r=this.projection;if(r){var a=i[0],s=i[1],l=o[0],c=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var u=function(e,t,n,a){for(var s=n-e,l=a-t,c=0;c<=100;c++){var u=c/100,p=r.project([e+s*u,t+l*u]);Ry(i,i,p),zy(o,o,p)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var p,d,h,f=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),x=f.width/f.height*this.aspectScale,b=!1;if(g&&m&&(p=[jw(g[0],v),jw(g[1],y)],d=jw(m,Math.min(v,y)),isNaN(p[0])||isNaN(p[1])||isNaN(d)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):b=!0),b)h={},x>1?(h.width=d,h.height=d/x):(h.height=d,h.width=d*x),h.y=p[1]-h.height/2,h.x=p[0]-h.width/2;else{var _=e.getBoxLayoutParams();_.aspect=x,h=qk(_,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var lY=function(){function e(){this.dimensions=iY}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,o){var r=e.get("map"),a=new aY(r+o,r,Ev({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=sY,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var o={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();o[t]=o[t]||[],o[t].push(e)}})),Rv(o,(function(e,o){var r=zv(e,(function(e){return e.get("nameMap")})),a=new aY(o,o,Ev({nameMap:kv(r)},i(e[0])));a.zoomLimit=ty.apply(null,zv(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=sY,a.resize(e[0],t),Rv(e,(function(e){e.coordinateSystem=a,function(e,t){Rv(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var o=(e||[]).slice(),r=fy(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return Rv(EU.load(t,n,i).regions,(function(e){var t=e.name;!r.get(t)&&o.push({name:t})})),o},e}(),cY=new lY,uY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(e,t,n){var i=EU.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),_S(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=cY.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Vv(t.regions||[],(function(t,i){var o=i.name;return o&&(t.set(o,new UD(i,e,e.ecModel)),i.selected&&(n[o]=!0)),t}),fy()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new UD(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};return Hv(i)?(o.status=t,i(o)):Uv(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(tE),pY=uY;function dY(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function hY(e,t,n,i){var o=e.getZoom(),r=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(r):e.dataToPoint(r);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(dY(e,s),i)),null!=a){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(o*a,c),l)/o}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),p=(t.originY-e.y)*(a-1);e.x-=u,e.y-=p,e.updateTransform(),e.setCenter(dY(e,s),i),e.setZoom(a*o)}return{center:e.getCenter(),zoom:e.getZoom()}}var fY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return S(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new YU(n));var o=this._mapDraw;o.draw(e,t,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;nP(e.target,(function(e){return null!=(t=lT(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=lT(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(ZL),gY=fY;function mY(e,t,n){EU.registerMap(e,t,n)}function vY(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},o=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name),Rv(n.coordinateSystem.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var r=[];Rv(i,(function(e,t){i[t]&&r.push(t)})),o.push({geoIndex:n.componentIndex,name:r})})),{selected:i,allSelected:o,name:e.name}}))}e.registerCoordinateSystem("geo",cY),e.registerComponentModel(pY),e.registerComponentView(gY),e.registerImpl("registerMap",mY),e.registerImpl("getMap",(function(e){return EU.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var o=t.coordinateSystem;if("geo"===o.type){var r=hY(o,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&Rv(t.seriesGroup,(function(e){e.setCenter(r.center),e.setZoom(r.zoom)}))}}))}))}function yY(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,o=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,i=0,o=0;for(;--n>=0;){var r=t[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}(e);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var o=e,r=e,a=r.parentNode.children[0],s=t,l=o.hierNode.modifier,c=r.hierNode.modifier,u=a.hierNode.modifier,p=s.hierNode.modifier;s=wY(s),r=SY(r),s&&r;){o=wY(o),a=SY(a),o.hierNode.ancestor=e;var d=s.hierNode.prelim+p-r.hierNode.prelim-c+i(s,r);d>0&&(MY(CY(s,e,n),e,d),c+=d,l+=d),p+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=o.hierNode.modifier,u+=a.hierNode.modifier}s&&!wY(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=p-l),r&&!SY(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=c-u,n=e)}return n}(e,o,e.parentNode.hierNode.defaultAncestor||i[0],t)}function xY(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function bY(e){return arguments.length?e:TY}function _Y(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function wY(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function SY(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function CY(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function MY(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function TY(e,t){return e.parentNode===t.parentNode?1:2}var IY=function(){this.parentPoint=[],this.childPoints=[]},AY=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new IY},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,o=t.parentPoint,r=n[0],a=n[i-1];if(1===i)return e.moveTo(o[0],o[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=jw(t.forkPosition,1),p=[];p[l]=o[l],p[c]=o[c]+(a[c]-o[c])*u,e.moveTo(o[0],o[1]),e.lineTo(p[0],p[1]),e.moveTo(r[0],r[1]),p[l]=r[l],e.lineTo(p[0],p[1]),p[l]=a[l],e.lineTo(p[0],p[1]),e.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var h=n[d];e.moveTo(h[0],h[1]),p[l]=h[l],e.lineTo(p[0],p[1])}},t}(kM),DY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Ew,n}return S(t,e),t.prototype.init=function(e,t){this._controller=new YH(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),o=e.layoutInfo,r=this._mainGroup;"radial"===e.get("layout")?(r.x=o.x+o.width/2,r.y=o.y+o.height/2):(r.x=o.x,r.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;i.diff(a).add((function(t){kY(i,t)&&EY(i,t,null,r,e)})).update((function(t,n){var o=a.getItemGraphicEl(n);kY(i,t)?EY(i,t,o,r,e):o&&NY(a,n,o,r,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&NY(a,t,n,r,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var o=[],r=[];zC(i,o,r);var a=this._min,s=this._max;r[0]-o[0]==0&&(o[0]=a?a[0]:o[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-o[1]==0&&(o[1]=a?a[1]:o[1]-1,r[1]=s?s[1]:r[1]+1);var l=e.coordinateSystem=new eY;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(o[0],o[1],r[0]-o[0],r[1]-o[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=o,this._max=r},t.prototype._updateController=function(e,t,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(t,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!KH(t,n,e)})),o.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){qH(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){XH(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(aN);function kY(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function EY(e,t,n,i,o){var r=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?l:"#fff",u=e.tree.root,p=a.parentNode===u?a:a.parentNode||a,d=e.getItemGraphicEl(p.dataIndex),h=p.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,g=a.getLayout();r?((n=new BF(e,t,null,{symbolInnerColor:c,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,RA(n,{x:g.x,y:g.y},o);var m=n.getSymbolPath();if("radial"===o.get("layout")){var v=u.children[0],y=v.getLayout(),x=v.children.length,b=void 0,_=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(b=Math.atan2(w.y-y.y,w.x-y.x))<0&&(b=2*Math.PI+b),(_=w.x<y.x)&&(b-=Math.PI)}else(b=Math.atan2(g.y-y.y,g.x-y.x))<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=g.x<y.x)&&(b-=Math.PI):(_=g.x>y.x)||(b-=Math.PI);var S=_?"left":"right",C=s.getModel("label"),M=C.get("rotate"),T=M*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:C.get("position")||S,rotation:null==M?-b:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?gy(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(lT(n).focus=D),function(e,t,n,i,o,r,a,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),p=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new hA({shape:PY(u,p,d,o,o)})),RA(g,{shape:PY(u,p,d,r,a)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],y=0;y<m.length;y++){var x=m[y].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new AY({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:p,forkPosition:h}})),RA(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else if("production"!==process.env.NODE_ENV)throw new Error("The polyline edgeShape can only be used in orthogonal layout");g&&("polyline"!==c||t.isExpand)&&(g.useStyle(Ov({strokeNoScale:!0,fill:null},f)),rI(g,l,"lineStyle"),VT(g),s.add(g))}(o,a,u,n,f,h,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===gT||RT(n.__edge,t)}})}function OY(e,t,n,i,o){var r=LY(t.tree.root,e),a=r.source,s=r.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var c=t.getItemGraphicEl(a.dataIndex).__edge,u=l.__edge||(!1===a.isExpand||1===a.children.length?c:void 0),p=i.get("edgeShape"),d=i.get("layout"),h=i.get("orient"),f=i.get(["lineStyle","curveness"]);u&&("curve"===p?BA(u,{shape:PY(d,h,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(u)},removeOpt:o}):"polyline"===p&&"orthogonal"===i.get("layout")&&BA(u,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(u)},removeOpt:o}))}}function LY(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function NY(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=LY(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};BA(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach((function(t){OY(t,e,i,o,s)})),OY(r,e,i,o,s)}function PY(e,t,n,i,o){var r,a,s,l,c,u,p,d;if("radial"===e){c=i.rawX,p=i.rawY,u=o.rawX,d=o.rawY;var h=_Y(c,p),f=_Y(c,p+(d-p)*n),g=_Y(u,d+(p-d)*n),m=_Y(u,d);return{x1:h.x||0,y1:h.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,p=i.y,u=o.x,d=o.y,"LR"!==t&&"RL"!==t||(r=c+(u-c)*n,a=p,s=u+(c-u)*n,l=d),"TB"!==t&&"BT"!==t||(r=c,a=p+(d-p)*n,s=u,l=d+(p-d)*n),{x1:c,y1:p,x2:u,y2:d,cpx1:r,cpy1:a,cpx2:s,cpy2:l}}var RY=DY,zY=NS();function VY(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,HY(t,n,e),Rv(n,(function(n){Rv(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Gv(BY,e))}))})),t.wrapMethod("cloneShallow",Gv(FY,e)),Rv(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Gv(jY,e))})),ay(n[t.dataType]===t)}function BY(e,t){if(function(e){return zY(e).mainData===e}(this)){var n=Ev({},zY(this).datas);n[this.dataType]=t,HY(t,n,e)}else UY(t,this.dataType,zY(this).mainData,e);return t}function jY(e,t){return e.struct&&e.struct.update(),t}function FY(e,t){return Rv(zY(t).datas,(function(n,i){n!==t&&UY(n.cloneShallow(),i,t,e)})),t}function GY(e){var t=zY(this).mainData;return null==e||null==t?t:zY(t).datas[e]}function WY(){var e=zY(this).mainData;return null==e?[{data:e}]:zv(jv(zY(e).datas),(function(t){return{type:t,data:zY(e).datas[t]}}))}function HY(e,t,n){zY(e).datas={},Rv(t,(function(t,i){UY(t,i,e,n)}))}function UY(e,t,n,i){zY(n).datas[t]=e,zY(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=GY,e.getLinkedDataAll=WY}var YY=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){Hv(e)&&(n=t,t=e,e=null),Uv(e=e||{})&&(e={order:e});var i,o=e.order||"preorder",r=this[e.attr||"children"];"preorder"===o&&(i=t.call(n,this));for(var a=0;!i&&a<r.length;a++)r[a].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var o=n[t].getNodeById(e);if(o)return o}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var o=n[t].contains(e);if(o)return o}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),qY=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var o=new e(n),r=[],a=1;!function e(t,n){var i=t.value;a=Math.max(a,Wv(i)?i.length:1),r.push(t);var s=new YY(AS(t.name,""),o);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):o.root=s,o._nodes.push(s);var l=t.children;if(l)for(var c=0;c<l.length;c++)e(l[c],s)}(t),o.root.updateDepthAndHeight(0);var s=Ez(r,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new kz(s,n);return l.initData(r),i&&i(l),VY({mainData:l,struct:o,structAttr:"tree"}),o.update(),o},e}();function XY(e,t,n){if(e&&Lv(t,e.type)>=0){var i=n.getData().tree.root,o=e.targetNode;if(Uv(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=e.targetNodeId;if(null!=r&&(o=i.getNodeById(r)))return{node:o}}}function $Y(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function ZY(e,t){return Lv($Y(e),t)>=0}function KY(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var JY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return S(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new UD(n,this,this.ecModel),o=qY.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}));var r=0;o.eachNode("preorder",(function(e){e.depth>r&&(r=e.depth)}));var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a})),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(e),a=r.getValue(),s=r.name;r&&r!==o;)s=r.parentNode.name+"."+s,r=r.parentNode;return CL("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=KY(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(XL),QY=JY;function eq(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;r>=0;r--)i.push(o[r])}}function tq(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return qk(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var i=e.get("layout"),o=0,r=0,a=null;"radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,a=bY((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=n.width,r=n.height,a=bY());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,o=[t];n=o.pop();)if(i=n.children,n.isExpand&&i.length)for(var r=i.length-1;r>=0;r--){var a=i[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},o.push(a)}}(s),function(e,t,n){for(var i,o=[e],r=[];i=o.pop();)if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}for(;i=r.pop();)t(i,n)}(l,yY,a),s.hierNode.modifier=-l.hierNode.prelim,eq(l,xY);var c=l,u=l,p=l;eq(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>p.depth&&(p=e)}));var d=c===u?1:a(c,u)/2,h=d-c.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=o/(u.getLayout().x+d+h),g=r/(p.depth-1||1),eq(l,(function(e){m=(e.getLayout().x+h)*f,v=(e.depth-1)*g;var t=_Y(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=r/(u.getLayout().x+d+h),f=o/(p.depth-1||1),eq(l,(function(e){v=(e.getLayout().x+h)*g,m="LR"===y?(e.depth-1)*f:o-(e.depth-1)*f,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=o/(u.getLayout().x+d+h),g=r/(p.depth-1||1),eq(l,(function(e){m=(e.getLayout().x+h)*f,v="TB"===y?(e.depth-1)*g:r-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}(e,t)}))}function nq(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();Ev(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)}))}))}var iq=["treemapZoomToNode","treemapRender","treemapMove"];function oq(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var i=t;i&&i.depth>1;)i=i.parentNode;var o=AE(e.ecModel,i.name||i.dataIndex+"",n);t.setVisual("decal",o)}))}var rq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return S(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};aq(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},r=new UD({itemStyle:o},this,t);i=e.levels=function(e,t){var n,i,o=bS(t.get("color")),r=bS(t.get(["aria","decal","decals"]));if(!o)return;e=e||[],Rv(e,(function(e){var t=new UD(e),o=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||o&&"none"!==o)&&(n=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(i=!0)}));var a=e[0]||(e[0]={});n||(a.color=o.slice());!i&&r&&(a.decal=r.slice());return e}(i,t);var a=zv(i||[],(function(e){return new UD(e,r,t)}),this),s=qY.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||r,e}))}));return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.getRawValue(e);return CL("nameValue",{name:i.getName(e),value:o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=KY(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Ev(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=fy(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){oq(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(XL);function aq(e){var t=0;Rv(e.children,(function(e){aq(e);var n=e.value;Wv(n)&&(n=n[0]),t+=n}));var n=e.value;Wv(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),Wv(e.value)?e.value[0]=n:e.value=n}var sq=rq,lq=function(){function e(e){this.group=new Ew,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var o=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),o.get("show")&&n){var a=o.getModel("itemStyle"),s=o.getModel("emphasis"),l=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,a,s,l,c,i),Xk(r,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var o=AS(i.getModel().get("name"),""),r=n.getTextRect(o),a=Math.max(r.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:i,text:o,width:a})}},e.prototype._renderContent=function(e,t,n,i,o,r,a){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=function(e,t,n){var i=t.width,o=t.height,r=jw(e.left,i),a=jw(e.top,o),s=jw(e.right,i),l=jw(e.bottom,o);return(isNaN(r)||isNaN(parseFloat(e.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=o),n=Pk(n||0),{width:Math.max(s-r-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}(t.pos,t.box),p=t.totalWidth,d=t.renderList,h=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],m=g.node,v=g.width,y=g.text;p>u.width&&(p-=v-l,v=l,y=null);var x=new iA({shape:{points:cq(s,0,v,c,f===d.length-1,0===f)},style:Ov(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new sT({style:_D(o,{text:y})}),textConfig:{position:"inside"},z2:1e4*xT,onclick:Gv(a,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=_D(r,{text:y}),x.ensureState("emphasis").style=h,tI(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),uq(x,e,m),s+=v+8}},e.prototype.remove=function(){this.group.removeAll()},e}();function cq(e,t,n,i,o,r){var a=[[o?e:e-5,t],[e+n,t],[e+n,t+i],[o?e:e-5,t+i]];return!r&&a.splice(2,0,[e+n+5,t+i/2]),!o&&a.push([e,t+i/2]),a}function uq(e,t,n){lT(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&KY(n,t)}}var pq=lq,dq=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,o){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:o}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var hq=Ew,fq=UM,gq="label",mq="upperLabel",vq=10*xT,yq=2*xT,xq=3*xT,bq=eC([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),_q=function(e){var t=bq(e);return t.stroke=t.fill=t.lineWidth=null,t},wq=NS(),Sq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return S(t,e),t.prototype.render=function(e,t,n,i){if(!(Lv(t.findComponents({mainType:"series",subType:"treemap",query:i}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=XY(i,["treemapZoomToNode","treemapRootToNode"],e),r=i&&i.type,a=e.layoutInfo,s=!this._oldTree,l=this._storage,c="treemapRootToNode"===r&&o&&l?{rootNodeGroup:l.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,u=this._giveContainerGroup(a),p=e.get("animation"),d=this._doRender(u,e,c);!p||s||r&&"treemapZoomToNode"!==r&&"treemapRootToNode"!==r?d.renderFinally():this._doAnimation(u,d,e,c),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new hq,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,o=this._oldTree,r={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function c(e,i,o,c){return function(e,t,n,i,o,r,a,s,l,c){if(!a)return;var u=a.getLayout(),p=e.getData(),d=a.getModel();if(p.setItemGraphicEl(a.dataIndex,null),!u||!u.isInView)return;var h=u.width,f=u.height,g=u.borderWidth,m=u.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,b=u.upperHeight,_=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,I=j("nodeGroup",hq);if(!I)return;if(l.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),wq(I).nodeWidth=h,wq(I).nodeHeight=f,u.isAboveViewRoot)return I;var A=j("background",fq,c,yq);A&&P(I,A,_&&u.upperLabelHeight);var D=d.getModel("emphasis"),k=D.get("focus"),E=D.get("blurScope"),O=D.get("disabled"),L="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(_)sI(I)&&aI(I,!1),A&&(aI(A,!O),p.setItemGraphicEl(a.dataIndex,A),nI(A,L,E));else{var N=j("content",fq,c,xq);N&&R(I,N),A.disableMorphing=!0,A&&sI(A)&&aI(A,!1),aI(I,!O),p.setItemGraphicEl(a.dataIndex,I),nI(I,L,E)}return I;function P(t,n,i){var o=lT(n);if(o.dataIndex=a.dataIndex,o.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:f,r:T}),m)z(n);else{n.invisible=!1;var r=a.getVisual("style"),s=r.stroke,l=_q(w);l.fill=s;var c=bq(S);c.fill=S.get("borderColor");var u=bq(C);u.fill=C.get("borderColor");var p=bq(M);if(p.fill=M.get("borderColor"),i){var d=h-2*g;V(n,s,r.opacity,{x:g,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=p,VT(n)}t.add(n)}function R(t,n){var i=lT(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var o=Math.max(h-2*g,0),r=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:o,height:r,r:T}),m)z(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=_q(w);c.fill=l,c.decal=s.decal;var u=bq(S),p=bq(C),d=bq(M);V(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=p,n.ensureState("select").style=d,VT(n)}t.add(n)}function z(e){!e.invisible&&r.push(e)}function V(t,n,i,o){var r=d.getModel(o?mq:gq),s=AS(d.get("name"),null),l=r.getShallow("show");xD(t,bD(d,o?mq:gq),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var c=t.getTextContent();if(c){var p=c.style,h=ry(p.padding||0);o&&(t.setTextConfig({layoutRect:o}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-h[1]-h[3],0),n=Math.max((o?o.height:t.shape.height)-h[0]-h[2],0);p.width===e&&p.height===n||c.setStyle({width:e,height:n})},p.truncateMinChar=2,p.lineOverflow="truncate",B(p,o,u);var f=c.getState("emphasis");B(f?f.style:null,o,u)}}function B(t,n,i){var o=t?t.text:null;if(!n&&i.isLeafRoot&&null!=o){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+o:o}}function j(e,i,r,a){var s=null!=y&&n[e][y],l=o[e];return s?(n[e][y]=null,F(l,s)):m||((s=new i)instanceof AC&&(s.z2=function(e,t){return e*vq+t}(r,a)),G(l,s)),t[e][v]=s}function F(e,t){var n=e[v]={};t instanceof hq?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Ev({},t.shape)}function G(e,t){var n=e[v]={},r=a.parentNode,s=t instanceof Ew;if(r&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=o.background[r.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}(t,a,s,n,r,l,e,i,o,c)}!function e(t,n,i,o,r){o?(n=t,Rv(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new az(n,t,a,a).add(s).update(s).remove(Gv(s,null)).execute();function a(e){return e.getId()}function s(a,s){var l=null!=a?t[a]:null,u=null!=s?n[s]:null,p=c(l,u,i,r);p&&e(l&&l.viewChildren||[],u&&u.viewChildren||[],p,o,r+1)}}(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var u=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&Rv(e,(function(e,n){var i=t[n];Rv(e,(function(e){e&&(i.push(e),wq(e).willDelete=!0)}))})),t}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:r,willDeleteEls:u,renderFinally:function(){Rv(u,(function(e){Rv(e,(function(e){e.parent&&e.parent.remove(e)}))})),Rv(l,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,i){var o=n.get("animationDurationUpdate"),r=n.get("animationEasing"),a=(Hv(o)?0:o)||0,s=(Hv(r)?null:r)||"cubicOut",l=new dq;Rv(t.willDeleteEls,(function(e,t){Rv(e,(function(e,n){if(!e.invisible){var o,r=e.parent,c=wq(r);if(i&&"drillDown"===i.direction)o=r===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,p=0;c.willDelete||(u=c.nodeWidth/2,p=c.nodeHeight/2),o="nodeGroup"===t?{x:u,y:p,style:{opacity:0}}:{shape:{x:u,y:p,width:0,height:0},style:{opacity:0}}}o&&l.add(e,o,a,0,s)}}))})),Rv(this._storage,(function(e,n){Rv(e,(function(e,i){var o=t.lastsForAnimation[n][i],r={};o&&(e instanceof Ew?null!=o.oldX&&(r.x=e.x,r.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(r.shape=Ev({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),l.add(e,r,a,0,s))}))}),this),this._state="animating",l.finished(Fv((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new YH(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",Fv(this._onPan,this)),t.on("zoom",Fv(this._onZoom,this)));var n=new Ax(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var r=new Ax(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];hx(s,s,[-(t-=a.x),-(n-=a.y)]),gx(s,s,[e.scale,e.scale]),hx(s,s,[t,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var r=o.hostTree.data.getItemModel(o.dataIndex),a=r.get("link",!0),s=r.get("target",!0)||"blank";a&&Fk(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new pq(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(ZY(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var r=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},t.type="treemap",t}(aN);var Cq=Sq,Mq=Rv,Tq=Xv,Iq=-1,Aq=function(){function e(t){var n=t.mappingMethod,i=t.type,o=this.option=Av(t);this.type=i,this.mappingMethod=n,this._normalizeData=Vq[n];var r=e.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[n],"piecewise"===n?(Dq(o),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,Rv(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(o)):"category"===n?o.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(Mq(t,(function(e,t){n[e]=t})),!Wv(i)){var o=[];Xv(i)?Mq(i,(function(e,t){var i=n[t];o[null!=i?i:Iq]=e})):o[Iq]=i,i=zq(e,o)}for(var r=t.length-1;r>=0;r--)null==i[r]&&(delete n[t[r]],t.pop())}(o):Dq(o,!0):(ay("linear"!==n||o.dataExtent),Dq(o))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return Fv(this._normalizeData,this)},e.listVisualTypes=function(){return jv(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){Xv(e)?Rv(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var o,r=Wv(t)?[]:Xv(t)?{}:(o=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);o?r=a:r[t]=a})),r},e.retrieveVisuals=function(t){var n,i={};return t&&Mq(e.visualHandlers,(function(e,o){t.hasOwnProperty(o)&&(i[o]=t[o],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(Wv(e))e=e.slice();else{if(!Tq(e))return[];var t=[];Mq(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===e||Uv(s)&&s===e+"")return r;n&&p(s,r)}}for(r=0,a=t.length;r<a;r++){var l=t[r],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(Bq(u[1],e,c[1]))return r}else if(c[1]===1/0){if(Bq(u[0],c[0],e))return r}else if(Bq(u[0],c[0],e)&&Bq(u[1],e,c[1]))return r;n&&p(c[0],r),n&&p(c[1],r)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function p(t,n){var r=Math.abs(t-e);r<o&&(o=r,i=n)}},e.visualHandlers={color:{applyVisual:Oq("color"),getColorMapper:function(){var e=this.option;return Fv("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Lq.call(this,e)}:function(t,n,i){var o=!!i;return!n&&(t=this._normalizeData(t)),i=qb(t,e.parsedVisual,i),o?i:Zb(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Zb(qb(e,this.option.parsedVisual),"rgba")},category:Lq,piecewise:function(e,t){var n=Rq.call(this,t);return null==n&&(n=Zb(qb(e,this.option.parsedVisual),"rgba")),n},fixed:Nq}},colorHue:kq((function(e,t){return Xb(e,t)})),colorSaturation:kq((function(e,t){return Xb(e,null,t)})),colorLightness:kq((function(e,t){return Xb(e,null,null,t)})),colorAlpha:kq((function(e,t){return $b(e,t)})),decal:{applyVisual:Oq("decal"),_normalizedToVisual:{linear:null,category:Lq,piecewise:null,fixed:null}},opacity:{applyVisual:Oq("opacity"),_normalizedToVisual:Pq([0,1])},liftZ:{applyVisual:Oq("liftZ"),_normalizedToVisual:{linear:Nq,category:Nq,piecewise:Nq,fixed:Nq}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:Eq,category:Lq,piecewise:function(e,t){var n=Rq.call(this,t);return null==n&&(n=Eq.call(this,e)),n},fixed:Nq}},symbolSize:{applyVisual:Oq("symbolSize"),_normalizedToVisual:Pq([0,1])}},e}();function Dq(e,t){var n=e.visual,i=[];Xv(n)?Mq(n,(function(e){i.push(e)})):null!=n&&i.push(n);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),zq(e,i)}function kq(e){return{applyVisual:function(t,n,i){var o=this.mapValueToVisual(t);i("color",e(n("color"),o))},_normalizedToVisual:Pq([0,1])}}function Eq(e){var t=this.option.visual;return t[Math.round(Bw(e,[0,1],[0,t.length-1],!0))]||{}}function Oq(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function Lq(e){var t=this.option.visual;return t[this.option.loop&&e!==Iq?e%t.length:e]}function Nq(){return this.option.visual[0]}function Pq(e){return{linear:function(t){return Bw(t,e,this.option.visual,!0)},category:Lq,piecewise:function(t,n){var i=Rq.call(this,n);return null==i&&(i=Bw(t,e,this.option.visual,!0)),i},fixed:Nq}}function Rq(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=n[Aq.findPieceIndex(e,n)];if(i&&i.visual)return i.visual[this.type]}}function zq(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=zv(t,(function(e){var t=Hb(e);return t||"production"===process.env.NODE_ENV||pS("'"+e+"' is an illegal color, fallback to '#000000'",!0),t||[0,0,0,1]}))),t}var Vq={linear:function(e){return Bw(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Aq.findPieceIndex(e,t,!0);if(null!=n)return Bw(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Iq:t},fixed:xy};function Bq(e,t,n){return e?t<=n:t<n}var jq=Aq,Fq=NS(),Gq={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||Wq(t,{},e.getViewRoot().getAncestors(),e)}};function Wq(e,t,n,i){var o=e.getModel(),r=e.getLayout(),a=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,l=o.getModel("itemStyle"),c=function(e,t,n){var i=Ev({},t),o=n.designatedVisualItemStyle;return Rv(["color","colorAlpha","colorSaturation"],(function(n){o[n]=t[n];var r=e.get(n);o[n]=null,null!=r&&(i[n]=r)})),i}(l,t,i),u=a.ensureUniqueItemVisual(e.dataIndex,"style"),p=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(p=function(e,t){return null!=t?Xb(t,null,null,e):null}(d,s=Hq(c))),u.stroke=p;var h=e.viewChildren;if(h&&h.length){var f=function(e,t,n,i,o,r){if(!r||!r.length)return;var a=Yq(t,"color")||null!=o.color&&"none"!==o.color&&(Yq(t,"colorAlpha")||Yq(t,"colorSaturation"));if(!a)return;var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),p={type:a.name,dataExtent:c,visual:a.range};"color"!==p.type||"index"!==u&&"id"!==u?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var d=new jq(p);return Fq(d).drColorMappingBy=u,d}(0,o,r,0,c,h);Rv(h,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var r=function(e,t,n,i,o,r){var a=Ev({},t);if(o){var s=o.type,l="color"===s&&Fq(o).drColorMappingBy,c="index"===l?i:"id"===l?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=o.mapValueToVisual(c)}return a}(o,c,e,t,f,i);Wq(e,r,n,i)}}))}else s=Hq(c),u.fill=s}}function Hq(e){var t=Uq(e,"color");if(t){var n=Uq(e,"colorAlpha"),i=Uq(e,"colorSaturation");return i&&(t=Xb(t,null,null,i)),n&&(t=$b(t,n)),t}}function Uq(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function Yq(e,t){var n=e.get(t);return Wv(n)&&n.length?{name:t,range:n}:null}var qq=Math.max,Xq=Math.min,$q=ty,Zq=Rv,Kq=["itemStyle","borderWidth"],Jq=["itemStyle","gapWidth"],Qq=["upperLabel","show"],eX=["upperLabel","height"],tX={seriesType:"treemap",reset:function(e,t,n,i){var o=n.getWidth(),r=n.getHeight(),a=e.option,s=qk(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=jw($q(s.width,l[0]),o),u=jw($q(s.height,l[1]),r),p=i&&i.type,d=XY(i,["treemapZoomToNode","treemapRootToNode"],e),h="treemapRender"===p||"treemapMove"===p?i.rootRect:null,f=e.getViewRoot(),g=$Y(f);if("treemapMove"!==p){var m="treemapZoomToNode"===p?function(e,t,n,i,o){var r,a=(t||{}).node,s=[i,o];if(!a||a===n)return s;var l=i*o,c=l*e.option.zoomToNodeRatio;for(;r=a.parentNode;){for(var u=0,p=r.children,d=0,h=p.length;d<h;d++)u+=p[d].getValue();var f=a.getValue();if(0===f)return s;c*=u/f;var g=r.getModel(),m=g.get(Kq);(c+=4*m*m+(3*m+Math.max(m,aX(g)))*Math.pow(c,.5))>qw&&(c=qw),a=r}c<l&&(c=l);var v=Math.pow(c/l,.5);return[i*v,o*v]}(e,d,f,c,u):h?[h.width,h.height]:[c,u],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};f.setLayout(x),nX(f,y,!1,0),x=f.getLayout(),Zq(g,(function(e,t){var n=(g[t+1]||f).getValue();e.setLayout(Ev({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var b=e.getData().tree.root;b.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var o=n.node,r=o.getLayout();if(!r)return i;var a=[r.width/2,r.height/2],s=o;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,h,d),!0),e.setLayoutInfo(s),rX(b,new Ax(-s.x,-s.y,o,r),g,f,0)}};function nX(e,t,n,i){var o,r;if(!e.isRemoved()){var a=e.getLayout();o=a.width,r=a.height;var s=e.getModel(),l=s.get(Kq),c=s.get(Jq)/2,u=aX(s),p=Math.max(l,u),d=l-c,h=p-c;e.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:u},!0);var f=(o=qq(o-2*d,0))*(r=qq(r-d-h,0)),g=function(e,t,n,i,o,r){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!l)return e.viewChildren=[];a=Bv(a,(function(e){return!e.isRemoved()})),function(e,t){t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}))}(a,s);var c=function(e,t,n){for(var i=0,o=0,r=t.length;o<r;o++)i+=t[o].getValue();var a,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],Zq(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(t,a,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,n,i,o){if(!i)return n;for(var r=e.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var c=o["asc"===i?a-l-1:l].getValue();c/n*t<r&&(s=l,n-=c)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}(t,n,c.sum,s,a),0===c.sum)return e.viewChildren=[];for(var u=0,p=a.length;u<p;u++){var d=a[u].getValue()/c.sum*n;a[u].setLayout({area:d})}l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0);return e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}(e,s,f,t,n,i);if(g.length){var m={x:d,y:h,width:o,height:r},v=Xq(o,r),y=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var w=g[b];x.push(w),x.area+=w.getLayout().area;var S=iX(x,v,t.squareRatio);S<=y?(b++,y=S):(x.area-=x.pop().getLayout().area,oX(x,v,m,c,!1),v=Xq(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&oX(x,v,m,c,!0),!n){var C=s.get("childrenVisibleMin");null!=C&&f<C&&(n=!0)}for(b=0,_=g.length;b<_;b++)nX(g[b],t,n,i+1)}}}function iX(e,t,n){for(var i=0,o=1/0,r=0,a=void 0,s=e.length;r<s;r++)(a=e[r].getLayout().area)&&(a<o&&(o=a),a>i&&(i=a));var l=e.area*e.area,c=t*t*n;return l?qq(c*i/l,l/(c*o)):1/0}function oX(e,t,n,i,o){var r=t===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],c=n[s[r]],u=t?e.area/t:0;(o||u>n[l[a]])&&(u=n[l[a]]);for(var p=0,d=e.length;p<d;p++){var h=e[p],f={},g=u?h.getLayout().area/u:0,m=f[l[a]]=qq(u-2*i,0),v=n[s[r]]+n[l[r]]-c,y=p===d-1||v<g?v:g,x=f[l[r]]=qq(y-2*i,0);f[s[a]]=n[s[a]]+Xq(i,m/2),f[s[r]]=c+Xq(i,x/2),c+=y,h.setLayout(f,!0)}n[s[a]]+=u,n[l[a]]-=u}function rX(e,t,n,i,o){var r=e.getLayout(),a=n[o],s=a&&a===e;if(!(a&&!s||o===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(r),isAboveViewRoot:s},!0);var l=new Ax(t.x-r.x,t.y-r.y,t.width,t.height);Zq(e.viewChildren||[],(function(e){rX(e,l,n,i,o+1)}))}}function aX(e){return e.get(Qq)?e.get(eX):0}function sX(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph().data,o=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){qv(n)&&(n=o[n]);for(var r=0;r<t.length;r++)if(!t[r].isSelected(n))return!1}return!0}))}))}function lX(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),o={};n.each((function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(r,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=a.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){Uv(t)&&(t=o["ec-"+t]);var r=n.getItemVisual(t,"style");Ev(i.ensureUniqueItemVisual(e,"style"),r);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(e,a[s],n.getItemVisual(t,a[s]))}}))}))}function cX(e){return e instanceof Array||(e=[e,e]),e}function uX(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=cX(e.get("edgeSymbol")),o=cX(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),o=t.getEdgeByIndex(e),r=cX(i.getShallow("symbol",!0)),a=cX(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Ev(l,s),l.stroke){case"source":var c=o.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");l.stroke=c&&c.fill}r[0]&&o.setVisual("fromSymbol",r[0]),r[1]&&o.setVisual("toSymbol",r[1]),a[0]&&o.setVisual("fromSymbolSize",a[0]),a[1]&&o.setVisual("toSymbolSize",a[1])}))}))}var pX="--\x3e",dX=function(e){return e.get("autoCurveness")||null},hX=function(e,t){var n=dX(e),i=20,o=[];if(qv(n))i=n;else if(Wv(n))return void(e.__curvenessList=n);t>i&&(i=t);var r=i%2?i+2:i+3;o=[];for(var a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=o},fX=function(e,t,n){var i=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[n.uid,i,o].join(pX)},gX=function(e){var t=e.split(pX);return[t[0],t[2],t[1]].join(pX)},mX=function(e,t){var n=fX(e.node1,e.node2,t);return t.__edgeMap[n]},vX=function(e,t){return yX(fX(e.node1,e.node2,t),t)+yX(fX(e.node2,e.node1,t),t)},yX=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function xX(e,t,n,i){var o=dX(t),r=Wv(o);if(!o)return null;var a=mX(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var c=vX(e,t);hX(t,c),e.lineStyle=e.lineStyle||{};var u=fX(e.node1,e.node2,t),p=t.__curvenessList,d=r||c%2?0:1;if(a.isForward)return p[d+s];var h=gX(u),f=yX(h,t),g=p[s+f+d];return i?r?o&&0===o[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:p[s+f+d]}function bX(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),_X(n,e)}}function _X(e,t){e.eachEdge((function(e,n){var i=iy(e.getModel().get(["lineStyle","curveness"]),-xX(e,t,n,!0),0),o=Sy(e.node1.getLayout()),r=Sy(e.node2.getLayout()),a=[o,r];+i&&a.push([(o[0]+r[0])/2-(o[1]-r[1])*i,(o[1]+r[1])/2-(r[0]-o[0])*i]),e.setLayout(a)}))}function wX(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),o=[];Rv(n.dimensions,(function(e){o=o.concat(i.mapDimensionsAll(e))}));for(var r=0;r<i.count();r++){for(var a=[],s=!1,l=0;l<o.length;l++){var c=i.get(o[l],r);isNaN(c)||(s=!0),a.push(c)}s?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}_X(i.graph,e)}else t&&"none"!==t||bX(e)}))}function SX(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function CX(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var MX=Math.PI,TX=[];function IX(e,t,n,i){var o=e.coordinateSystem;if(!o||"view"===o.type){var r=o.getBoundingRect(),a=e.getData(),s=a.graph,l=r.width/2+r.x,c=r.height/2+r.y,u=Math.min(r.width,r.height)/2,p=a.count();if(a.setLayout({cx:l,cy:c}),p){if(n){var d=o.pointToData(i),h=d[0],f=d[1],g=[h-l,f-c];ky(g,g),Dy(g,g,u),n.setLayout([l+g[0],c+g[1]],!0),DX(n,e.get(["circular","rotateLabel"]),l,c)}AX[t](e,s,a,u,l,c,p),s.eachEdge((function(t,n){var i,o=iy(t.getModel().get(["lineStyle","curveness"]),xX(t,e,n),0),r=Sy(t.node1.getLayout()),a=Sy(t.node2.getLayout()),s=(r[0]+a[0])/2,u=(r[1]+a[1])/2;+o&&(i=[l*(o*=3)+s*(1-o),c*o+u*(1-o)]),t.setLayout([r,a,i])}))}}}var AX={value:function(e,t,n,i,o,r,a){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=n}))},symbolSize:function(e,t,n,i,o,r,a){var s=0;TX.length=a;var l=SX(e);t.eachNode((function(e){var t=CX(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=MX/2),TX[e.dataIndex]=n,s+=2*n}));var c=(2*MX-s)/a/2,u=0;t.eachNode((function(e){var t=c+TX[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(u)+o,i*Math.sin(u)+r]),u+=t}))}};function DX(e,t,n,i){var o=e.getGraphicEl();if(o){var r=e.getModel().get(["label","rotate"])||0,a=o.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var c=s[0]<n;c&&(l-=Math.PI);var u=c?"left":"right";a.setTextConfig({rotation:-l,position:u,origin:"center"});var p=a.ensureState("emphasis");Ev(p.textConfig||(p.textConfig={}),{position:u})}else a.setTextConfig({rotation:r*=Math.PI/180})}}function kX(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&IX(e,"symbolSize")}))}var EX=Ty;function OX(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),o=i.data,r=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&IX(e,"value"):bX(e);var l=o.getDataExtent("value"),c=r.getDataExtent("value"),u=a.get("repulsion"),p=a.get("edgeLength"),d=Wv(u)?u:[u,u],h=Wv(p)?p:[p,p];h=[h[1],h[0]];var f=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),i=Bw(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=r.mapArray("value",(function(t,n){var o=i.getEdgeByIndex(n),r=Bw(t,c,h);isNaN(r)&&(r=(h[0]+h[1])/2);var a=o.getModel(),s=iy(o.getModel().get(["lineStyle","curveness"]),-xX(o,e,n,!0),0);return{n1:f[o.node1.dataIndex],n2:f[o.node2.dataIndex],d:r,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=function(e,t,n){for(var i=e,o=t,r=n.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var p=i[u];p.p||(p.p=_y(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),p.pp=Sy(p.p),p.edges=null}var d,h,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){h=e},step:function(e){d&&d(i,o);for(var t=[],n=i.length,r=0;r<o.length;r++){var a=o[r];if(!a.ignoreForceLayout){var s=a.n1;Iy(t,(m=a.n2).p,s.p);var u=Ay(t)-a.d,p=m.w/(s.w+m.w);isNaN(p)&&(p=0),ky(t,t),!s.fixed&&EX(s.p,s.p,t,p*u*g),!m.fixed&&EX(m.p,m.p,t,-(1-p)*u*g)}}for(r=0;r<n;r++)(x=i[r]).fixed||(Iy(t,l,x.p),EX(x.p,x.p,t,c*g));for(r=0;r<n;r++){s=i[r];for(var f=r+1;f<n;f++){var m;Iy(t,(m=i[f]).p,s.p),0===(u=Ay(t))&&(Cy(t,Math.random()-.5,Math.random()-.5),u=1);var v=(s.rep+m.rep)/u/u;!s.fixed&&EX(s.pp,s.pp,t,v),!m.fixed&&EX(m.pp,m.pp,t,-v)}}var y=[];for(r=0;r<n;r++){var x;(x=i[r]).fixed||(Iy(y,x.p,x.pp),EX(x.p,x.p,y,g),wy(x.pp,x.p))}var b=(g*=.992)<.01;h&&h(i,o,b),e&&e(b)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].fixed&&wy(e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,r){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[o.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],c=i.getEdgeByIndex(a),u=l.n1.p,p=l.n2.p,d=c.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],wy(d[0],u),wy(d[1],p),+l.curveness&&(d[2]=[(u[0]+p[0])/2-(u[1]-p[1])*l.curveness,(u[1]+p[1])/2-(p[0]-u[0])*l.curveness]),c.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function LX(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var o=e.getData(),r=[],a=[];zC(o.mapArray((function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]})),r,a),a[0]-r[0]==0&&(a[0]+=1,r[0]-=1),a[1]-r[1]==0&&(a[1]+=1,r[1]-=1);var s=(a[0]-r[0])/(a[1]-r[1]),l=function(e,t,n){return qk(Ev(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(r=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var c=a[0]-r[0],u=a[1]-r[1],p=l.width,d=l.height,h=e.coordinateSystem=new eY;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(r[0],r[1],c,u),h.setViewRect(l.x,l.y,p,d),h.setCenter(e.get("center"),t),h.setZoom(e.get("zoom")),n.push(h)}})),n}var NX=lA.prototype,PX=hA.prototype,RX=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function zX(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}S(t,e)}(RX);var VX=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return S(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RX},t.prototype.buildPath=function(e,t){zX(t)?NX.buildPath.call(this,e,t):PX.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return zX(this.shape)?NX.pointAt.call(this,e):PX.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=zX(t)?[t.x2-t.x1,t.y2-t.y1]:PX.tangentAt.call(this,e);return ky(n,n)},t}(kM),BX=["fromSymbol","toSymbol"];function jX(e){return"_"+e+"Type"}function FX(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var o=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=gP(o);return i+l+mP(a||0,l)+(r||"")+(s||"")}function GX(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var o=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=gP(o),c=mP(a||0,l),u=fP(i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,u.name=e,u}}function WX(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var HX=function(e){function t(t,n,i){var o=e.call(this)||this;return o._createLine(t,n,i),o}return S(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,o=function(e){var t=new VX({name:"line",subPixelOptimize:!0});return WX(t.shape,e),t}(e.getItemLayout(t));o.shape.percent=0,zA(o,{shape:{percent:1}},i,t),this.add(o),Rv(BX,(function(n){var i=GX(n,e,t);this.add(i),this[jX(n)]=FX(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),r=e.getItemLayout(t),a={shape:{}};WX(a.shape,r),RA(o,a,i,t),Rv(BX,(function(n){var i=FX(n,e,t),o=jX(n);if(this[o]!==i){this.remove(this.childOfName(n));var r=GX(n,e,t);this.add(r)}this[o]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),r=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,p=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),h=d.getModel("emphasis");r=h.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),c=h.get("disabled"),u=h.get("focus"),p=h.get("blurScope"),l=bD(d)}var f=e.getItemVisual(t,"style"),g=f.stroke;o.useStyle(f),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=r,o.ensureState("blur").style=a,o.ensureState("select").style=s,Rv(BX,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<vT.length;n++){var i=vT[n],r=o.getState(i);if(r){var a=r.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var m=i.getRawValue(t);xD(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?Fw(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var x=y.get("distance");Wv(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),tI(this,u,p,c)},t.prototype.highlight=function(){FT(this)},t.prototype.downplay=function(){GT(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");WX(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){for(var o=1,r=this.parent;r;)r.scaleX&&(o/=r.scaleX),r=r.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),c=a.pointAt(s),u=Iy([],c,l);if(ky(u,u),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=o*s,t.markRedraw()),n&&(n.setPosition(c),S(n,1),n.scaleX=n.scaleY=o*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,h=i.__labelDistance,f=h[0]*o,g=h[1]*o,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],x=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*f+c[0],i.y=u[1]*g+c[1],p=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*f+l[0],i.y=-u[1]*g+l[1],p=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*b+l[0],i.y=l[1]+w,p=v[0]<0?"right":"left",i.originX=-f*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,p="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*b+c[0],i.y=c[1]+w,p=v[0]>=0?"right":"left",i.originX=f*b,i.originY=-w}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Ew),UX=HX,YX=function(){function e(e){this.group=new Ew,this._LineCtor=e||UX}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,o=n._lineData;n._lineData=e,o||i.removeAll();var r=qX(e);e.diff(o).add((function(n){t._doAdd(e,n,r)})).update((function(n,i){t._doUpdate(o,e,i,n,r)})).remove((function(e){i.remove(o.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=qX(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){if($X(t.getItemLayout(i))){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){fD(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if($X(e.getItemLayout(t))){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,i,o){var r=e.getItemGraphicEl(n);$X(t.getItemLayout(i))?(r?r.updateData(t,i,o):r=new this._LineCtor(t,i,o),t.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},e}();function qX(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:bD(t)}}function XX(e){return isNaN(e[0])||isNaN(e[1])}function $X(e){return e&&!XX(e[0])&&!XX(e[1])}var ZX=[],KX=[],JX=[],QX=bb,e$=Ly,t$=Math.abs;function n$(e,t,n){for(var i,o=e[0],r=e[1],a=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){ZX[0]=QX(o[0],r[0],a[0],u),ZX[1]=QX(o[1],r[1],a[1],u),(h=t$(e$(ZX,t)-l))<s&&(s=h,i=u)}for(var p=0;p<32;p++){var d=i+c;KX[0]=QX(o[0],r[0],a[0],i),KX[1]=QX(o[1],r[1],a[1],i),JX[0]=QX(o[0],r[0],a[0],d),JX[1]=QX(o[1],r[1],a[1],d);var h=e$(KX,t)-l;if(t$(h)<.01)break;var f=e$(JX,t)-l;c/=2,h<0?f>=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function i$(e,t){var n=[],i=Sb,o=[[],[],[]],r=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Sy(l[0]),Sy(l[1])],l[2]&&l.__original.push(Sy(l[2])));var p=l.__original;if(null!=l[2]){if(wy(o[0],p[0]),wy(o[1],p[2]),wy(o[2],p[1]),c&&"none"!==c){var d=CX(e.node1),h=n$(o,p[0],d*t);i(o[0][0],o[1][0],o[2][0],h,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],h,n),o[0][1]=n[3],o[1][1]=n[4]}if(u&&"none"!==u){d=CX(e.node2),h=n$(o,p[1],d*t);i(o[0][0],o[1][0],o[2][0],h,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],h,n),o[1][1]=n[1],o[2][1]=n[2]}wy(l[0],o[0]),wy(l[1],o[2]),wy(l[2],o[1])}else{if(wy(r[0],p[0]),wy(r[1],p[1]),Iy(a,r[1],r[0]),ky(a,a),c&&"none"!==c){d=CX(e.node1);Ty(r[0],r[0],a,d*t)}if(u&&"none"!==u){d=CX(e.node2);Ty(r[1],r[1],a,-d*t)}wy(l[0],r[0]),wy(l[1],r[1])}}))}function o$(e){return"view"===e.type}var r$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(e,t){var n=new HF,i=new YX,o=this.group;this._controller=new YH(t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,o=e.coordinateSystem;this._model=e;var r=this._symbolDraw,a=this._lineDraw,s=this.group;if(o$(o)){var l={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?s.attr(l):RA(s,l,e)}i$(e.getGraph(),SX(e));var c=e.getData();r.updateData(c);var u=e.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,d=e.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,d);var h=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,o=t.getGraphicEl(),r=t.getModel();if(o){o.off("drag").off("dragend");var a=r.get("draggable");a&&o.on("drag",(function(r){switch(h){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,d),p.setFixed(n),c.setItemLayout(n,[o.x,o.y]);break;case"circular":c.setItemLayout(n,[o.x,o.y]),t.setLayout({fixed:!0},!0),IX(e,"symbolSize",t,[r.offsetX,r.offsetY]),i.updateLayout(e);break;default:c.setItemLayout(n,[o.x,o.y]),_X(e.getGraph(),e),i.updateLayout(e)}})).on("dragend",(function(){p&&p.setUnfixed(n)})),o.setDraggable(a,!!r.get("cursor")),"adjacency"===r.get(["emphasis","focus"])&&(lT(o).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(lT(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(e){DX(e,f,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))}()},t.prototype._updateController=function(e,t,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(t,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!KH(t,n,e)})),o$(e.coordinateSystem)?(o.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){qH(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){XH(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),i$(e.getGraph(),SX(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=SX(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){i$(e.getGraph(),SX(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(aN),a$=r$;function s$(e){return"_EC_"+e}var l$=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[s$(e)]){var i=new c$(e,t);return i.hostGraph=this,this.nodes.push(i),n[s$(e)]=i,i}"production"!==process.env.NODE_ENV&&console.error("Graph nodes have duplicate name or id")},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[s$(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,o=this._edgesMap;if(qv(e)&&(e=this.nodes[e]),qv(t)&&(t=this.nodes[t]),e instanceof c$||(e=i[s$(e)]),t instanceof c$||(t=i[s$(t)]),e&&t){var r=e.id+"-"+t.id,a=new u$(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),o[r]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof c$&&(e=e.id),t instanceof c$&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&e.call(t,n[o],o)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&e.call(t,n[o],o)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof c$||(t=this._nodesMap[s$(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;){var s=a.shift(),l=s[o];for(r=0;r<l.length;r++){var c=l[r],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(e.call(i,u,s))return;a.push(u),u.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)n[e.getRawIndex(o)].dataIndex=o;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)i[t.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,o=0;o<n.length;o++)t.addNode(n[o].id,n[o].dataIndex);for(o=0;o<i.length;o++){var r=i[o];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},e}(),c$=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=fy(),t=fy(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],r=[i.node2],a=0;a<o.length;){var s=o[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),o.push(s.inEdges[l].node1)}for(a=0;a<r.length;){var c=r[a];a++,t.set(c.dataIndex,!0);for(l=0;l<c.outEdges.length;l++)e.set(c.outEdges[l].dataIndex,!0),r.push(c.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),u$=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=fy(),t=fy();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],o=0;o<n.length;){var r=n[o];o++,t.set(r.dataIndex,!0);for(var a=0;a<r.inEdges.length;a++)e.set(r.inEdges[a].dataIndex,!0),n.push(r.inEdges[a].node1)}for(o=0;o<i.length;){var s=i[o];o++,t.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function p$(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}function d$(e,t,n,i,o){for(var r=new l$(i),a=0;a<e.length;a++)r.addNode(ty(e[a].id,e[a].name,a),a);var s=[],l=[],c=0;for(a=0;a<t.length;a++){var u=t[a],p=u.source,d=u.target;r.addEdge(p,d,c)&&(l.push(u),s.push(ty(AS(u.id,null),p+" > "+d)),c++)}var h,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=Bz(e,n);else{var g=FE.get(f),m=g&&g.dimensions||[];Lv(m,"value")<0&&m.concat(["value"]);var v=Ez(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(h=new kz(v,n)).initData(e)}var y=new kz(["value"],n);return y.initData(l,s),o&&o(h,y),VY({mainData:h,struct:r,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}Nv(c$,p$("hostGraph","data")),Nv(u$,p$("hostGraph","edgeData"));var h$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return S(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new pW(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),_S(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,i=e.edges||e.links||[],o=e.data||e.nodes||[],r=this;if(o&&i){dX(n=this)&&(n.__curvenessList=[],n.__edgeMap={},hX(n));var a=d$(o,i,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=UD.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}));return Rv(a.edges,(function(e){!function(e,t,n,i){if(dX(n)){var o=fX(e,t,n),r=n.__edgeMap,a=r[gX(o)];r[o]&&!a?r[o].isForward=!0:a&&r[o]&&(a.isForward=!0,r[o].isForward=!1),r[o]=r[o]||[],r[o].push(i)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(e,n),r=i.graph.getEdgeByIndex(e),a=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),CL("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}return RL({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=zv(this.option.categories||[],(function(e){return null!=e.value?e:Ev({value:0},e)})),t=new kz(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(XL),f$=h$,g$={type:"graphRoam",event:"graphRoam",update:"none"};var m$=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},v$=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return S(t,e),t.prototype.getDefaultShape=function(){return new m$},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,o=t.r,r=t.width,a=t.angle,s=t.x-n(a)*r*(r>=o/3?1:2),l=t.y-i(a)*r*(r>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*r,t.y+i(a)*r),e.lineTo(t.x+n(t.angle)*o,t.y+i(t.angle)*o),e.lineTo(t.x-n(a)*r,t.y-i(a)*r),e.lineTo(s,l)},t}(kM);function y$(e,t){var n=null==e?"":e+"";return t&&(Uv(t)?n=t.replace("{value}",n):Hv(t)&&(n=t(e))),n}var x$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=function(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),r=Math.min(i,o);return{cx:jw(n[0],t.getWidth()),cy:jw(n[1],t.getHeight()),r:jw(e.get("radius"),r/2)}}(e,n);this._renderMain(e,t,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,o){var r=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap")?TG:KI,p=c.get("show"),d=c.getModel("lineStyle"),h=d.get("width"),f=[s,l];sM(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,v=[],y=0;p&&y<i.length;y++){var x=new u({shape:{startAngle:m,endAngle:l=s+g*Math.min(Math.max(i[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-h,r:o.r},silent:!0});x.setStyle({fill:i[y][1]}),x.setStyle(d.getLineStyle(["color","width"])),v.push(x),m=l}v.reverse(),Rv(v,(function(e){return r.add(e)}));var b=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,b,o,s,l,a,h),this._renderTitleAndDetail(e,t,n,b,o),this._renderAnchor(e,o),this._renderPointer(e,t,n,b,o,s,l,a,h)},t.prototype._renderTicks=function(e,t,n,i,o,r,a,s,l){for(var c,u,p=this.group,d=o.cx,h=o.cy,f=o.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),x=e.getModel("axisLabel"),b=e.get("splitNumber"),_=y.get("splitNumber"),w=jw(v.get("length"),f),S=jw(y.get("length"),f),C=r,M=(a-r)/b,T=M/_,I=v.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),D=v.get("distance"),k=0;k<=b;k++){if(c=Math.cos(C),u=Math.sin(C),v.get("show")){var E=new lA({shape:{x1:c*(f-(O=D?D+l:l))+d,y1:u*(f-O)+h,x2:c*(f-w-O)+d,y2:u*(f-w-O)+h},style:I,silent:!0});"auto"===I.stroke&&E.setStyle({stroke:i(k/b)}),p.add(E)}if(x.get("show")){var O=x.get("distance")+D,L=y$(Fw(k/b*(m-g)+g),x.get("formatter")),N=i(k/b),P=c*(f-w-O)+d,R=u*(f-w-O)+h,z=x.get("rotate"),V=0;"radial"===z?(V=-C+2*Math.PI)>Math.PI/2&&(V+=Math.PI):"tangential"===z?V=-C-Math.PI/2:qv(z)&&(V=z*Math.PI/180),0===V?p.add(new sT({style:_D(x,{text:L,x:P,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):p.add(new sT({style:_D(x,{text:L,x:P,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:P,originY:R,rotation:V}))}if(y.get("show")&&k!==b){O=(O=y.get("distance"))?O+l:l;for(var B=0;B<=_;B++){c=Math.cos(C),u=Math.sin(C);var j=new lA({shape:{x1:c*(f-O)+d,y1:u*(f-O)+h,x2:c*(f-S-O)+d,y2:u*(f-S-O)+h},silent:!0,style:A});"auto"===A.stroke&&j.setStyle({stroke:i((k+B/_)/b)}),p.add(j),C+=T}C-=T}else C+=M}},t.prototype._renderPointer=function(e,t,n,i,o,r,a,s,l){var c=this.group,u=this._data,p=this._progressEls,d=[],h=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),m=e.getData(),v=m.mapDimension("value"),y=+e.get("min"),x=+e.get("max"),b=[y,x],_=[r,a];function w(t,n){var i,r=m.getItemModel(t).getModel("pointer"),a=jw(r.get("width"),o.r),s=jw(r.get("length"),o.r),l=e.get(["pointer","icon"]),c=r.get("offsetCenter"),u=jw(c[0],o.r),p=jw(c[1],o.r),d=r.get("keepAspect");return(i=l?fP(l,u-a/2,p-s,a,s,null,d):new v$({shape:{angle:-Math.PI/2,width:a,r:s,x:u,y:p}})).rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function S(e,t){var n=f.get("roundCap")?TG:KI,i=f.get("overlap"),a=i?f.get("width"):l/m.count(),c=i?o.r-a:o.r-(e+1)*a,u=i?o.r:o.r-e*a,p=new n({shape:{startAngle:r,endAngle:t,cx:o.cx,cy:o.cy,clockwise:s,r0:c,r:u}});return i&&(p.z2=x-m.get(v,e)%x),p}(g||h)&&(m.diff(u).add((function(t){var n=m.get(v,t);if(h){var i=w(t,r);zA(i,{rotation:-((isNaN(+n)?_[0]:Bw(n,b,_,!0))+Math.PI/2)},e),c.add(i),m.setItemGraphicEl(t,i)}if(g){var o=S(t,r),a=f.get("clip");zA(o,{shape:{endAngle:Bw(n,b,_,a)}},e),c.add(o),cT(e.seriesIndex,m.dataType,t,o),d[t]=o}})).update((function(t,n){var i=m.get(v,t);if(h){var o=u.getItemGraphicEl(n),a=o?o.rotation:r,s=w(t,a);s.rotation=a,RA(s,{rotation:-((isNaN(+i)?_[0]:Bw(i,b,_,!0))+Math.PI/2)},e),c.add(s),m.setItemGraphicEl(t,s)}if(g){var l=p[n],y=S(t,l?l.shape.endAngle:r),x=f.get("clip");RA(y,{shape:{endAngle:Bw(i,b,_,x)}},e),c.add(y),cT(e.seriesIndex,m.dataType,t,y),d[t]=y}})).execute(),m.each((function(e){var t=m.getItemModel(e),n=t.getModel("emphasis"),o=n.get("focus"),r=n.get("blurScope"),a=n.get("disabled");if(h){var s=m.getItemGraphicEl(e),l=m.getItemVisual(e,"style"),c=l.fill;if(s instanceof zM){var u=s.style;s.useStyle(Ev({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Bw(m.get(v,e),b,[0,1],!0))),s.z2EmphasisLift=0,rI(s,t),tI(s,o,r,a)}if(g){var p=d[e];p.useStyle(m.getItemVisual(e,"style")),p.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),p.z2EmphasisLift=0,rI(p,t),tI(p,o,r,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var i=n.get("size"),o=n.get("icon"),r=n.get("offsetCenter"),a=n.get("keepAspect"),s=fP(o,t.cx-i/2+jw(r[0],t.r),t.cy-i/2+jw(r[1],t.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,o){var r=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Ew,p=[],d=[],h=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){p[e]=new sT({silent:!0}),d[e]=new sT({silent:!0})})).update((function(e,t){p[e]=r._titleEls[t],d[e]=r._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),r=a.get(s,t),g=new Ew,m=i(Bw(r,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),x=o.cx+jw(y[0],o.r),b=o.cy+jw(y[1],o.r);(A=p[t]).attr({z2:f?0:2,style:_D(v,{x:x,y:b,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(A)}var _=n.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),S=o.cx+jw(w[0],o.r),C=o.cy+jw(w[1],o.r),M=jw(_.get("width"),o.r),T=jw(_.get("height"),o.r),I=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,A=d[t],D=_.get("formatter");A.attr({z2:f?0:2,style:_D(_,{x:S,y:C,text:y$(r,D),width:isNaN(M)?null:M,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:I})}),DD(A,{normal:_},r,(function(e){return y$(e,D)})),h&&kD(A,t,a,e,{getFormattedLabel:function(e,t,n,i,o,a){return y$(a?a.interpolatedValue:r,D)}}),g.add(A)}u.add(g)})),this.group.add(u),this._titleEls=p,this._detailEls=d},t.type="gauge",t}(aN),b$=x$,_$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return S(t,e),t.prototype.getInitialData=function(e,t){return cW(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(XL);var w$=["itemStyle","opacity"],S$=function(e){function t(t,n){var i=e.call(this)||this,o=i,r=new rA,a=new sT;return o.setTextContent(a),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return S(t,e),t.prototype.updateData=function(e,t,n){var i=this,o=e.hostModel,r=e.getItemModel(t),a=e.getItemLayout(t),s=r.getModel("emphasis"),l=r.get(w$);l=null==l?1:l,n||GA(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,zA(i,{style:{opacity:l}},o,t)):RA(i,{style:{opacity:l},shape:{points:a.points}},o,t),rI(i,r),this._updateLabel(e,t),tI(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),r=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"style"),c=l.fill;xD(o,bD(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:l.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:c,outsideFill:c});var u=s.linePoints;i.setShape({points:u}),n.textGuideLineConfig={anchor:u?new vx(u[0][0],u[0][1]):null},RA(o,{style:{x:s.x,y:s.y}},r,t),o.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),qB(n,XB(a),{stroke:c})},t}(iA),C$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return S(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this._data,r=this.group;i.diff(o).add((function(e){var t=new S$(i,e);i.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(i,e),r.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){FA(o.getItemGraphicEl(t),e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(aN),M$=C$,T$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new pW(Fv(this.getData,this),Fv(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return cW(this,{coordDimensions:["value"],encodeDefaulter:Gv(vE,this)})},t.prototype._defaultLabelLine=function(e){_S(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),o=n.mapDimension("value"),r=n.getSum(o);return i.percent=r?+(n.get(o,t)/r*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(XL),I$=T$;function A$(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),o=e.get("sort"),r=function(e,t){return qk(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=r.width,l=r.height,c=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),o=[],r="ascending"===t,a=0,s=e.count();a<s;a++)o[a]=a;return Hv(t)?o.sort(t):"none"!==t&&o.sort((function(e,t){return r?i[e]-i[t]:i[t]-i[e]})),o}(n,o),u=r.x,p=r.y,d="horizontal"===a?[jw(e.get("minSize"),l),jw(e.get("maxSize"),l)]:[jw(e.get("minSize"),s),jw(e.get("maxSize"),s)],h=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(h[0],0)),null==g&&(g=h[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===a){var o=Bw(n.get(i,e)||0,[f,g],d,!0),r=void 0;switch(m){case"top":r=p;break;case"center":r=p+(l-o)/2;break;case"bottom":r=p+(l-o)}return[[t,r],[t,r+o]]}var c,h=Bw(n.get(i,e)||0,[f,g],d,!0);switch(m){case"left":c=u;break;case"center":c=u+(s-h)/2;break;case"right":c=u+s-h}return[[c,t],[c+h,t]]};"ascending"===o&&(y=-y,v=-v,"horizontal"===a?u+=s:p+=l,c=c.reverse());for(var b=0;b<c.length;b++){var _=c[b],w=c[b+1],S=n.getItemModel(_);if("horizontal"===a){var C=S.get(["itemStyle","width"]);null==C?C=y:(C=jw(C,s),"ascending"===o&&(C=-C));var M=x(_,u),T=x(w,u+C);u+=C+v,n.setItemLayout(_,{points:M.concat(T.slice().reverse())})}else{var I=S.get(["itemStyle","height"]);null==I?I=y:(I=jw(I,l),"ascending"===o&&(I=-I));M=x(_,p),T=x(w,p+I);p+=I+v,n.setItemLayout(_,{points:M.concat(T.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var i,o,r,a,s=e.getItemModel(n),l=s.getModel("label").get("position"),c=s.getModel("labelLine"),u=e.getItemLayout(n),p=u.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(o=(p[0][0]+p[3][0])/2+5,r=(p[0][1]+p[3][1])/2,i="left"):"insideRight"===l?(o=(p[1][0]+p[2][0])/2-5,r=(p[1][1]+p[2][1])/2,i="right"):(o=(p[0][0]+p[1][0]+p[2][0]+p[3][0])/4,r=(p[0][1]+p[1][1]+p[2][1]+p[3][1])/4,i="center"),a=[[o,r],[o,r]];else{var h=void 0,f=void 0,g=void 0,m=void 0,v=c.get("length");"production"!==process.env.NODE_ENV&&("vertical"===t&&["top","bottom"].indexOf(l)>-1&&(l="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),"horizontal"===t&&["left","right"].indexOf(l)>-1&&(l="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),"left"===l?(h=(p[3][0]+p[0][0])/2,f=(p[3][1]+p[0][1])/2,o=(g=h-v)-5,i="right"):"right"===l?(h=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,o=(g=h+v)+5,i="left"):"top"===l?(h=(p[3][0]+p[0][0])/2,r=(m=(f=(p[3][1]+p[0][1])/2)-v)-5,i="center"):"bottom"===l?(h=(p[1][0]+p[2][0])/2,r=(m=(f=(p[1][1]+p[2][1])/2)+v)+5,i="center"):"rightTop"===l?(h="horizontal"===t?p[3][0]:p[1][0],f="horizontal"===t?p[3][1]:p[1][1],"horizontal"===t?(r=(m=f-v)-5,i="center"):(o=(g=h+v)+5,i="top")):"rightBottom"===l?(h=p[2][0],f=p[2][1],"horizontal"===t?(r=(m=f+v)+5,i="center"):(o=(g=h+v)+5,i="bottom")):"leftTop"===l?(h=p[0][0],f="horizontal"===t?p[0][1]:p[1][1],"horizontal"===t?(r=(m=f-v)-5,i="center"):(o=(g=h-v)-5,i="right")):"leftBottom"===l?(h="horizontal"===t?p[1][0]:p[3][0],f="horizontal"===t?p[1][1]:p[2][1],"horizontal"===t?(r=(m=f+v)+5,i="center"):(o=(g=h-v)-5,i="right")):(h=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,"horizontal"===t?(r=(m=f+v)+5,i="center"):(o=(g=h+v)+5,i="left")),"horizontal"===t?o=g=h:r=m=f,a=[[h,f],[g,m]]}u.label={linePoints:a,x:o,y:r,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var D$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Ew,n._initialized=!1,n}return S(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var o=this._dataGroup,r=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,c=O$(e);if(r.diff(a).add((function(e){var t=E$(r,o,e,l,s);L$(t,r,e,c)})).update((function(t,n){var i=a.getItemGraphicEl(n),o=k$(r,t,l,s);r.setItemGraphicEl(t,i),RA(i,{shape:{points:o}},e,t),GA(i),L$(i,r,t,c)})).remove((function(e){var t=a.getItemGraphicEl(e);o.remove(t)})).execute(),!this._initialized){this._initialized=!0;var u=function(e,t,n){var i=e.model,o=e.getRect(),r=new UM({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===i.get("layout")?"width":"height";return r.setShape(a,0),zA(r,{shape:{width:o.width,height:o.height}},t,n),r}(s,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(u)}this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),o=t.coordinateSystem,r=o.dimensions,a=O$(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var c=E$(i,this._dataGroup,l,r,o);c.incremental=!0,L$(c,i,l,a),s.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(aN);function k$(e,t,n,i){for(var o,r=[],a=0;a<n.length;a++){var s=n[a],l=e.get(e.mapDimension(s),t);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||r.push(i.dataToPoint(l,s))}return r}function E$(e,t,n,i,o){var r=k$(e,n,i,o),a=new rA({shape:{points:r},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function O$(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),ey(t=nS(t))&&(t=0),{smooth:t}}function L$(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var o=t.getItemModel(n),r=o.getModel("emphasis");rI(e,o,"lineStyle"),tI(e,r.get("focus"),r.get("blurScope"),r.get("disabled"))}var N$=D$,P$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return S(t,e),t.prototype.getInitialData=function(e,t){return Bz(null,this,{useEncodeDefaulter:Fv(R$,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,o){e===t&&i.push(n.getRawIndex(o))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(XL);function R$(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Rv(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var z$=P$,V$=["lineStyle","opacity"],B$={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var o=i[e];if("normal"===e&&t.hasItemOption){var r=t.getItemModel(n).get(V$,!0);null!=r&&(o=r)}t.ensureUniqueItemVisual(n,"style").opacity=o}),e.start,e.end)}}}},j$=B$;function F$(e){!function(e){if(e.parallel)return;var t=!1;Rv(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}(e),function(e){var t=bS(e.parallelAxis);Rv(t,(function(t){if(Xv(t)){var n=t.parallelIndex||0,i=bS(e.parallel)[n];i&&i.parallelAxisDefault&&Dv(t,i.parallelAxisDefault,!1)}}))}(e)}var G$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Rv(W$,(function(e,t){n.getZr().on(t,this._handlers[t]=Fv(e,this))}),this)),pN(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){dN(this,"_throttledDispatchExpand"),Rv(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Ev({type:"parallelAxisExpand"},e))},t.type="parallel",t}(ZL),W$={mousedown:function(e){H$(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(H$(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&H$(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function H$(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var U$=G$,Y$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&Dv(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){Rv(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];Rv(Bv(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(tE),q$=function(e){function t(t,n,i,o,r){var a=e.call(this,t,n,i)||this;return a.type=o||"value",a.axisIndex=r,a}return S(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(CB),X$=q$;function $$(e,t,n,i,o,r){e=e||0;var a=n[1]-n[0];if(null!=o&&(o=K$(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=K$(s,[0,a]),o=r=K$(s,[o,r]),i=0}t[0]=K$(t[0],n),t[1]=K$(t[1],n);var l=Z$(t,i);t[i]+=e;var c,u=o||0,p=n.slice();return l.sign<0?p[0]+=u:p[1]-=u,t[i]=K$(t[i],p),c=Z$(t,i),null!=o&&(c.sign!==l.sign||c.span<o)&&(t[1-i]=t[i]+l.sign*o),c=Z$(t,i),null!=r&&c.span>r&&(t[1-i]=t[i]+c.sign*r),t}function Z$(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function K$(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var J$=Rv,Q$=Math.min,eZ=Math.max,tZ=Math.floor,nZ=Math.ceil,iZ=Fw,oZ=Math.PI,rZ=function(){function e(e,t,n){this.type="parallel",this._axesMap=fy(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,o=e.parallelAxisIndex;J$(i,(function(e,n){var i=o[n],r=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new X$(e,HV(r),[0,0],r.get("type"),i)),s="category"===a.type;a.onBand=s&&r.get("boundaryGap"),a.inverse=r.get("inverse"),r.axis=a,a.model=r,a.coordinateSystem=r.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,o=t.pixelDimIndex,r=e[1-o],a=e[o];return r>=n&&r<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();J$(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),WV(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=qk(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],o=["width","height"],r=t.get("layout"),a="horizontal"===r?0:1,s=n[o[a]],l=[0,s],c=this.dimensions.length,u=aZ(t.get("axisExpandWidth"),l),p=aZ(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>p&&p>1&&u>0&&s>0,h=t.get("axisExpandWindow");h?(e=aZ(h[1]-h[0],l),h[1]=h[0]+e):(e=aZ(u*(p-1),l),(h=[u*(t.get("axisExpandCenter")||tZ(c/2))-e/2])[1]=h[0]+e);var f=(s-e)/(c-p);f<3&&(f=0);var g=[tZ(iZ(h[0]/u,1))+1,nZ(iZ(h[1]/u,1))-1],m=f/u*h[0];return{layout:r,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[o[1-a]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:h,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),J$(n,(function(t,n){var r=(i.axisExpandable?lZ:sZ)(n,i),a={horizontal:{x:r.position,y:i.axisLength},vertical:{x:0,y:r.position}},s={horizontal:oZ/2,vertical:0},l=[a[o].x+e.x,a[o].y+e.y],c=s[o],u=[1,0,0,1,0,0];fx(u,u,c),hx(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,r=this.dimensions,a=[],s=[];Rv(r,(function(t){a.push(e.mapDimension(t)),s.push(o.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var p=e.getValues(a,c),d=0,h=r.length;d<h;d++){if("inactive"===s[d].getActiveState(p[d])){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,o=e.length;i<o;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return iD([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return Av(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),p=null!=u[0];if(c)p&&c&&s<o*u[0]?(l="jump",a=s-o*u[2]):p&&c&&s>o*(1-u[0])?(l="jump",a=s-o*(1-u[2])):(a=s-o*u[1])>=0&&(a=s-o*(1-u[1]))<=0&&(a=0),(a*=t.axisExpandWidth/c)?$$(a,i,r,"all"):l="none";else{var d=i[1]-i[0];(i=[eZ(0,r[1]*s/d-d/2)])[1]=Q$(r[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function aZ(e,t){return Q$(eZ(e,t[0]),t[1])}function sZ(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function lZ(e,t){var n,i,o=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,u=!0):(n=o-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var cZ={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(i,o){var r=new rZ(i,e,t);r.name="parallel_"+o,r.resize(i,t),i.coordinateSystem=r,r.model=i,n.push(r)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",VS).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},uZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return S(t,e),t.prototype.getAreaSelectStyle=function(){return eC([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=Av(e);if(t)for(var n=t.length-1;n>=0;n--)Gw(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=t.length;i<o;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(tE);Nv(uZ,KV);var pZ=uZ,dZ=!0,hZ=Math.min,fZ=Math.max,gZ=Math.pow,mZ=1e4,vZ=6,yZ=6,xZ="globalPan",bZ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_Z={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wZ={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},SZ=0,CZ=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},"production"!==process.env.NODE_ENV&&ay(t),n._zr=t,n.group=new Ew,n._uid="brushController_"+SZ++,Rv(KZ,(function(e,t){this._handlers[t]=Fv(e,this)}),n),n}return S(t,e),t.prototype.enableBrush=function(e){return"production"!==process.env.NODE_ENV&&ay(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){FH(e)[t]=n}(t,xZ,this._uid),Rv(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Dv(Av(wZ),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var i=FH(e);i[t]===n&&(i[t]=null)}(e,xZ,this._uid),Rv(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Rv(e,(function(e){t[e.panelId]=Av(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},"production"!==process.env.NODE_ENV&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){"production"!==process.env.NODE_ENV&&ay(this._mounted),e=zv(e,(function(e){return Dv(Av(wZ),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,r=this._creatingCover;return new az(n,e,(function(e,t){return a(e.__brushOption,t)}),a).add(s).update(s).remove((function(e){n[e]!==r&&o.group.remove(n[e])})).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(t,a){var s=e[t];if(null!=a&&n[a]===r)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):TZ(o,MZ(o,s));DZ(o,l)}}},t.prototype.unmount=function(){if("production"===process.env.NODE_ENV||this._mounted)return this.enableBrush(!1),LZ(this),this._zr.remove(this.group),"production"!==process.env.NODE_ENV&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(jy);function MZ(e,t){var n=QZ[t.brushType].createCover(e,t);return n.__brushOption=t,AZ(n,t),e.group.add(n),n}function TZ(e,t){var n=kZ(t);return n.endCreating&&(n.endCreating(e,t),AZ(t,t.__brushOption)),t}function IZ(e,t){var n=t.__brushOption;kZ(t).updateCoverShape(e,t,n.range,n)}function AZ(e,t){var n=t.z;null==n&&(n=mZ),e.traverse((function(e){e.z=n,e.z2=n}))}function DZ(e,t){kZ(t).updateCommon(e,t),IZ(e,t)}function kZ(e){return QZ[e.__brushOption.brushType]}function EZ(e,t,n){var i,o=e._panels;if(!o)return dZ;var r=e._transform;return Rv(o,(function(e){e.isTargetByCursor(t,n,r)&&(i=e)})),i}function OZ(e,t){var n=e._panels;if(!n)return dZ;var i=t.__brushOption.panelId;return null!=i?n[i]:dZ}function LZ(e){var t=e._covers,n=t.length;return Rv(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function NZ(e,t){var n=zv(e._covers,(function(e){var t=e.__brushOption,n=Av(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function PZ(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function RZ(e,t,n,i){var o=new Ew;return o.add(new UM({name:"main",style:jZ(n),silent:!0,draggable:!0,cursor:"move",drift:Gv(WZ,e,t,o,["n","s","w","e"]),ondragend:Gv(NZ,t,{isEnd:!0})})),Rv(i,(function(n){o.add(new UM({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Gv(WZ,e,t,o,n),ondragend:Gv(NZ,t,{isEnd:!0})}))})),o}function zZ(e,t,n,i){var o=i.brushStyle.lineWidth||0,r=fZ(o,yZ),a=n[0][0],s=n[1][0],l=a-o/2,c=s-o/2,u=n[0][1],p=n[1][1],d=u-r+o/2,h=p-r+o/2,f=u-a,g=p-s,m=f+o,v=g+o;BZ(e,t,"main",a,s,f,g),i.transformable&&(BZ(e,t,"w",l,c,r,v),BZ(e,t,"e",d,c,r,v),BZ(e,t,"n",l,c,m,r),BZ(e,t,"s",l,h,m,r),BZ(e,t,"nw",l,c,r,r),BZ(e,t,"ne",d,c,r,r),BZ(e,t,"sw",l,h,r,r),BZ(e,t,"se",d,h,r,r))}function VZ(e,t){var n=t.__brushOption,i=n.transformable,o=t.childAt(0);o.useStyle(jZ(n)),o.attr({silent:!i,cursor:i?"move":"default"}),Rv([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=t.childOfName(n.join("")),r=1===n.length?GZ(e,n[0]):function(e,t){var n=[GZ(e,t[0]),GZ(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?_Z[r]+"-resize":null})}))}function BZ(e,t,n,i,o,r,a){var s=t.childOfName(n);s&&s.setShape(function(e){var t=hZ(e[0][0],e[1][0]),n=hZ(e[0][1],e[1][1]),i=fZ(e[0][0],e[1][0]),o=fZ(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:o-n}}(YZ(e,t,[[i,o],[i+r,o+a]])))}function jZ(e){return Ov({strokeNoScale:!0},e.brushStyle)}function FZ(e,t,n,i){var o=[hZ(e,n),hZ(t,i)],r=[fZ(e,n),fZ(t,i)];return[[o[0],r[0]],[o[1],r[1]]]}function GZ(e,t){var n=oD({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return nD(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function WZ(e,t,n,i,o,r){var a=n.__brushOption,s=e.toRectRange(a.range),l=UZ(t,o,r);Rv(i,(function(e){var t=bZ[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(FZ(s[0][0],s[1][0],s[0][1],s[1][1])),DZ(t,n),NZ(t,{isEnd:!1})}function HZ(e,t,n,i){var o=t.__brushOption.range,r=UZ(e,n,i);Rv(o,(function(e){e[0]+=r[0],e[1]+=r[1]})),DZ(e,t),NZ(e,{isEnd:!1})}function UZ(e,t,n){var i=e.group,o=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function YZ(e,t,n){var i=OZ(e,t);return i&&i!==dZ?i.clipPath(n,e._transform):Av(n)}function qZ(e){var t=e.event;t.preventDefault&&t.preventDefault()}function XZ(e,t,n){return e.childOfName("main").contain(t,n)}function $Z(e,t,n,i){var o,r=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],o=n[0]-i[0],r=n[1]-i[1];return gZ(o*o+r*r,.5)>vZ}(e)||r){if(a&&!r){"single"===s.brushMode&&LZ(e);var l=Av(s);l.brushType=ZZ(l.brushType,a),l.panelId=a===dZ?null:a.panelId,r=e._creatingCover=MZ(e,l),e._covers.push(r)}if(r){var c=QZ[ZZ(e._brushType,a)];r.__brushOption.range=c.getCreatingRange(YZ(e,r,e._track)),i&&(TZ(e,r),c.updateCommon(e,r)),IZ(e,r),o={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&EZ(e,t,n)&&LZ(e)&&(o={isEnd:i,removeOnClick:!0});return o}function ZZ(e,t){return"auto"===e?("production"!==process.env.NODE_ENV&&ay(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var KZ={mousedown:function(e){if(this._dragging)JZ(this,e);else if(!e.target||!e.target.draggable){qZ(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=EZ(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}(e,t.offsetX,t.offsetY)){var i=e._zr,o=e._covers,r=EZ(e,t,n);if(!e._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===dZ||s.panelId===r.panelId)&&QZ[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}(this,e,i),this._dragging){qZ(e);var o=$Z(this,e,i,!1);o&&NZ(this,o)}},mouseup:function(e){JZ(this,e)}};function JZ(e,t){if(e._dragging){qZ(t);var n=t.offsetX,i=t.offsetY,o=e.group.transformCoordToLocal(n,i),r=$Z(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&NZ(e,r)}}var QZ={lineX:eK(0),lineY:eK(1),rect:{createCover:function(e,t){function n(e){return e}return RZ({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=PZ(e);return FZ(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){zZ(e,t,n,i)},updateCommon:VZ,contain:XZ},polygon:{createCover:function(e,t){var n=new Ew;return n.add(new rA({name:"main",style:jZ(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new iA({name:"main",draggable:!0,drift:Gv(HZ,e,t),ondragend:Gv(NZ,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:YZ(e,t,n)})},updateCommon:VZ,contain:XZ}};function eK(e){return{createCover:function(t,n){return RZ({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=PZ(t);return[hZ(n[0][e],n[1][e]),fZ(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,o){var r,a=OZ(t,n);if(a!==dZ&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(e);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),zZ(t,n,l,o)},updateCommon:VZ,contain:XZ}}var tK=CZ;function nK(e){return e=rK(e),function(t){return sD(t,e)}}function iK(e,t){return e=rK(e),function(n){var i=null!=t?t:n,o=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(o||0)]}}function oK(e,t,n){var i=rK(e);return function(e,o){return i.contain(o[0],o[1])&&!KH(e,t,n)}}function rK(e){return Ax.create(e)}var aK=["axisLine","axisTickLabel","axisName"],sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new tK(n.getZr())).on("brush",Fv(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ew,this.group.add(this._axisGroup),e.get("show")){var r=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=r.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=Ev({strokeContainThreshold:l},a.getAxisLayout(c)),p=new XW(e,u);Rv(aK,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(u,s,e,r,l,n),aD(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,o,r){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=Ax.create({x:a[0],y:-o/2,width:s,height:o});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:nK(c),isTargetByCursor:oK(c,r,i),getLinearBrushOtherExtent:iK(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return zv(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,o=zv(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ZL);var lK=sK,cK={type:"axisAreaSelect",event:"axisAreaSelected"};var uK={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pK(e){e.registerComponentView(U$),e.registerComponentModel(Y$),e.registerCoordinateSystem("parallel",cZ),e.registerPreprocessor(F$),e.registerComponentModel(pZ),e.registerComponentView(lK),DW(e,"parallel",pZ,uK),function(e){e.registerAction(cK,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var dK=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},hK=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.getDefaultShape=function(){return new dK},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){FT(this)},t.prototype.downplay=function(){GT(this)},t}(kM),fK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return S(t,e),t.prototype.render=function(e,t,n){var i=this,o=e.getGraph(),r=this.group,a=e.layoutInfo,s=a.width,l=a.height,c=e.getData(),u=e.getData("edge"),p=e.get("orient");this._model=e,r.removeAll(),r.x=a.x,r.y=a.y,o.eachEdge((function(t){var n=new hK,i=lT(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var o,a,c,d,h,f,g,m,v=t.getModel(),y=v.getModel("lineStyle"),x=y.get("curveness"),b=t.node1.getLayout(),_=t.node1.getModel(),w=_.get("localX"),S=_.get("localY"),C=t.node2.getLayout(),M=t.node2.getModel(),T=M.get("localX"),I=M.get("localY"),A=t.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=p,"vertical"===p?(o=(null!=w?w*s:b.x)+A.sy,a=(null!=S?S*l:b.y)+b.dy,c=(null!=T?T*s:C.x)+A.ty,h=o,f=a*(1-x)+(d=null!=I?I*l:C.y)*x,g=c,m=a*x+d*(1-x)):(o=(null!=w?w*s:b.x)+b.dx,a=(null!=S?S*l:b.y)+A.sy,h=o*(1-x)+(c=null!=T?T*s:C.x)*x,f=a,g=o*x+c*(1-x),m=d=(null!=I?I*l:C.y)+A.ty),n.setShape({x1:o,y1:a,x2:c,y2:d,cpx1:h,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),gK(n.style,p,t);var D=""+v.get("value"),k=bD(v,"edgeLabel");xD(n,k,{labelFetcher:{getFormattedLabel:function(t,n,i,o,r,a){return e.getFormattedLabel(t,n,"edge",o,iy(r,k.normal&&k.normal.get("formatter"),D),a)}},labelDataIndex:t.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var E=v.getModel("emphasis");rI(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return gK(n,p,t),n})),r.add(n),u.setItemGraphicEl(t.dataIndex,n);var O=E.get("focus");tI(n,"adjacency"===O?t.getAdjacentDataIndices():"trajectory"===O?t.getTrajectoryDataIndices():O,E.get("blurScope"),E.get("disabled"))})),o.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),o=i.get("localX"),a=i.get("localY"),u=i.getModel("emphasis"),p=new UM({shape:{x:null!=o?o*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});xD(p,bD(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),rI(p,i),r.add(p),c.setItemGraphicEl(t.dataIndex,p),lT(p).dataType="node";var d=u.get("focus");tI(p,"adjacency"===d?t.getAdjacentDataIndices():"trajectory"===d?t.getTrajectoryDataIndices():d,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,o){c.getItemModel(o).get("draggable")&&(t.drift=function(t,r){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&r.setClipPath(function(e,t,n){var i=new UM({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return zA(i,{shape:{width:e.width+20}},t,n),i}(r.getBoundingRect(),e,(function(){r.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(aN);function gK(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");Uv(i)&&Uv(o)&&(e.fill=new _A(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:o,offset:1}]))}}var mK=fK,vK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a<o.length;a++)if(null!=o[a].depth&&o[a].depth>=0)r[o[a].depth]=new UD(o[a],this,t);else if("production"!==process.env.NODE_ENV)throw new Error("levels[i].depth is mandatory and should be natural number");if(i&&n){var s=d$(i,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var o=i.depth,r=n.levelModels[o];r&&(e.parentModel=r)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(i){var o=i.depth,r=n.levelModels[o];r&&(e.parentModel=r)}return e}))}));return s.data}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var o=this.getDataParams(e,n),r=o.data,a=o.value;return CL("nameValue",{name:r.source+" -- "+r.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return CL("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var o=this.getGraph().getNodeByIndex(t).getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(XL),yK=vK;function xK(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),o=function(e,t){return qk(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=o;var r=o.width,a=o.height,s=e.getGraph(),l=s.nodes,c=s.edges;!function(e){Rv(e,(function(e){var t=DK(e.outEdges,AK),n=DK(e.inEdges,AK),i=e.getValue()||0,o=Math.max(t,n,i);e.setLayout({value:o},!0)}))}(l);var u=Bv(l,(function(e){return 0===e.getLayout().value}));!function(e,t,n,i,o,r,a,s,l){(function(e,t,n,i,o,r,a){for(var s=[],l=[],c=[],u=[],p=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&c.push(e[d]);var h=-1;for(;c.length;){for(var f=0;f<c.length;f++){var g=c[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>h&&(h=m.depth),g.setLayout({depth:v?m.depth:p},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y];s[t.indexOf(x)]=0;var b=x.node2;0==--l[e.indexOf(b)]&&u.indexOf(b)<0&&u.push(b)}}++p,c=u,u=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var _=h>p-1?h:p-1;a&&"left"!==a&&function(e,t,n,i){if("right"===t){for(var o=[],r=e,a=0;r.length;){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:a},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];o.indexOf(u.node1)<0&&o.push(u.node1)}}r=o,o=[],++a}Rv(e,(function(e){bK(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){Rv(e,(function(e){bK(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,i)}(e,a,0,_);var w="vertical"===r?(o-n)/_:(i-n)/_;!function(e,t,n){Rv(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}(e,w,r)})(e,t,n,o,r,s,l),function(e,t,n,i,o,r,a){var s=function(e,t){var n=[],i="vertical"===t?"y":"x",o=GS(e,(function(e){return e.getLayout()[i]}));return o.keys.sort((function(e,t){return e-t})),Rv(o.keys,(function(e){n.push(o.buckets.get(e))})),n}(e,a);(function(e,t,n,i,o,r){var a=1/0;Rv(e,(function(e){var t=e.length,s=0;Rv(e,(function(e){s+=e.getLayout().value}));var l="vertical"===r?(i-(t-1)*o)/s:(n-(t-1)*o)/s;l<a&&(a=l)})),Rv(e,(function(e){Rv(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===r?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),Rv(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))})(s,t,n,i,o,a),_K(s,o,n,i,a);for(var l=1;r>0;r--)wK(s,l*=.99,a),_K(s,o,n,i,a),kK(s,l,a),_K(s,o,n,i,a)}(e,t,r,o,i,a,s),function(e,t){var n="vertical"===t?"x":"y";Rv(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),Rv(e,(function(e){var t=0,n=0;Rv(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),Rv(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,s)}(l,c,n,i,r,a,0!==u.length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function bK(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function _K(e,t,n,i,o){var r="vertical"===o?"x":"y";Rv(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[r]-t.getLayout()[r]}));for(var c=0,u=e.length,p="vertical"===o?"dx":"dy",d=0;d<u;d++)(l=c-(s=e[d]).getLayout()[r])>0&&(a=s.getLayout()[r]+l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[r]+s.getLayout()[p]+t;if((l=c-t-("vertical"===o?i:n))>0){a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(d=u-2;d>=0;--d)(l=(s=e[d]).getLayout()[r]+s.getLayout()[p]+t-c)>0&&(a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[r]}}))}function wK(e,t,n){Rv(e.slice().reverse(),(function(e){Rv(e,(function(e){if(e.outEdges.length){var i=DK(e.outEdges,SK,n)/DK(e.outEdges,AK);if(isNaN(i)){var o=e.outEdges.length;i=o?DK(e.outEdges,CK,n)/o:0}if("vertical"===n){var r=e.getLayout().x+(i-IK(e,n))*t;e.setLayout({x:r},!0)}else{var a=e.getLayout().y+(i-IK(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function SK(e,t){return IK(e.node2,t)*e.getValue()}function CK(e,t){return IK(e.node2,t)}function MK(e,t){return IK(e.node1,t)*e.getValue()}function TK(e,t){return IK(e.node1,t)}function IK(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function AK(e){return e.getValue()}function DK(e,t,n){for(var i=0,o=e.length,r=-1;++r<o;){var a=+t(e[r],n);isNaN(a)||(i+=a)}return i}function kK(e,t,n){Rv(e,(function(e){Rv(e,(function(e){if(e.inEdges.length){var i=DK(e.inEdges,MK,n)/DK(e.inEdges,AK);if(isNaN(i)){var o=e.inEdges.length;i=o?DK(e.inEdges,TK,n)/o:0}if("vertical"===n){var r=e.getLayout().x+(i-IK(e,n))*t;e.setLayout({x:r},!0)}else{var a=e.getLayout().y+(i-IK(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function EK(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var o=1/0,r=-1/0;Rv(n,(function(e){var t=e.getLayout().value;t<o&&(o=t),t>r&&(r=t)})),Rv(n,(function(t){var n=new jq({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),i=t.getModel().get(["itemStyle","color"]);null!=i?(t.setVisual("color",i),t.setVisual("style",{fill:i})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))}))}i.length&&Rv(i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}var OK=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,o=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type");"category"===a?(e.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=r.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],p=l[1-c],d=[o,r],h=d[c].get("type"),f=d[1-c].get("type"),g=e.data;if(g&&i){var m=[];Rv(g,(function(e,t){var n;Wv(e)?(n=e.slice(),e.unshift(t)):Wv(e.value)?((n=Ev({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,y=[{name:u,type:cz(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:cz(f),dimsDef:v.slice()}];return cW(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:Gv(mE,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),LK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return S(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(XL);Nv(LK,OK,!0);var NK=LK,PK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(r).add((function(e){if(i.hasValue(e)){var t=VK(i.getItemLayout(e),i,e,a,!0);i.setItemGraphicEl(e,t),o.add(t)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(GA(n),BK(s,n,i,e)):n=VK(s,i,e,a),o.add(n),i.setItemGraphicEl(e,n)}else o.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&o.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(aN),RK=function(){},zK=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return S(t,e),t.prototype.getDefaultShape=function(){return new RK},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(kM);function VK(e,t,n,i,o){var r=e.ends,a=new zK({shape:{points:o?jK(r,i,e):r}});return BK(e,a,t,n,o),a}function BK(e,t,n,i,o){var r=n.hostModel;(0,gD[o?"initProps":"updateProps"])(t,{shape:{points:e.ends}},r,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");rI(t,a),tI(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function jK(e,t,n){return zv(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var FK=PK,GK=Rv;function WK(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),o=Lv(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(e)})),t}(e);GK(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,i=e.seriesModels,o=i.length,r=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;GK(i,(function(e){l=Math.max(l,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/l}GK(i,(function(e){var n=e.get("boxWidth");Wv(n)||(n=[n,n]),s.push([jw(n[0],t)||0,jw(n[1],t)||0])}));var u=.8*t-2,p=u/o*.3,d=(u-p*(o-1))/o,h=d/2-u/2;GK(i,(function(e,t){a.push(h),h+=p+d,r.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}(e),GK(t,(function(t,n){!function(e,t,n){var i=e.coordinateSystem,o=e.getData(),r=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],c=o.mapDimension(l[a]),u=o.mapDimensionsAll(l[s]);if(null==c||u.length<5)return;for(var p=0;p<o.count();p++){var d=o.get(c,p),h=x(d,u[2],p),f=x(d,u[0],p),g=x(d,u[1],p),m=x(d,u[3],p),v=x(d,u[4],p),y=[];b(y,g,!1),b(y,m,!0),y.push(f,g,v,m),_(y,f),_(y,v),_(y,h),o.setItemLayout(p,{initBaseline:h[s],ends:y})}function x(e,n,r){var l,c=o.get(n,r),u=[];return u[a]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u))[a]+=t,l}function b(e,t,n){var i=t.slice(),o=t.slice();i[a]+=r,o[a]-=r,n?e.push(i,o):e.push(o,i)}function _(e,t){var n=t.slice(),i=t.slice();n[a]-=r,i[a]+=r,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var HK={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==sE){var n="";"production"!==process.env.NODE_ENV&&(n=gS("source data is not applicable for this boxplot transform. Expect number[][].")),mS(n)}var i=function(e,t){for(var n=[],i=[],o=(t=t||{}).boundIQR,r="none"===o||0===o,a=0;a<e.length;a++){var s=Gw(e[a].slice()),l=eS(s,.25),c=eS(s,.5),u=eS(s,.75),p=s[0],d=s[s.length-1],h=(null==o?1.5:o)*(u-l),f=r?p:Math.max(p,l-h),g=r?d:Math.min(d,u+h),m=t.itemNameFormatter,v=Hv(m)?m({value:a}):Uv(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,c,u,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var b=[v,x];i.push(b)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};var UK=["color","borderColor"],YK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){fD(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,o=t.getLayout("isSimpleBox"),r=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(r&&ZK(s,a))return;var l=$K(a,n,!0);zA(l,{shape:{points:a.ends}},e,n),KK(l,t,n,o),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(t.hasValue(a)){var u=t.getItemLayout(a);r&&ZK(s,u)?i.remove(c):(c?(RA(c,{shape:{points:u.ends}},e,a),GA(c)):c=$K(u),KK(c,t,a,o),i.add(c),t.setItemGraphicEl(a,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),tJ(e,this.group);var t=e.get("clip",!0)?iG(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),o=i.getLayout("isSimpleBox");null!=(n=e.next());){var r=$K(i.getItemLayout(n));KK(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},t.prototype._incrementalRenderLarge=function(e,t){tJ(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(aN),qK=function(){},XK=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return S(t,e),t.prototype.getDefaultShape=function(){return new qK},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(kM);function $K(e,t,n){var i=e.ends;return new XK({shape:{points:n?JK(i,e):i},z2:100})}function ZK(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function KK(e,t,n,i){var o=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,rI(e,o)}function JK(e,t){return zv(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var QK=function(){},eJ=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return S(t,e),t.prototype.getDefaultShape=function(){return new QK},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}(kM);function tJ(e,t,n,i){var o=e.getData().getLayout("largePoints"),r=new eJ({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(r);var a=new eJ({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(a);var s=new eJ({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(s),nJ(1,r,e),nJ(-1,a,e),nJ(0,s,e),i&&(r.incremental=!0,a.incremental=!0),n&&n.push(r,a)}function nJ(e,t,n,i){var o=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(o=n.get(["itemStyle","borderColorDoji"]));var r=n.getModel("itemStyle").getItemStyle(UK);t.useStyle(r),t.style.fill=null,t.style.stroke=o}var iJ=YK,oJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return S(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(XL);Nv(oJ,OK,!0);var rJ=oJ;function aJ(e){e&&Wv(e.series)&&Rv(e.series,(function(e){Xv(e)&&"k"===e.type&&(e.type="candlestick")}))}var sJ=["itemStyle","borderColor"],lJ=["itemStyle","borderColor0"],cJ=["itemStyle","borderColorDoji"],uJ=["itemStyle","color"],pJ=["itemStyle","color0"],dJ={seriesType:"candlestick",plan:KL(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?uJ:pJ)}function i(e,t){return t.get(0===e?cJ:e>0?sJ:lJ)}if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var o;null!=(o=e.next());){var r=t.getItemModel(o),a=t.getItemLayout(o).sign,s=r.getItemStyle();s.fill=n(a,r),s.stroke=i(a,r)||s.fill,Ev(t.ensureUniqueItemVisual(o,"style"),s)}}}}},hJ=dJ,fJ={seriesType:"candlestick",plan:KL(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=function(e,t){var n,i=e.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=jw(ny(e.get("barMaxWidth"),o),o),a=jw(ny(e.get("barMinWidth"),1),o),s=e.get("barWidth");return null!=s?jw(s,o):Math.max(Math.min(o/2,r),a)}(e,n),o=["x","y"],r=n.getDimensionIndex(n.mapDimension(o[0])),a=zv(n.mapDimensionsAll(o[1]),n.getDimensionIndex,n),s=a[0],l=a[1],c=a[2],u=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(r<0||a.length<4))return{progress:e.pipelineContext.large?function(n,i){var o,a,p=aV(4*n.count),d=0,h=[],f=[],g=i.getStore(),m=!!e.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(r,a),y=g.get(s,a),x=g.get(l,a),b=g.get(c,a),_=g.get(u,a);isNaN(v)||isNaN(b)||isNaN(_)?(p[d++]=NaN,d+=3):(p[d++]=gJ(g,a,y,x,l,m),h[0]=v,h[1]=b,o=t.dataToPoint(h,null,f),p[d++]=o?o[0]:NaN,p[d++]=o?o[1]:NaN,h[1]=_,o=t.dataToPoint(h,null,f),p[d++]=o?o[1]:NaN)}i.setLayout("largePoints",p)}:function(e,n){var o,a=n.getStore();for(;null!=(o=e.next());){var p=a.get(r,o),d=a.get(s,o),h=a.get(l,o),f=a.get(c,o),g=a.get(u,o),m=Math.min(d,h),v=Math.max(d,h),y=C(m,p),x=C(v,p),b=C(f,p),_=C(g,p),w=[];M(w,x,0),M(w,y,1),w.push(I(_),I(x),I(b),I(y));var S=!!n.getItemModel(o).get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:gJ(a,o,d,h,l,S),initBaseline:d>h?x[1]:y[1],ends:w,brushRect:T(f,g,p)})}function C(e,n){var i=[];return i[0]=n,i[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function M(e,t,n){var o=t.slice(),r=t.slice();o[0]=tD(o[0]+i/2,1,!1),r[0]=tD(r[0]-i/2,1,!0),n?e.push(o,r):e.push(r,o)}function T(e,t,n){var o=C(e,n),r=C(t,n);return o[0]-=i/2,r[0]-=i/2,{x:o[0],y:o[1],width:i,height:r[1]-o[1]}}function I(e){return e[0]=tD(e[0],1),e}}}}};function gJ(e,t,n,i,o,r){return n>i?-1:n<i?1:r?0:t>0?e.get(o,t-1)<=i?1:-1:1}var mJ=fJ;function vJ(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var yJ=function(e){function t(t,n){var i=e.call(this)||this,o=new BF(t,n),r=new Ew;return i.add(o),i.add(r),i.updateData(t,n),i}return S(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=fP(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-r/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),o.add(a)}vJ(o,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}vJ(n,e)},t.prototype.highlight=function(){FT(this)},t.prototype.downplay=function(){GT(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var o=this.childAt(1),r=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=gP(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill,u=r.getModel("emphasis");o.setScale(s),o.traverse((function(e){e.setStyle("fill",c)}));var p=mP(e.getItemVisual(t,"symbolOffset"),s);p&&(o.x=p[0],o.y=p[1]);var d=e.getItemVisual(t,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var h={};h.showEffectOn=i.get("showEffectOn"),h.rippleScale=r.get(["rippleEffect","scale"]),h.brushType=r.get(["rippleEffect","brushType"]),h.period=1e3*r.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=c,h.rippleEffectColor=r.get(["rippleEffect","color"]),h.rippleNumber=r.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,tI(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Ew),xJ=yJ,bJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(){this._symbolDraw=new HF(xJ)},t.prototype.render=function(e,t,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var o=yG("").reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t,n,i=e.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=(t=i.getRoamTransform(),px(n=[1,0,0,1,0,0],t),n),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(aN),_J=bJ,wJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return S(t,e),t.prototype.getInitialData=function(e,t){return Bz(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(XL),SJ=wJ;var CJ=function(e){function t(t,n,i){var o=e.call(this)||this;return o.add(o.createLine(t,n,i)),o._updateEffectSymbol(t,n),o}return S(t,e),t.prototype.createLine=function(e,t,n){return new UX(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol");Wv(i)||(i=[i,i]);var r=e.getItemVisual(t,"style"),a=n.get("color")||r&&r.stroke,s=this.childAt(1);this._symbolType!==o&&(this.remove(s),(s=fP(o,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),r=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),c=ty(t.get("delay"),(function(t){return t/e.count()*r/3}));if(i.ignore=!0,this._updateAnimationPoints(i,o),l>0&&(r=this._getLineLength(i)/l*1e3),r!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=Hv(c)?c(n):c,i.__t>0&&(u=-r*i.__t),this._animateSymbol(i,r,u,a,s)}this._period=r,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,o){if(t>0){e.__t=0;var r=this,a=e.animate("",i).when(o?2*t:t,{__t:o?2:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||a.done((function(){r.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return Oy(e.__p1,e.__cp1)+Oy(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,r=[e.x,e.y],a=r.slice(),s=bb,l=_b;r[0]=s(t[0],i[0],n[0],o),r[1]=s(t[1],i[1],n[1],o);var c=e.__t<1?l(t[0],i[0],n[0],o):l(n[0],i[0],t[0],1-o),u=e.__t<1?l(t[1],i[1],n[1],o):l(n[1],i[1],t[1],1-o);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Oy(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Oy(t,r):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=r[0],e.y=r[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Ew),MJ=CJ,TJ=function(e){function t(t,n,i){var o=e.call(this)||this;return o._createPolyline(t,n,i),o}return S(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),o=new rA({shape:{points:i}});this.add(o),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel;RA(this.childAt(0),{shape:{points:e.getItemLayout(t)}},i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),o=e.getItemModel(t),r=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=o.getModel("emphasis");r=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),a=c.get("focus"),s=c.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=r,tI(this,a,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(Ew),IJ=TJ,AJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return S(t,e),t.prototype.createLine=function(e,t,n){return new IJ(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,o=1;o<t.length;o++){var r=t[o-1],a=t[o];i+=Oy(r,a),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r,a=this._lastFrame;if(t<this._lastFramePercent){for(r=Math.min(a+1,o-1);r>=0&&!(i[r]<=t);r--);r=Math.min(r,o-2)}else{for(r=a;r<o&&!(i[r]>t);r++);r=Math.min(r-1,o-2)}var s=(t-i[r])/(i[r+1]-i[r]),l=n[r],c=n[r+1];e.x=l[0]*(1-s)+s*c[0],e.y=l[1]*(1-s)+s*c[1];var u=e.__t<1?c[0]-l[0]:l[0]-c[0],p=e.__t<1?c[1]-l[1]:l[1]-c[1];e.rotation=-Math.atan2(p,u)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},t}(MJ),DJ=AJ,kJ=function(){this.polyline=!1,this.curveness=0,this.segs=[]},EJ=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return S(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kJ},t.prototype.buildPath=function(e,t){var n,i=t.segs,o=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var r=i[n++];if(r>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<r;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(e.moveTo(s,l),o>0){var p=(s+c)/2-(l-u)*o,d=(l+u)/2-(c-s)*o;e.quadraticCurveTo(p,d,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],p=1;p<l;p++){if(cM(c,u,d=i[s++],h=i[s++],r,e,t))return a}a++}else for(a=0,s=0;s<i.length;){c=i[s++],u=i[s++];var d=i[s++],h=i[s++];if(o>0){if(pM(c,u,(c+d)/2-(u-h)*o,(u+h)/2-(d-c)*o,d,h,r,e,t))return a}else if(cM(c,u,d,h,r,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,i=1/0,o=-1/0,r=-1/0,a=0;a<t.length;){var s=t[a++],l=t[a++];n=Math.min(s,n),o=Math.max(s,o),i=Math.min(l,i),r=Math.max(l,r)}e=this._rect=new Ax(n,i,o,r)}return e},t}(kM),OJ=function(){function e(){this.group=new Ew}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var r=o.length,a=new Float32Array(r+i.length);a.set(o),a.set(i,r),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new EJ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var r=lT(e);r.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var n=e.hoverDataIdx;n>0&&(r.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),LJ={seriesType:"lines",plan:KL(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(o,r){var a=[];if(i){var s=void 0,l=o.end-o.start;if(n){for(var c=0,u=o.start;u<o.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var p=0,d=[];for(u=o.start;u<o.end;u++){var h=e.getLineCoords(u,a);n&&(s[p++]=h);for(var f=0;f<h;f++)d=t.dataToPoint(a[f],!1,d),s[p++]=d[0],s[p++]=d[1]}r.setLayout("linesPoints",s)}else for(u=o.start;u<o.end;u++){var g=r.getItemModel(u),m=(h=e.getLineCoords(u,a),[]);if(n)for(var v=0;v<h;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}r.setItemLayout(u,m)}}}}"production"!==process.env.NODE_ENV&&dS("The lines series must have a coordinate system.")}},NJ=LJ,PJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this._updateLineDraw(i,e),r=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l?"production"!==process.env.NODE_ENV&&console.warn("SVG render mode doesn't support lines with trail effect"):s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&iG(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var r=NJ.reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),o=!!t.get("polyline"),r=t.pipelineContext.large;return"production"!==process.env.NODE_ENV&&i&&r&&console.warn("Large lines not support effect"),n&&i===this._hasEffet&&o===this._isPolyline&&r===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=r?new OJ:new YX(o?i?DJ:IJ:i?MJ:UX),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=r),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(aN),RJ=PJ,zJ="undefined"==typeof Uint32Array?Array:Uint32Array,VJ="undefined"==typeof Float64Array?Array:Float64Array;function BJ(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&("production"!==process.env.NODE_ENV&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),e.data=zv(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),kv([t,e[0],e[1]])})))}var jJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return S(t,e),t.prototype.init=function(t){t.data=t.data||[],BJ(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(BJ(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=gy(this._flatCoords,t.flatCoords),this._flatCoordsOffset=gy(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");if("production"!==process.env.NODE_ENV&&!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],o=0;o<i;o++)t[o]=t[o]||[],t[o][0]=this._flatCoords[n+2*o],t[o][1]=this._flatCoords[n+2*o+1];return i}var r=this._getCoordsFromItemModel(e);for(o=0;o<r.length;o++)t[o]=t[o]||[],t[o][0]=r[o][0],t[o][1]=r[o][1];return r.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),qv(e[0])){for(var n=e.length,i=new zJ(n),o=new VJ(n),r=0,a=0,s=0,l=0;l<n;){s++;var c=e[l++];i[a++]=r+t,i[a++]=c;for(var u=0;u<c;u++){var p=e[l++],d=e[l++];if(o[r++]=p,o[r++]=d,l>n&&"production"!==process.env.NODE_ENV)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){if("production"!==process.env.NODE_ENV&&!FE.get(e.coordinateSystem))throw new Error("Unknown coordinate system "+e.coordinateSystem);var n=new kz(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,o){if(e instanceof Array)return NaN;n.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[o]:r:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),o=i.get("name");if(o)return o;var r=i.get("fromName"),a=i.get("toName"),s=[];return null!=r&&s.push(r),null!=a&&s.push(a),CL("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(XL),FJ=jJ;function GJ(e){return e instanceof Array||(e=[e,e]),e}var WJ={seriesType:"lines",reset:function(e){var t=GJ(e.get("symbol")),n=GJ(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=GJ(n.getShallow("symbol",!0)),o=GJ(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),o[0]&&e.setItemVisual(t,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(t,"toSymbolSize",o[1])}:null}}},HJ=WJ;var UJ=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=hv.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,p=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var h=0;h<d;++h){var f=e[h],g=f[0],m=f[1],v=i(f[2]);p.globalAlpha=v,p.drawImage(a,g-c,m-c)}if(!u.width||!u.height)return u;for(var y=p.getImageData(0,0,u.width,u.height),x=y.data,b=0,_=x.length,w=this.minOpacity,S=this.maxOpacity-w;b<_;){v=x[b+3]/256;var C=4*Math.floor(255*v);if(v>0){var M=r(v)?s:l;v>0&&(v=v*S+w),x[b++]=M[C],x[b++]=M[C+1],x[b++]=M[C+2],x[b++]=M[C+3]*v*256}else b+=4}return p.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=hv.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)e[t](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i},e}(),YJ=UJ;function qJ(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var XJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i;if(t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),"production"!==process.env.NODE_ENV&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):qJ(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var o=t.coordinateSystem;o&&(qJ(o)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){fD(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,o){var r,a,s,l,c=e.coordinateSystem,u=oG(c,"cartesian2d");if(u){var p=c.getAxis("x"),d=c.getAxis("y");if("production"!==process.env.NODE_ENV){if("category"!==p.type||"category"!==d.type)throw new Error("Heatmap on cartesian must have two category axes");if(!p.onBand||!d.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}r=p.getBandWidth()+.5,a=d.getBandWidth()+.5,s=p.scale.getExtent(),l=d.scale.getExtent()}for(var h=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),x=bD(e),b=e.getModel("emphasis"),_=b.get("focus"),w=b.get("blurScope"),S=b.get("disabled"),C=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var T=void 0,I=f.getItemVisual(M,"style");if(u){var A=f.get(C[0],M),D=f.get(C[1],M);if(isNaN(f.get(C[2],M))||isNaN(A)||isNaN(D)||A<s[0]||A>s[1]||D<l[0]||D>l[1])continue;var k=c.dataToPoint([A,D]);T=new UM({shape:{x:k[0]-r/2,y:k[1]-a/2,width:r,height:a},style:I})}else{if(isNaN(f.get(C[1],M)))continue;T=new UM({z2:1,shape:c.dataToRect([f.get(C[0],M)]).contentShape,style:I})}if(f.hasItemOption){var E=f.getItemModel(M),O=E.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),m=E.getModel(["blur","itemStyle"]).getItemStyle(),v=E.getModel(["select","itemStyle"]).getItemStyle(),y=E.get(["itemStyle","borderRadius"]),_=O.get("focus"),w=O.get("blurScope"),S=O.get("disabled"),x=bD(E)}T.shape.r=y;var L=e.getRawValue(M),N="-";L&&null!=L[2]&&(N=L[2]+""),xD(T,x,{labelFetcher:e,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:N}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=m,T.ensureState("select").style=v,tI(T,_,w,S),T.incremental=o,o&&(T.states.emphasis.hoverLayer=!0),h.add(T),f.setItemGraphicEl(M,T),this._progressiveEls&&this._progressiveEls.push(T)}},t.prototype._renderOnGeo=function(e,t,n,i){var o=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new YJ;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),p=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),h=Math.min(l.height+l.y,i.getHeight()),f=d-u,g=h-p,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,i){var o=e.dataToPoint([t,n]);return o[0]-=u,o[1]-=p,o.push(i),o})),y=n.getExtent(),x="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(y,n.option.range):function(e,t,n){var i=e[1]-e[0],o=(t=zv(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}))).length,r=0;return function(e){var i;for(i=r;i<o;i++)if((a=t[i].interval)[0]<=e&&e<=a[1]){r=i;break}if(i===o)for(i=r-1;i>=0;i--){var a;if((a=t[i].interval)[0]<=e&&e<=a[1]){r=i;break}}return i>=0&&i<o&&n[i]}}(y,n.getPieceList(),n.option.selected);s.update(v,f,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:r.color.getColorMapper()},x);var b=new zM({style:{width:f,height:g,x:u,y:p,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(aN),$J=XJ,ZJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.getInitialData=function(e,t){return Bz(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=FE.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(XL);var KJ=["itemStyle","borderWidth"],JJ=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],QJ=new OI,eQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=this.group,o=e.getData(),r=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:JJ[+s],categoryDim:JJ[1-+s]};o.diff(r).add((function(e){if(o.hasValue(e)){var t=lQ(o,e),n=tQ(o,e,t,c),r=pQ(o,c,n);o.setItemGraphicEl(e,r),i.add(r),mQ(r,c,n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(o.hasValue(e)){var a=lQ(o,e),s=tQ(o,e,a,c),l=hQ(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var i=n.animationModel,o=n.dataIndex,r=e.__pictorialBundle;RA(r,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),n.symbolRepeat?oQ(e,t,n,!0):rQ(e,t,n,!0);aQ(e,n,!0),sQ(e,t,n,!0)}(n,c,s):n=pQ(o,c,s,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),mQ(n,c,s)}else i.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&dQ(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var u=e.get("clip",!0)?iG(e.coordinateSystem,!1,e):null;return u?i.setClipPath(u):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){dQ(i,lT(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(aN);function tQ(e,t,n,i){var o=e.getItemLayout(t),r=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,u=n.isAnimationEnabled(),p={dataIndex:t,layout:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:l,animationModel:u?n:null,hoverScale:u&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,i,o){var r,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[a.wh]<=0);if(Wv(s)){var p=[nQ(l,s[0])-c,nQ(l,s[1])-c];p[1]<p[0]&&p.reverse(),r=p[u]}else r=null!=s?nQ(l,s)-c:t?i.coordSysExtent[a.index][u]-c:n[a.wh];o.boundingLength=r,t&&(o.repeatCutLength=n[a.wh]);o.pxSign=r>0?1:-1}(n,r,o,i,p),function(e,t,n,i,o,r,a,s,l,c){var u,p=l.valueDim,d=l.categoryDim,h=Math.abs(n[d.wh]),f=e.getItemVisual(t,"symbolSize");u=Wv(f)?f.slice():null==f?["100%","100%"]:[f,f];u[d.index]=jw(u[d.index],h),u[p.index]=jw(u[p.index],i?h:Math.abs(r)),c.symbolSize=u;var g=c.symbolScale=[u[0]/s,u[1]/s];g[p.index]*=(l.isHorizontal?-1:1)*a}(e,t,o,r,0,p.boundingLength,p.pxSign,c,i,p),function(e,t,n,i,o){var r=e.get(KJ)||0;r&&(QJ.attr({scaleX:t[0],scaleY:t[1],rotation:n}),QJ.updateTransform(),r/=QJ.getLineScale(),r*=t[i.valueDim.index]);o.valueLineWidth=r||0}(n,p.symbolScale,l,i,p);var d=p.symbolSize,h=mP(n.get("symbolOffset"),d);return function(e,t,n,i,o,r,a,s,l,c,u,p){var d=u.categoryDim,h=u.valueDim,f=p.pxSign,g=Math.max(t[h.index]+s,0),m=g;if(i){var v=Math.abs(l),y=ty(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var b=jw(y,t[h.index]),_=Math.max(g+2*b,0),w=x?0:2*b,S=iS(i),C=S?i:vQ((v+w)/_);_=g+2*(b=(v-C*g)/2/(x?C:Math.max(C-1,1))),w=x?0:2*b,S||"fixed"===i||(C=c?vQ((Math.abs(c)+w)/_):0),m=C*_-w,p.repeatTimes=C,p.symbolMargin=b}var M=f*(m/2),T=p.pathPosition=[];T[d.index]=n[d.wh]/2,T[h.index]="start"===a?M:"end"===a?l-M:l/2,r&&(T[0]+=r[0],T[1]+=r[1]);var I=p.bundlePosition=[];I[d.index]=n[d.xy],I[h.index]=n[h.xy];var A=p.barRectShape=Ev({},n);A[h.wh]=f*Math.max(Math.abs(n[h.wh]),Math.abs(T[h.index]+M)),A[d.wh]=n[d.wh];var D=p.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=u.ecSize[d.wh],D[h.xy]=0,D[h.wh]=n[h.wh]}(n,d,o,r,0,h,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function nQ(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function iQ(e){var t=e.symbolPatternSize,n=fP(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function oQ(e,t,n,i){var o=e.__pictorialBundle,r=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,p=r[t.valueDim.index]+a+2*n.symbolMargin;for(fQ(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?gQ(e,null,f(u),n,i):gQ(e,null,{scaleX:0,scaleY:0},n,i,(function(){o.remove(e)})),u++}));u<c;u++){var d=iQ(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,o.add(d);var h=f(u);gQ(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,o=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(o=c-1-e),t[l.index]=p*(o-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function rQ(e,t,n,i){var o=e.__pictorialBundle,r=e.__pictorialMainPath;r?gQ(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=e.__pictorialMainPath=iQ(n),o.add(r),gQ(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function aQ(e,t,n){var i=Ev({},t.barRectShape),o=e.__pictorialBarRect;o?gQ(o,null,{shape:i},t,n):((o=e.__pictorialBarRect=new UM({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(o))}function sQ(e,t,n,i){if(n.symbolClip){var o=e.__pictorialClipPath,r=Ev({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(o)RA(o,{shape:r},s,l);else{r[a.wh]=0,o=new UM({shape:r}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[a.wh]=n.clipShape[a.wh],gD[i?"updateProps":"initProps"](o,{shape:c},s,l)}}}function lQ(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=cQ,n.isAnimationEnabled=uQ,n}function cQ(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function uQ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function pQ(e,t,n,i){var o=new Ew,r=new Ew;return o.add(r),o.__pictorialBundle=r,r.x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?oQ(o,t,n):rQ(o,0,n),aQ(o,n,i),sQ(o,t,n,i),o.__pictorialShapeStr=hQ(e,n),o.__pictorialSymbolMeta=n,o}function dQ(e,t,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];fQ(i,(function(e){r.push(e)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),Rv(r,(function(e){BA(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function hQ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function fQ(e,t,n){Rv(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function gQ(e,t,n,i,o,r){t&&e.attr(t),i.symbolClip&&!o?n&&e.attr(n):n&&gD[o?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,r)}function mQ(e,t,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),u=r.get("focus"),p=r.get("blurScope"),d=r.get("scale");fQ(e,(function(e){if(e instanceof zM){var t=e.style;e.useStyle(Ev({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=n.z2}));var h=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;f.ignoreClip=!0,xD(f,bD(o),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:zF(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),tI(e,u,p,r.get("disabled"))}function vQ(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var yQ=eQ,xQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return S(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=XD(wG.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(wG);var bQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return S(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this,r=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}r.x=0,r.y=l.y+c[0];var p=new az(this._layersSeries||[],a,u,u),d=[];function h(t,n,s){var l=o._layers;if("remove"!==t){for(var c,u,p=[],h=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,x=m.y;p.push(v,y),h.push(v,y+x),c=i.getItemVisual(f[g],"style")}var b=i.getItemLayout(f[0]),_=e.getModel("label").get("margin"),w=e.getModel("emphasis");if("add"===t){var S=d[n]=new Ew;u=new eG({shape:{points:p,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(u),r.add(S),e.isAnimationEnabled()&&u.setClipPath(function(e,t,n){var i=new UM({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return zA(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{S=l[s];u=S.childAt(0),r.add(S),d[n]=S,RA(u,{shape:{points:p,stackedOnPoints:h}},e),GA(u)}xD(u,bD(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var C=u.getTextContent();C&&(C.x=b.x-_,C.y=b.y0+b.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),rI(u,e),tI(u,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else r.remove(l[n])}p.add(Fv(h,this,"add")).update(Fv(h,this,"update")).remove(Fv(h,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(aN);var _Q=bQ,wQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new pW(Fv(this.getData,this),Fv(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=GS(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),o=[];i.buckets.each((function(e,t){o.push({name:t,dataList:e})}));for(var r=o.length,a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var c=o[a].dataList[l][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",VS).models[0].get("type"),i=Bv(e.data,(function(e){return void 0!==e[2]})),o=this.fixData(i||[]),r=[],a=this.nameMap=fy(),s=0,l=0;l<o.length;++l)r.push(o[l][2]),a.get(o[l][2])||(a.set(o[l][2],s),s++);var c=Ez(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:cz(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new kz(c,this);return u.initData(o),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var o=e.mapDimension("single"),r=GS(n,(function(t){return e.get("name",t)})),a=[];return r.buckets.each((function(t,n){t.sort((function(t,n){return e.get(o,t)-e.get(o,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){Wv(e)||(e=e?[e]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,p=r[l].indices.length,d=0;d<p;++d){var h=o.get(e[0],r[l].indices[d]),f=Math.abs(h-t);f<=c&&(i=h,c=f,u=r[l].indices[d])}a.push(u)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData();return CL("nameValue",{name:i.getName(e),value:i.get(i.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(XL),SQ=wQ;function CQ(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var r=e.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=r,"horizontal"===a.orient)?(r[0]=jw(r[0],o.height),r[1]=jw(r[1],o.height),MQ(t,e,o.height-r[0]-r[1])):(r[0]=jw(r[0],o.width),r[1]=jw(r[1],o.width),MQ(t,e,o.width-r[0]-r[1]));t.setLayout("layoutInfo",i)}))}function MQ(e,t,n){if(e.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=zv(r,(function(t){return zv(t.indices,(function(t){var n=o.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),c=function(e){for(var t=e.length,n=e[0].length,i=[],o=[],r=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>r&&(r=s),i.push(s)}for(var c=0;c<n;++c)o[c]=(r-i[c])/2;r=0;for(var u=0;u<n;++u){var p=i[u]+o[u];p>r&&(r=p)}return{y0:o,max:r}}(l),u=c.y0,p=n/c.max,d=r.length,h=r[0].indices.length,f=0;f<h;++f){i=u[f]*p,e.setItemLayout(r[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*p});for(var g=1;g<d;++g)i+=l[g-1][f][1]*p,e.setItemLayout(r[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*p})}}var TQ=function(e){function t(t,n,i,o){var r=e.call(this)||this;r.z2=2,r.textConfig={inside:!0},lT(r).seriesIndex=n.seriesIndex;var a=new sT({z2:4,silent:t.getModel().get(["label","silent"])});return r.setTextContent(a),r.updateData(!0,t,n,i,o),r}return S(t,e),t.prototype.updateData=function(e,t,n,i,o){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;lT(r).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),c=Ev({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var p=t.getVisual("decal");p&&(u.decal=UP(p,o));var d=DG(a.getModel("itemStyle"),c,!0);Ev(c,d),Rv(vT,(function(e){var t=r.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=DG(n,c);i&&(t.shape=i)})),e?(r.setShape(c),r.shape.r=l.r0,zA(r,{shape:{r:l.r}},n,t.dataIndex)):(RA(r,{shape:c},n),GA(r)),r.useStyle(u),this._updateLabel(n);var h=a.getShallow("cursor");h&&r.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");tI(this,"ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),r=o.endAngle-o.startAngle,a=(o.startAngle+o.endAngle)/2,s=Math.cos(a),l=Math.sin(a),c=this,u=c.getTextContent(),p=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,h=i.get("show")&&!(null!=d&&Math.abs(r)<d);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}u.ignore=!h,Rv(yT,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),h="normal"===i,g=h?u:u.ensureState(i),m=e.getFormattedLabel(p,i);h&&(m=m||t.node.name),g.style=_D(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=d.get("show");null==v||h||(g.ignore=!v);var y,x=f(d,"position"),b=h?c:c.states[i],_=b.style.fill;b.textConfig={outsideFill:"inherit"===d.get("color")?_:null,inside:"outside"!==x};var w=f(d,"distance")||0,S=f(d,"align"),C=f(d,"rotate"),M=.5*Math.PI,T=1.5*Math.PI,I=hM("tangential"===C?Math.PI/2-a:a),A=I>M&&!$w(I-M)&&I<T;"outside"===x?(y=o.r+w,S=A?"right":"left"):S&&"center"!==S?"left"===S?(y=o.r0+w,S=A?"right":"left"):"right"===S&&(y=o.r-w,S=A?"left":"right"):(y=r===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+o.cx,g.y=y*l+o.cy;var D=0;"radial"===C?D=hM(-a)+(A?Math.PI:0):"tangential"===C?D=hM(Math.PI/2-a)+(A?Math.PI:0):qv(C)&&(D=C*Math.PI/180),g.rotation=hM(D)})),u.dirtyStyle()},t}(KI),IQ="sunburstRootToNode",AQ="sunburstHighlight",DQ="sunburstUnhighlight";var kQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var r=e.getData(),a=r.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var p=this._oldChildren||[];!function(i,o){if(0===i.length&&0===o.length)return;function s(e){return e.getId()}function u(s,u){!function(i,o){c||!i||i.getValue()||(i=null);if(i!==a&&o!==a)if(o&&o.piece)i?(o.piece.updateData(!1,i,e,t,n),r.setItemGraphicEl(i.dataIndex,o.piece)):function(e){if(!e)return;e.piece&&(l.remove(e.piece),e.piece=null)}(o);else if(i){var s=new TQ(i,e,t,n);l.add(s),r.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==u?null:o[u])}new az(o,i,s,s).add(u).update(u).remove(Gv(u,null)).execute()}(u,p),function(i,r){r.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,i,e,t,n):(o.virtualPiece=new TQ(i,e,t,n),l.add(o.virtualPiece)),r.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(r.parentNode)}))):o.virtualPiece&&(l.remove(o.virtualPiece),o.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(i);else if("link"===o){var r=i.getModel(),a=r.get("link");if(a)Fk(a,r.get("target",!0)||"_blank")}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:IQ,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},t.type="sunburst",t}(aN),EQ=kQ,OQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return S(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};LQ(n);var i=this._levelModels=zv(e.levels||[],(function(e){return new UD(e,this,t)}),this),o=qY.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}));return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=KY(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){oq(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(XL);function LQ(e){var t=0;Rv(e.children,(function(e){LQ(e);var n=e.value;Wv(n)&&(n=n[0]),t+=n}));var n=e.value;Wv(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),Wv(e.value)?e.value[0]=n:e.value=n}var NQ=OQ,PQ=Math.PI/180;function RQ(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");Wv(i)||(i=[0,i]),Wv(t)||(t=[t,t]);var o=n.getWidth(),r=n.getHeight(),a=Math.min(o,r),s=jw(t[0],o),l=jw(t[1],r),c=jw(i[0],a/2),u=jw(i[1],a/2),p=-e.get("startAngle")*PQ,d=e.get("minAngle")*PQ,h=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,m=e.get("sort");null!=m&&zQ(f,m);var v=0;Rv(f.children,(function(e){!isNaN(e.getValue())&&v++}));var y=f.getValue(),x=Math.PI/(y||v)*2,b=f.depth>0,_=f.height-(b?-1:1),w=(u-c)/(_||1),S=e.get("clockwise"),C=e.get("stillShowZeroSum"),M=S?1:-1,T=function(t,n){if(t){var i=n;if(t!==h){var o=t.getValue(),r=0===y&&C?x:o*x;r<d&&(r=d),i=n+M*r;var u=t.depth-g-(b?-1:1),p=c+w*u,f=c+w*(u+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),_=m.get("r",!0),I=m.get("radius",!0);null!=I&&(v=I[0],_=I[1]),null!=v&&(p=jw(v,a/2)),null!=_&&(f=jw(_,a/2))}t.setLayout({angle:r,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:p,r:f})}if(t.children&&t.children.length){var A=0;Rv(t.children,(function(e){A+=T(e,n+A)}))}return i-n}};if(b){var I=c,A=c+w,D=2*Math.PI;h.setLayout({angle:D,startAngle:p,endAngle:p+D,clockwise:S,cx:s,cy:l,r0:I,r:A})}T(f,p)}))}function zQ(e,t){var n=e.children||[];e.children=function(e,t){if(Hv(t)){var n=zv(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),zv(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}(n,t),n.length&&Rv(e.children,(function(e){zQ(e,t)}))}function VQ(e){var t={};e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),i=n.tree;i.eachNode((function(o){var r=o.getModel().getModel("itemStyle").getItemStyle();r.fill||(r.fill=function(e,n,i){for(var o=e;o&&o.depth>1;)o=o.parentNode;var r=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&Uv(r)&&(r=Yb(r,(e.depth-1)/(i-1)*.5)),r}(o,e,i.root.height)),Ev(n.ensureUniqueItemVisual(o.dataIndex,"style"),r)}))}))}var BQ={color:"fill",borderColor:"stroke"},jQ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},FQ=NS(),GQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Bz(null,this)},t.prototype.getDataParams=function(t,n,i){var o=e.prototype.getDataParams.call(this,t,n);return i&&(o.info=FQ(i).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(XL);function WQ(e,t){return t=t||[0,0],zv(["x","y"],(function(n,i){var o=this.getAxis(n),r=t[i],a=e[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))}),this)}function HQ(e,t){return t=t||[0,0],zv([0,1],(function(n){var i=t[n],o=e[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])}),this)}function UQ(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function YQ(e,t){return t=t||[0,0],zv(["Radius","Angle"],(function(n,i){var o=this["get"+n+"Axis"](),r=t[i],a=e[i]/2,s="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}var qQ={};function XQ(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||yy(e,"text")))}function $Q(e,t,n){var i,o,r,a=e;if("text"===t)r=a;else{r={},yy(a,"text")&&(r.text=a.text),yy(a,"rich")&&(r.rich=a.rich),yy(a,"textFill")&&(r.fill=a.textFill),yy(a,"textStroke")&&(r.stroke=a.textStroke),yy(a,"fontFamily")&&(r.fontFamily=a.fontFamily),yy(a,"fontSize")&&(r.fontSize=a.fontSize),yy(a,"fontStyle")&&(r.fontStyle=a.fontStyle),yy(a,"fontWeight")&&(r.fontWeight=a.fontWeight),o={type:"text",style:r,silent:!0},i={};var s=yy(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),yy(a,"textPosition")&&(i.position=a.textPosition),yy(a,"textOffset")&&(i.offset=a.textOffset),yy(a,"textRotation")&&(i.rotation=a.textRotation),yy(a,"textDistance")&&(i.distance=a.textDistance)}return ZQ(r,e),Rv(r.rich,(function(e){ZQ(e,e)})),{textConfig:i,textContent:o}}function ZQ(e,t){t&&(t.font=t.textFont||t.font,yy(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),yy(t,"textAlign")&&(e.align=t.textAlign),yy(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),yy(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),yy(t,"textWidth")&&(e.width=t.textWidth),yy(t,"textHeight")&&(e.height=t.textHeight),yy(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),yy(t,"textPadding")&&(e.padding=t.textPadding),yy(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),yy(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),yy(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),yy(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),yy(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),yy(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),yy(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function KQ(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var o=i.textPosition.indexOf("inside")>=0,r=e.fill||"#000";JQ(i,t);var a=null==i.textFill;return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Rv(t.rich,(function(e){JQ(e,e)})),i}function JQ(e,t){t&&(yy(t,"fill")&&(e.textFill=t.fill),yy(t,"stroke")&&(e.textStroke=t.fill),yy(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),yy(t,"font")&&(e.font=t.font),yy(t,"fontStyle")&&(e.fontStyle=t.fontStyle),yy(t,"fontWeight")&&(e.fontWeight=t.fontWeight),yy(t,"fontSize")&&(e.fontSize=t.fontSize),yy(t,"fontFamily")&&(e.fontFamily=t.fontFamily),yy(t,"align")&&(e.textAlign=t.align),yy(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),yy(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),yy(t,"width")&&(e.textWidth=t.width),yy(t,"height")&&(e.textHeight=t.height),yy(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),yy(t,"padding")&&(e.textPadding=t.padding),yy(t,"borderColor")&&(e.textBorderColor=t.borderColor),yy(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),yy(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),yy(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),yy(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),yy(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),yy(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),yy(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),yy(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),yy(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),yy(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function QQ(e,t){if("production"!==process.env.NODE_ENV){var n=e+"^_^"+t;qQ[n]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),qQ[n]=!0)}}var e0={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},t0=jv(e0),n0=Vv(cw,(function(e,t){return e[t]=1,e}),{}),i0=cw.join(", "),o0=["","style","shape","extra"],r0=NS();function a0(e,t,n,i,o){var r=e+"Animation",a=NA(e,i,o)||{},s=r0(t).userDuring;return a.duration>0&&(a.during=s?Fv(g0,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Ev(a,n[r]),a}function s0(e,t,n,i){var o=(i=i||{}).dataIndex,r=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=r0(e),c=t.style;l.userDuring=t.during;var u={},p={};if(function(e,t,n){for(var i=0;i<t0.length;i++){var o=t0[i],r=e0[o],a=t[o];a&&(n[r[0]]=a[0],n[r[1]]=a[1])}for(i=0;i<cw.length;i++){var s=cw[i];null!=t[s]&&(n[s]=t[s])}}(0,t,p),v0("shape",t,p),v0("extra",t,p),!r&&s&&(function(e,t,n){for(var i=t.transition,o=u0(i)?cw:bS(i||[]),r=0;r<o.length;r++){var a=o[r];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];"production"!==process.env.NODE_ENV&&p0(a,"el.transition"),n[a]=s}}}(e,t,u),m0("shape",e,t,u),m0("extra",e,t,u),function(e,t,n,i){if(!n)return;var o,r=e.style;if(r){var a=n.transition,s=t.transition;if(a&&!u0(a)){var l=bS(a);!o&&(o=i.style={});for(var c=0;c<l.length;c++){var u=r[f=l[c]];o[f]=u}}else if(e.getAnimationStyleProps&&(u0(s)||u0(a)||Lv(s,"style")>=0)){var p=e.getAnimationStyleProps(),d=p?p.style:null;if(d){!o&&(o=i.style={});var h=jv(n);for(c=0;c<h.length;c++){var f;if(d[f=h[c]]){u=r[f];o[f]=u}}}}}}(e,t,c,u)),p.style=c,function(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var o=e.animators,r=0;r<o.length;r++){var a=o[r];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}(e,p,a),function(e,t){yy(t,"silent")&&(e.silent=t.silent),yy(t,"ignore")&&(e.ignore=t.ignore),e instanceof AC&&yy(t,"invisible")&&(e.invisible=t.invisible);e instanceof kM&&yy(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(r){var d={};Rv(o0,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Ev(e?d[e]:d,n.enterFrom))}));var h=a0("enter",e,t,n,o);h.duration>0&&e.animateFrom(d,h)}else!function(e,t,n,i,o){if(o){var r=a0("update",e,t,i,n);r.duration>0&&e.animateFrom(o,r)}}(e,t,o||0,n,u);l0(e,t),c?e.dirty():e.markRedraw()}function l0(e,t){for(var n=r0(e).leaveToProps,i=0;i<o0.length;i++){var o=o0[i],r=o?t[o]:t;r&&r.leaveTo&&(n||(n=r0(e).leaveToProps={}),o&&(n[o]=n[o]||{}),Ev(o?n[o]:n,r.leaveTo))}}function c0(e,t,n,i){if(e){var o=e.parent,r=r0(e).leaveToProps;if(r){var a=a0("update",e,t,n,0);a.done=function(){o.remove(e),i&&i()},e.animateTo(r,a)}else o.remove(e),i&&i()}}function u0(e){return"all"===e}var p0,d0={},h0={setTransform:function(e,t){return"production"!==process.env.NODE_ENV&&ay(yy(n0,e),"Only "+i0+" available in `setTransform`."),d0.el[e]=t,this},getTransform:function(e){return"production"!==process.env.NODE_ENV&&ay(yy(n0,e),"Only "+i0+" available in `getTransform`."),d0.el[e]},setShape:function(e,t){"production"!==process.env.NODE_ENV&&f0(e);var n=d0.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){"production"!==process.env.NODE_ENV&&f0(e);var t=d0.el.shape;if(t)return t[e]},setStyle:function(e,t){"production"!==process.env.NODE_ENV&&f0(e);var n=d0.el,i=n.style;return i&&("production"!==process.env.NODE_ENV&&ey(t)&&pS("style."+e+" must not be assigned with NaN."),i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){"production"!==process.env.NODE_ENV&&f0(e);var t=d0.el.style;if(t)return t[e]},setExtra:function(e,t){return"production"!==process.env.NODE_ENV&&f0(e),(d0.el.extra||(d0.el.extra={}))[e]=t,this},getExtra:function(e){"production"!==process.env.NODE_ENV&&f0(e);var t=d0.el.extra;if(t)return t[e]}};function f0(e){if("production"!==process.env.NODE_ENV&&("transition"===e||"enterFrom"===e||"leaveTo"===e))throw new Error('key must not be "'+e+'"')}function g0(){var e=this,t=e.el;if(t){var n=r0(t).userDuring,i=e.userDuring;n===i?(d0.el=t,i(h0)):e.el=e.userDuring=null}}function m0(e,t,n,i){var o=n[e];if(o){var r,a=t[e];if(a){var s=n.transition,l=o.transition;if(l)if(!r&&(r=i[e]={}),u0(l))Ev(r,a);else for(var c=bS(l),u=0;u<c.length;u++){var p=a[h=c[u]];r[h]=p}else if(u0(s)||Lv(s,e)>=0){!r&&(r=i[e]={});var d=jv(a);for(u=0;u<d.length;u++){var h;p=a[h=d[u]];y0(o[h],p)&&(r[h]=p)}}}}}function v0(e,t,n){var i=t[e];if(i)for(var o=n[e]={},r=jv(i),a=0;a<r.length;a++){var s=r[a];o[s]=S_(i[s])}}function y0(e,t){return Pv(e)?e!==t:null!=e&&isFinite(e)}"production"!==process.env.NODE_ENV&&(p0=function(e,t){yy(n0,e)||pS("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+jv(n0).join("`, `")+"` are permitted.")});var x0=NS(),b0=["percent","easing","shape","style","extra"];function _0(e){e.stopAnimation("keyframe"),e.attr(x0(e))}function w0(e,t,n){if(n.isAnimationEnabled()&&t)if(Wv(t))Rv(t,(function(t){w0(e,t,n)}));else{var i=t.keyframes,o=t.duration;if(n&&null==o){var r=NA("enter",n,0);o=r&&r.duration}if(i&&o){var a=x0(e);Rv(o0,(function(n){if(!n||e[n]){var r,s=!1;i.sort((function(e,t){return e.percent-t.percent})),Rv(i,(function(i){var l=e.animators,c=n?i[n]:i;if("production"!==process.env.NODE_ENV&&i.percent>=1&&(s=!0),c){var u=jv(c);if(n||(u=Bv(u,(function(e){return Lv(b0,e)<0}))),u.length){r||((r=e.animate(n,t.loop,!0)).scope="keyframe");for(var p=0;p<l.length;p++)l[p]!==r&&l[p].targetName===r.targetName&&l[p].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Rv(u,(function(t){d[t]=((n?e[n]:e)||{})[t]})),r.whenWithKeys(o*i.percent,c,u,i.easing)}}})),r&&("production"!==process.env.NODE_ENV&&(s||pS("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),r.delay(t.delay||0).duration(o).start(t.easing))}}))}}}var S0="emphasis",C0="normal",M0="blur",T0="select",I0=[C0,S0,M0,T0],A0={normal:["itemStyle"],emphasis:[S0,"itemStyle"],blur:[M0,"itemStyle"],select:[T0,"itemStyle"]},D0={normal:["label"],emphasis:[S0,"label"],blur:[M0,"label"],select:[T0,"label"]},k0=["x","y"],E0="e\0\0",O0={normal:{},emphasis:{},blur:{},select:{}},L0={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Fv(WQ,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:Fv(HQ,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Fv(UQ,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),a=e.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a},size:Fv(YQ,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function N0(e){return e instanceof kM}function P0(e){return e instanceof AC}var R0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var o=this._data,r=e.getData(),a=this.group,s=G0(e,r,t,n);o||a.removeAll(),r.diff(o).add((function(t){H0(n,null,t,s(t,i),e,a,r)})).remove((function(t){var n=o.getItemGraphicEl(t);n&&c0(n,FQ(n).option,e)})).update((function(t,l){var c=o.getItemGraphicEl(l);H0(n,c,t,s(t,i),e,a,r)})).execute();var l=e.get("clip",!0)?iG(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,o){var r=t.getData(),a=G0(t,r,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=H0(null,null,c,a(c,o),t,this.group,r);u&&(u.traverse(l),s.push(u))}},t.prototype.eachRendered=function(e){fD(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var o=t.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(aN),z0=R0;function V0(e){var t,n=e.type;if("path"===n){var i=e.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=e1(i);t=$A(r,null,o,i.layout||"center"),FQ(t).customPathData=r}else if("image"===n)t=new zM({}),FQ(t).customImagePath=e.style.image;else if("text"===n)t=new sT({});else if("group"===n)t=new Ew;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=XA(n);if(!a){var s="";"production"!==process.env.NODE_ENV&&(s='graphic type "'+n+'" can not be found.'),mS(s)}t=new a}return FQ(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function B0(e,t,n,i,o,r,a){_0(t);var s=o&&o.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=k0);var l=i&&i.style;if(l){if("text"===t.type){var c=l;yy(c,"textFill")&&(c.fill=c.textFill),yy(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,p=N0(t)?l.decal:null;e&&p&&(p.dirty=!0,u=UP(p,e)),l.__decalPattern=u}P0(t)&&(l&&(u=l.__decalPattern)&&(l.decal=u));s0(t,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),w0(t,i.keyframeAnimation,r)}function j0(e,t,n,i,o){var r=t.isGroup?null:t,a=o&&o[e].cfg;if(r){var s=r.ensureState(e);if(!1===i){var l=r.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),VT(r)}}function F0(e,t,n){var i=n===C0,o=i?t:X0(t,n),r=o?o.z2:null;null!=r&&((i?e:e.ensureState(n)).z2=r||0)}function G0(e,t,n,i){var o=e.get("renderItem"),r=e.coordinateSystem,a={};r&&("production"!==process.env.NODE_ENV&&(ay(o,"series.render is required."),ay(r.prepareCustoms||L0[r.type],"This coordSys does not support custom series.")),a=r.prepareCustoms?r.prepareCustoms(r):L0[r.type](r));for(var s,l,c=Ov({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){"production"!==process.env.NODE_ENV&&QQ("api.style","Please write literal style directly instead.");null==i&&(i=s);var o=t.getItemVisual(i,"style"),r=o&&o.fill,a=o&&o.opacity,l=y(i,C0).getItemStyle();null!=r&&(l.fill=r),null!=a&&(l.opacity=a);var c={inheritColor:Uv(r)?r:"#000"},u=x(i,C0),p=_D(u,null,c,!1,!0);p.text=u.getShallow("show")?ny(e.getFormattedLabel(i,C0),zF(t,i)):null;var d=wD(u,c,!1);return _(n,l),l=KQ(l,p,d),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var o=t.getDimensionIndex(e);return o>=0?t.getStore().get(o,n):void 0}var r=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[r]:r},styleEmphasis:function(n,i){"production"!==process.env.NODE_ENV&&QQ("api.styleEmphasis","Please write literal style directly instead.");null==i&&(i=s);var o=y(i,S0).getItemStyle(),r=x(i,S0),a=_D(r,null,null,!0,!0);a.text=r.getShallow("show")?iy(e.getFormattedLabel(i,S0),e.getFormattedLabel(i,C0),zF(t,i)):null;var l=wD(r,null,!0);return _(n,o),o=KQ(o,a,l),n&&b(o,n),o.legacy=!0,o},visual:function(e,n){if(null==n&&(n=s),yy(BQ,e)){var i=t.getItemVisual(n,"style");return i?i[BQ[e]]:null}if(yy(jQ,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===r.type){return function(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var o=n.getBandWidth(),r=0;r<e.count;r++)t.push(Ov({bandWidth:o,axisKey:i,stackId:sV+r},e));var a=dV(t),s=[];for(r=0;r<e.count;r++){var l=a[i][sV+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(Ov({axis:r.getBaseAxis()},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return ID(e,n)}},a.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:W0(e.getData())},p={},d={},h={},f={},g=0;g<I0.length;g++){var m=I0[g];h[m]=e.getModel(A0[m]),f[m]=e.getModel(D0[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?p[n]||(p[n]=v(e).getModel(A0[n])):v(e).getModel(A0[n]):h[n]}function x(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(D0[n])):v(e).getModel(D0[n]):f[n]}return function(e,n){return s=e,l=null,p={},d={},o&&o(Ov({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function b(e,t){for(var n in t)yy(t,n)&&(e[n]=t[n])}function _(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function W0(e){var t={};return Rv(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim;(t[o]=t[o]||[])[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function H0(e,t,n,i,o,r,a){if(i){var s=U0(e,t,n,i,o,r);return s&&a.setItemGraphicEl(n,s),s&&tI(s,i.focus,i.blurScope,i.emphasisDisabled),s}r.remove(t)}function U0(e,t,n,i,o,r){"production"!==process.env.NODE_ENV&&ay(i,"should not have an null/undefined element setting");var a=-1,s=t;t&&Y0(t,i,o)&&(a=Lv(r.childrenRef(),t),t=null);var l,c,u=!t,p=t;p?p.clearStates():(p=V0(i),s&&(l=s,(c=p).copyTransform(l),P0(c)&&P0(l)&&(c.setStyle(l.style),c.z=l.z,c.z2=l.z2,c.zlevel=l.zlevel,c.invisible=l.invisible,c.ignore=l.ignore,N0(c)&&N0(l)&&c.setShape(l.shape)))),!1===i.morph?p.disableMorphing=!0:p.disableMorphing&&(p.disableMorphing=!1),O0.normal.cfg=O0.normal.conOpt=O0.emphasis.cfg=O0.emphasis.conOpt=O0.blur.cfg=O0.blur.conOpt=O0.select.cfg=O0.select.conOpt=null,O0.isLegacy=!1,function(e,t,n,i,o,r){if(e.isGroup)return;q0(n,null,r),q0(n,S0,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,c=r.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===a)u&&e.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=V0(a),e.setTextContent(u)),B0(null,u,t,a,null,i,o);for(var p=a&&a.style,d=0;d<I0.length;d++){var h=I0[d];if(h!==C0){var f=r[h].conOpt;j0(h,u,0,$0(a,f,h),null)}}p?u.dirty():u.markRedraw()}}}(p,n,i,o,u,O0),function(e,t,n,i,o){var r=n.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var a=e.getClipPath();a&&Y0(a,r,i)&&(a=null),a||(a=V0(r),"production"!==process.env.NODE_ENV&&ay(N0(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),e.setClipPath(a)),B0(null,a,t,r,null,i,o)}}(p,n,i,o,u),B0(e,p,n,i,O0,o,u),yy(i,"info")&&(FQ(p).info=i.info);for(var d=0;d<I0.length;d++){var h=I0[d];if(h!==C0){var f=X0(i,h);j0(h,p,0,$0(i,f,h),O0)}}return function(e,t,n){if(!e.isGroup){var i=e,o=n.currentZ,r=n.currentZLevel;i.z=o,i.zlevel=r;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<I0.length;s++)F0(i,t,I0[s])}}(p,i,o),"group"===i.type&&function(e,t,n,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(!a&&!l&&!c)return;if(l)return u={api:e,oldChildren:t.children()||[],newChildren:r||[],dataIndex:n,seriesModel:o,group:t},void new az(u.oldChildren,u.newChildren,K0,K0,u).add(J0).update(J0).remove(Q0).execute();var u;c&&t.removeAll();for(var p=0;p<a;p++){var d=r[p],h=t.childAt(p);d?(null==d.ignore&&(d.ignore=!1),U0(e,h,n,d,o,t)):("production"!==process.env.NODE_ENV&&ay(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var f=t.childCount()-1;f>=p;f--){var g=t.childAt(f);Z0(t,g,o)}}(e,p,n,i,o),a>=0?r.replaceAt(p,a):r.add(p),p}function Y0(e,t,n){var i,o=FQ(e),r=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==o.customGraphicType||"path"===r&&((i=a)&&(yy(i,"pathData")||yy(i,"d")))&&e1(a)!==o.customPathData||"image"===r&&yy(s,"image")&&s.image!==o.customImagePath}function q0(e,t,n){var i=t?X0(e,t):e,o=t?$0(e,i,S0):e.style,r=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?X0(s,t):s:null;if(o&&(n.isLegacy||XQ(o,r,!!a,!!l))){n.isLegacy=!0;var c=$Q(o,r,!t);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text"),"production"!==process.env.NODE_ENV&&ay("text"===u.type,'textContent.type must be "text"')}var p=t?n[t]:n.normal;p.cfg=a,p.conOpt=l}function X0(e,t){return t?e?e[t]:null:e}function $0(e,t,n){var i=t&&t.style;return null==i&&n===S0&&e&&(i=e.styleEmphasis),i}function Z0(e,t,n){t&&c0(t,FQ(e).option,n)}function K0(e,t){var n=e&&e.name;return null!=n?n:E0+t}function J0(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;U0(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function Q0(e){var t=this.context,n=t.oldChildren[e];n&&c0(n,FQ(n).option,t.seriesModel)}function e1(e){return e&&(e.pathData||e.d)}var t1=NS(),n1=Av,i1=Fv,o1=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var o=t.get("value"),r=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;var a=this._group,s=this._handle;if(!r||"hide"===r)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,o,e,t,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(a){var p=Gv(r1,t,u);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,t)}else a=this._group=new Ew,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);c1(a,t,!0),this._renderHandle(o)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,o="category"===i.type,r=t.get("snap");if(!r&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&i.getBandWidth()>a)return!0;if(r){var s=nH(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,o){},e.prototype.createPointerEl=function(e,t,n,i){var o=t.pointer;if(o){var r=t1(e).pointerEl=new gD[o.type](n1(t.pointer));e.add(r)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var o=t1(e).labelEl=new sT(n1(t.label));e.add(o),s1(o,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=t1(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var o=t1(e).labelEl;o&&(o.setStyle(t.label.style),n(o,{x:t.label.x,y:t.label.y}),s1(o,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=lD(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){rx(e.event)},onmousedown:i1(this._onHandleDragMove,this,0,0),drift:i1(this._onHandleDragMove,this),ondragend:i1(this._onHandleDragEnd,this)}),i.add(o)),c1(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");Wv(s)||(s=[s,s]),o.scaleX=s[0]/2,o.scaleY=s[1]/2,pN(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){r1(this._axisPointerModel,!t&&this._moveAnimation,this._handle,l1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(l1(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(l1(i)),t1(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),dN(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function r1(e,t,n,i){a1(t1(n).lastProp,i)||(t1(n).lastProp=i,t?RA(n,i,e):(n.stopAnimation(),n.attr(i)))}function a1(e,t){if(Xv(e)&&Xv(t)){var n=!0;return Rv(t,(function(t,i){n=n&&a1(e[i],t)})),!!n}return e===t}function s1(e,t){e[t.get(["label","show"])?"show":"hide"]()}function l1(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function c1(e,t,n){var i=t.get("z"),o=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=o&&(e.zlevel=o),e.silent=n)}))}var u1=o1;function p1(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t}function d1(e,t,n,i,o){var r=h1(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Pk(a.get("padding")||0),l=a.getFont(),c=fw(r,l),u=o.position,p=c.width+s[1]+s[3],d=c.height+s[0]+s[2],h=o.align;"right"===h&&(u[0]-=p),"center"===h&&(u[0]-=p/2);var f=o.verticalAlign;"bottom"===f&&(u[1]-=d),"middle"===f&&(u[1]-=d/2),function(e,t,n,i){var o=i.getWidth(),r=i.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,r)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(u,p,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:u[0],y:u[1],style:_D(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function h1(e,t,n,i,o){e=t.scale.parse(e);var r=t.scale.getLabel({value:e},{precision:o.precision}),a=o.formatter;if(a){var s={value:YV(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Rv(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,o=t&&t.getDataParams(i);o&&s.seriesData.push(o)})),Uv(a)?r=a.replace("{value}",r):Hv(a)&&(r=a(s))}return r}function f1(e,t,n){var i=[1,0,0,1,0,0];return fx(i,i,n.rotation),hx(i,i,n.position),iD([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g1(e,t,n,i,o,r){var a=XW.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),d1(t,i,o,r,{position:f1(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function m1(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function v1(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function y1(e,t,n,i,o,r){return{cx:e,cy:t,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var x1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var r=n.axis,a=r.grid,s=i.get("type"),l=b1(a,r).getOtherAxis(r).getGlobalExtent(),c=r.toGlobalCoord(r.dataToCoord(t,!0));if(s&&"none"!==s){var u=p1(i),p=_1[s](r,c,l);p.style=u,e.graphicKey=p.type,e.pointer=p}g1(t,e,zW(a.model,n),n,i,o)},t.prototype.getHandleTransform=function(e,t,n){var i=zW(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=f1(t.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),s=b1(r,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,p=[u,u];p[l]=c[l];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(u1);function b1(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var _1={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:m1([t,n[0]],[t,n[1]],w1(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:v1([t-i/2,n[0]],[i,o],w1(e))}}};function w1(e){return"x"===e.dim?0:1}var S1=x1,C1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(tE),M1=NS(),T1=Rv;function I1(e,t,n){if(!av.node){var i=t.getZr();M1(i).records||(M1(i).records={}),function(e,t){if(M1(e).initialized)return;function n(n,i){e.on(n,(function(n){var o=function(e){var t={showTip:[],hideTip:[]},n=function(i){var o=t[i.type];o?o.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);T1(M1(e).records,(function(e){e&&i(e,n,o.dispatchAction)})),function(e,t){var n,i=e.showTip.length,o=e.hideTip.length;i?n=e.showTip[i-1]:o&&(n=e.hideTip[o-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(o.pendings,t)}))}M1(e).initialized=!0,n("click",Gv(D1,"click")),n("mousemove",Gv(D1,"mousemove")),n("globalout",A1)}(i,t),(M1(i).records[e]||(M1(i).records[e]={})).handler=n}}function A1(e,t,n){e.handler("leave",null,n)}function D1(e,t,n,i){t.handler(e,n,i)}function k1(e,t){if(!av.node){var n=t.getZr();(M1(n).records||{})[e]&&(M1(n).records[e]=null)}}var E1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";I1("axisPointer",n,(function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){k1("axisPointer",t)},t.prototype.dispose=function(e,t){k1("axisPointer",t)},t.type="axisPointer",t}(ZL),O1=E1;function L1(e,t){var n,i=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var r=n.getData(),a=LS(r,e);if(null==a||a<0||Wv(a))return{point:[]};var s=r.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c).dim,p=c.dim,d="x"===u||"radius"===u?1:0,h=r.mapDimension(p),f=[];f[d]=r.get(h,a),f[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(r.getValues(zv(l.dimensions,(function(e){return r.mapDimension(e)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var N1=NS();function P1(e,t,n){var i=e.currTrigger,o=[e.x,e.y],r=e,a=e.dispatchAction||Fv(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){j1(o)&&(o=L1({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},t).point);var l=j1(o),c=r.axesInfo,u=s.axesInfo,p="leave"===i||j1(o),d={},h={},f={list:[],map:{}},g={showPointer:Gv(z1,h),showTooltip:Gv(V1,f)};Rv(s.coordSysMap,(function(e,t){var n=l||e.containPoint(o);Rv(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,r=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(c,e);if(!p&&n&&(!c||r)){var a=r&&r.value;null!=a||l||(a=i.pointToData(o)),null!=a&&R1(e,a,g,!1,d)}}))}));var m={};return Rv(u,(function(e,t){var n=e.linkGroup;n&&!h[t]&&Rv(n.axesInfo,(function(t,i){var o=h[i];if(t!==e&&o){var r=o.value;n.mapper&&(r=e.axis.scale.parse(n.mapper(r,B1(t),B1(e)))),m[e.key]=r}}))})),Rv(m,(function(e,t){R1(u[t],e,g,!0,d)})),function(e,t,n){var i=n.axesInfo=[];Rv(t,(function(t,n){var o=t.axisPointerModel.option,r=e[n];r?(!t.useHandle&&(o.status="show"),o.value=r.value,o.seriesDataIndices=(r.payloadBatch||[]).slice()):!t.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:o.value})}))}(h,u,d),function(e,t,n,i){if(j1(t)||!e.list.length)return void i({type:"hideTip"});var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}(f,o,e,a),function(e,t,n){var i=n.getZr(),o="axisPointerLastHighlights",r=N1(i)[o]||{},a=N1(i)[o]={};Rv(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Rv(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];Rv(r,(function(e,t){!a[t]&&l.push(e)})),Rv(a,(function(e,t){!r[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(u,0,n),d}}function R1(e,t,n,i,o){var r=e.axis;if(!r.scale.isBlank()&&r.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,i=n.dim,o=e,r=[],a=Number.MAX_VALUE,s=-1;return Rv(t.seriesModels,(function(t,l){var c,u,p=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(p,e,n);u=d.dataIndices,c=d.nestestValue}else{if(!(u=t.getData().indicesOfNearest(p[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(p[0],u[0])}if(null!=c&&isFinite(c)){var h=e-c,f=Math.abs(h);f<=a&&((f<a||h>=0&&s<0)&&(a=f,s=h,o=c,r.length=0),Rv(u,(function(e){r.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:r,snapToValue:o}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==o.seriesIndex&&Ev(o,s[0]),!i&&e.snap&&r.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function z1(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function V1(e,t,n,i){var o=n.payloadBatch,r=t.axis,a=r.model,s=t.axisPointerModel;if(t.triggerTooltip&&o.length){var l=t.coordSys.model,c=oH(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function B1(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function j1(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function F1(e){aH.registerAxisPointerClass("CartesianAxisPointer",S1),e.registerComponentModel(C1),e.registerComponentView(O1),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Wv(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=eH(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},P1)}var G1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var a=r.polar,s=a.getOtherAxis(r).getExtent(),l=r.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var u=p1(i),p=W1[c](r,a,l,s);p.style=u,e.graphicKey=p.type,e.pointer=p}var d=function(e,t,n,i,o){var r=t.axis,a=r.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,p=i.getRadiusAxis().getExtent();if("radius"===r.dim){var d=[1,0,0,1,0,0];fx(d,d,s),hx(d,d,[i.cx,i.cy]),l=iD([a,-o],d);var h=t.getModel("axisLabel").get("rotate")||0,f=XW.innerTextLayout(s,h*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=p[1];l=i.coordToPoint([g+o,a]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}(t,n,0,a,i.get(["label","margin"]));d1(e,n,i,o,d)},t}(u1);var W1={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:m1(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var o=Math.max(1,e.getBandWidth()),r=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:y1(t.cx,t.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:y1(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}},H1=G1,U1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(tE),Y1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",VS).models[0]},t.type="polarAxis",t}(tE);Nv(Y1,KV);var q1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="angleAxis",t}(Y1),X1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="radiusAxis",t}(Y1),$1=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return S(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(CB);$1.prototype.dataToRadius=CB.prototype.dataToCoord,$1.prototype.radiusToData=CB.prototype.coordToData;var Z1=NS(),K1=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return S(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var r=i[0],a=e.dataToCoord(r+1)-e.dataToCoord(r),s=Math.abs(a),l=fw(null==r?"":r+"",t.getFont(),"center","top"),c=Math.max(l.height,7)/s;isNaN(c)&&(c=1/0);var u=Math.max(0,Math.floor(c)),p=Z1(e.model),d=p.lastAutoInterval,h=p.lastTickCount;return null!=d&&null!=h&&Math.abs(d-u)<=1&&Math.abs(h-o)<=1&&d>u?u=d:(p.lastTickCount=o,p.lastAutoInterval=u),u},t}(CB);K1.prototype.dataToAngle=CB.prototype.dataToCoord,K1.prototype.angleToData=CB.prototype.coordToData;var J1=["radius","angle"],Q1=function(){function e(e){this.dimensions=J1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new $1,this._angleAxis=new K1,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);i.inverse?r=a-360:a=r+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,c=l<r?1:-1;l<r||l>a;)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,o=n*n+i*i-1e-4,r=this.r,a=this.r0;return o<=r*r&&o>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return e2(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return e2(t)===this?this.pointToData(n):null},e}();function e2(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var t2=Q1;function n2(e,t){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();Rv(ZV(t,"radius"),(function(e){o.scale.unionExtentFromData(t,e)})),Rv(ZV(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),WV(i.scale,i.model),WV(o.scale,o.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function i2(e,t){var n;if(e.type=t.get("type"),e.scale=HV(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),o=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,o)}t.axis=e,e.model=t}var o2={dimensions:J1,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var o=new t2(i+"");o.update=n2;var r=o.getRadiusAxis(),a=o.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");i2(r,s),i2(a,l),function(e,t,n){var i=t.get("center"),o=n.getWidth(),r=n.getHeight();e.cx=jw(i[0],o),e.cy=jw(i[1],r);var a=e.getRadiusAxis(),s=Math.min(o,r)/2,l=t.get("radius");null==l?l=[0,"100%"]:Wv(l)||(l=[0,l]);var c=[jw(l[0],s),jw(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",VS).models[0];if("production"!==process.env.NODE_ENV&&!t)throw new Error('Polar "'+ty(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=t.coordinateSystem}})),n}},r2=o2,a2=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function s2(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function l2(e){return e.getRadiusAxis().inverse?0:1}function c2(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var u2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return S(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=zv(n.getViewLabels(),(function(e){e=Av(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));c2(s),c2(r),Rv(a2,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||p2[t](this.group,e,i,r,a,o,s)}),this)}},t.type="angleAxis",t}(aH),p2={axisLine:function(e,t,n,i,o,r){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),p=l2(n),d=p?0:1,h=360===Math.abs(u[1]-u[0])?"Circle":"Arc";(a=0===r[d]?new gD[h]({shape:{cx:n.cx,cy:n.cy,r:r[p],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new eA({shape:{cx:n.cx,cy:n.cy,r:r[p],r0:r[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,i,o,r){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[l2(n)],c=zv(i,(function(e){return new lA({shape:s2(n,[l,l+s],e.coord)})}));e.add(JA(c,{style:Ov(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,o,r){if(o.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=r[l2(n)],u=[],p=0;p<o.length;p++)for(var d=0;d<o[p].length;d++)u.push(new lA({shape:s2(n,[c,c+l],o[p][d].coord)}));e.add(JA(u,{style:Ov(s.getModel("lineStyle").getLineStyle(),Ov(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,o,r,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");Rv(a,(function(i,o){var a=l,p=i.tickValue,d=r[l2(n)],h=n.coordToPoint([d+c,i.coord]),f=n.cx,g=n.cy,m=Math.abs(h[0]-f)/d<.3?"center":h[0]>f?"left":"right",v=Math.abs(h[1]-g)/d<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[p]){var y=s[p];Xv(y)&&y.textStyle&&(a=new UD(y.textStyle,l,l.ecModel))}var x=new sT({silent:XW.isLabelSilent(t),style:_D(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(x),u){var b=XW.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=i.rawLabel,lT(x).eventData=b}}),this)},splitLine:function(e,t,n,i,o,r){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=0;u<i.length;u++){var p=l++%s.length;c[p]=c[p]||[],c[p].push(new lA({shape:s2(n,r,i[u].coord)}))}for(u=0;u<c.length;u++)e.add(JA(c[u],{style:Ov({stroke:s[u%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,o,r){if(o.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<o.length;l++)for(var c=0;c<o[l].length;c++)s.push(new lA({shape:s2(n,r,o[l][c].coord)}));e.add(JA(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,o,r){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=Math.PI/180,p=-i[0].coord*u,d=Math.min(r[0],r[1]),h=Math.max(r[0],r[1]),f=t.get("clockwise"),g=1,m=i.length;g<=m;g++){var v=g===m?i[0].coord:i[g].coord,y=l++%s.length;c[y]=c[y]||[],c[y].push(new KI({shape:{cx:n.cx,cy:n.cy,r0:d,r:h,startAngle:p,endAngle:-v*u,clockwise:f},silent:!0})),p=-v*u}for(g=0;g<c.length;g++)e.add(JA(c[g],{style:Ov({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},d2=u2,h2=["axisLine","axisTickLabel","axisName"],f2=["splitLine","splitArea","minorSplitLine"],g2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return S(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Ew;this.group.add(i);var o=e.axis,r=o.polar,a=r.getAngleAxis(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),c=a.getExtent()[0],u=o.getExtent(),p=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(r,e,c),d=new XW(e,p);Rv(h2,d.add,d),i.add(d.getGroup()),aD(n,i,e),Rv(f2,(function(t){e.get([t,"show"])&&!o.scale.isBlank()&&m2[t](this.group,e,r,c,u,s,l)}),this)}},t.type="radiusAxis",t}(aH),m2={splitLine:function(e,t,n,i,o,r){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,c=n.getAngleAxis(),u=Math.PI/180,p=c.getExtent(),d=360===Math.abs(p[1]-p[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var h=[],f=0;f<r.length;f++){var g=l++%s.length;h[g]=h[g]||[],h[g].push(new gD[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(r[f].coord,0),startAngle:-p[0]*u,endAngle:-p[1]*u,clockwise:c.inverse}}))}for(f=0;f<h.length;f++)e.add(JA(h[f],{style:Ov({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,o,r,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)l.push(new OI({shape:{cx:n.cx,cy:n.cy,r:a[c][u].coord}}));e.add(JA(l,{style:Ov({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,o,r){if(r.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=r[0].coord,p=1;p<r.length;p++){var d=l++%s.length;c[d]=c[d]||[],c[d].push(new KI({shape:{cx:n.cx,cy:n.cy,r0:u,r:r[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=r[p].coord}for(p=0;p<c.length;p++)e.add(JA(c[p],{style:Ov({fill:s[p%s.length]},a.getAreaStyle()),silent:!0}))}}};var v2=g2;function y2(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function x2(e,t){return t.dim+e.model.componentIndex}function b2(e,t,n){var i={},o=function(e){var t={};Rv(e,(function(e,n){var i=e.getData(),o=e.coordinateSystem,r=o.getBaseAxis(),a=x2(o,r),s=r.getExtent(),l="category"===r.type?r.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[a]=c;var p=y2(e);u[p]||c.autoWidthCount++,u[p]=u[p]||{width:0,maxWidth:0};var d=jw(e.get("barWidth"),l),h=jw(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!u[p].width&&(d=Math.min(c.remainedWidth,d),u[p].width=d,c.remainedWidth-=d),h&&(u[p].maxWidth=h),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)}));var n={};return Rv(t,(function(e,t){n[t]={};var i=e.stacks,o=e.bandWidth,r=jw(e.categoryGap,o),a=jw(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-r)/(l+(l-1)*a);c=Math.max(c,0),Rv(i,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),c=(s-r)/(l+(l-1)*a),c=Math.max(c,0);var u,p=0;Rv(i,(function(e,t){e.width||(e.width=c),u=e,p+=e.width*(1+a)})),u&&(p-=u.width*a);var d=-p/2;Rv(i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}(Bv(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),a=x2(n,r),s=y2(e),l=o[a][s],c=l.offset,u=l.width,p=n.getOtherAxis(r),d=e.coordinateSystem.cx,h=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=t.mapDimension(p.dim),v=t.mapDimension(r.dim),y=zz(t,m),x="radius"!==r.dim||!e.get("roundCap",!0),b=p.dataToCoord(0),_=0,w=t.count();_<w;_++){var S=t.get(m,_),C=t.get(v,_),M=S>=0?"p":"n",T=b;y&&(i[s][C]||(i[s][C]={p:b,n:b}),T=i[s][C][M]);var I=void 0,A=void 0,D=void 0,k=void 0;if("radius"===p.dim){var E=p.dataToCoord(S)-b,O=r.dataToCoord(C);Math.abs(E)<f&&(E=(E<0?-1:1)*f),I=T,A=T+E,k=(D=O-c)-u,y&&(i[s][C][M]=A)}else{var L=p.dataToCoord(S,x)-b,N=r.dataToCoord(C);Math.abs(L)<g&&(L=(L<0?-1:1)*g),A=(I=N+c)+u,D=T,k=T+L,y&&(i[s][C][M]=k)}t.setItemLayout(_,{cx:d,cy:h,r0:I,r:A,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:D>=k})}}}))}var _2={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},w2={splitNumber:5},S2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="polar",t}(ZL);function C2(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,o={},r=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===a?c.vertical[r]:l[0],"horizontal"===a?c.horizontal[r]:l[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),ty(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var u=t.rotate;return null==u&&(u=e.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-u:u,o.z2=1,o}var M2=["axisLine","axisTickLabel","axisName"],T2=["splitArea","splitLine"],I2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return S(t,e),t.prototype.render=function(t,n,i,o){var r=this.group;r.removeAll();var a=this._axisGroup;this._axisGroup=new Ew;var s=C2(t),l=new XW(t,s);Rv(M2,l.add,l),r.add(this._axisGroup),r.add(l.getGroup()),Rv(T2,(function(e){t.get([e,"show"])&&A2[e](this,this.group,this._axisGroup,t)}),this),aD(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,o)},t.prototype.remove=function(){cH(this)},t.type="singleAxis",t}(aH),A2={splitLine:function(e,t,n,i){var o=i.axis;if(!o.scale.isBlank()){var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),c=i.coordinateSystem.getRect(),u=o.isHorizontal(),p=[],d=0,h=o.getTicksCoords({tickModel:r}),f=[],g=[],m=0;m<h.length;++m){var v=o.toGlobalCoord(h[m].coord);u?(f[0]=v,f[1]=c.y,g[0]=v,g[1]=c.y+c.height):(f[0]=c.x,f[1]=v,g[0]=c.x+c.width,g[1]=v);var y=new lA({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});eD(y.shape,l);var x=d++%s.length;p[x]=p[x]||[],p[x].push(y)}var b=a.getLineStyle(["color"]);for(m=0;m<p.length;++m)t.add(JA(p[m],{style:Ov({stroke:s[m%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,i){lH(e,n,i,i)}},D2=I2,k2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(tE);Nv(k2,KV.prototype);var E2=k2,O2=function(e){function t(t,n,i,o,r){var a=e.call(this,t,n,i)||this;return a.type=o||"value",a.position=r||"bottom",a}return S(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(CB),L2=O2,N2=["single"],P2=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=N2,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,o=new L2(i,HV(e),[0,0],e.get("type"),e.get("position")),r="category"===o.type;o.onBand=r&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Rv(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),WV(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=qk({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],o=t.inverse?1:0;t.setExtent(i[o],i[1-o]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[o]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return R2(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return R2(t)===this?this.pointToData(n):null},e}();function R2(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var z2={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,o){var r=new P2(i,e,t);r.name="single_"+o,r.resize(i,t),i.coordinateSystem=r,n.push(r)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",VS).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:N2},V2=["x","y"],B2=["width","height"],j2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var r=n.axis,a=r.coordinateSystem,s=W2(a,1-G2(r)),l=a.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=p1(i),p=F2[c](r,l,s);p.style=u,e.graphicKey=p.type,e.pointer=p}g1(t,e,C2(n),n,i,o)},t.prototype.getHandleTransform=function(e,t,n){var i=C2(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=f1(t.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var o=n.axis,r=o.coordinateSystem,a=G2(o),s=W2(r,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=W2(r,1-a),u=(c[1]+c[0])/2,p=[u,u];return p[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t}(u1),F2={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:m1([t,n[0]],[t,n[1]],G2(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:v1([t-i/2,n[0]],[i,o],G2(e))}}};function G2(e){return e.isHorizontal()?0:1}function W2(e,t){var n=e.getRect();return[n[V2[t]],n[V2[t]]+n[B2[t]]]}var H2=j2,U2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="single",t}(ZL);function Y2(e,t){var n,i=e.cellSize;1===(n=Wv(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var o=zv([0,1],(function(e){return function(e,t){return null!=e[Hk[t][0]]||null!=e[Hk[t][1]]&&null!=e[Hk[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Zk(e,t,{type:"box",ignoreSize:o})}var q2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(t,n,i){var o=Kk(t);e.prototype.init.apply(this,arguments),Y2(t,o)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),Y2(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(tE),X2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,r=o.getRangeInfo(),a=o.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,r,i),this._renderLines(e,r,a,i),this._renderYearText(e,r,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,r,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new UM({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var p=c.date;p.setMonth(p.getMonth()+1),c=r.getDateInfo(p)}function d(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,a,i)}d(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-t/2,i[1][o]=i[1][o]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new rA({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,o=i.getDateInfo(t),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},t.prototype._formatterLabel=function(e,t){return Uv(e)&&e?function(e,t,n){return Rv(t,(function(t,i){e=e.replace("{"+i+"}",n?Zy(t):t)})),e}(e,t):Hv(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,o){var r=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=o,s=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,s=["center","top"]):a-=o;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:r,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var r=o.get("margin"),a=o.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,p={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var h=o.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(h,f),m=new sT({z2:30,style:_D(o,{text:g})});m.attr(this._yearTextPositionControl(m,p[a],n,a,r)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,o){var r="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=o,t&&(r="center"),"start"===i&&(a="bottom")):(s+=o,t&&(a="middle"),"start"===i&&(r="right")),{x:s,y:l,align:r,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),l=o.get("align"),c=[this._tlpoints,this._blpoints];r&&!Uv(r)||(r&&(t=nk(r)||t),r=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,p="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,h=0;h<c[u].length-1;h++){var f=c[u][h].slice(),g=this._firstDayOfMonth[h];if(d){var m=this._firstDayPoints[h];f[p]=(m[p]+c[0][h+1][p])/2}var v=o.get("formatter"),y=r[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},b=this._formatterLabel(v,x),_=new sT({z2:30,style:Ev(_D(o,{text:b}),this._monthTextPositionControl(f,d,n,s,a))});i.add(_)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,o){var r="center",a="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*o[0]/2,r=c?"right":"left"):(l=l+i+(c?1:-1)*o[1]/2,a=c?"bottom":"top"),{x:s,y:l,align:r,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,o){var r=e.getModel("dayLabel");if(r.get("show")){var a=e.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),c=r.get("margin"),u=a.getFirstDayOfWeek();if(!l||Uv(l))l&&(t=nk(l)||t),l=t.get(["time","dayOfWeekShort"])||zv(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}));var p=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];c=jw(c,Math.min(d[1],d[0])),"start"===s&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var h=0;h<7;h++){var f,g=a.getNextNDay(p,h),m=a.dataToRect([g.time],!1).center;f=Math.abs((h+u)%7);var v=new sT({z2:30,style:Ev(_D(r,{text:l[f]}),this._weekTextPositionControl(m,i,s,c,d))});o.add(v)}}},t.type="calendar",t}(ZL),$2=X2,Z2=864e5,K2=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=Kw(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,o=e.getDate(),r=o<10?"0"+o:""+o,a=e.getDay();return{y:t+"",m:i,d:r,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+r,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Rv([0,1],(function(e){c(o,e)&&(r[i[e]]=o[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=qk(r,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}Rv([0,1],(function(e){c(o,e)||(o[e]=l[i[e]]/a[e])})),this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(e,t){Wv(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+Z2))return[NaN,NaN];var r=n.day,a=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=J2(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=J2(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(Wv(t)&&1===t.length&&(t=t[0]),Wv(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),o=i.date;o.setMonth(o.getMonth()+1);var r=this.getNextNDay(o,-1);e=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return"production"!==process.env.NODE_ENV&&Iv("Invalid date range."),t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/Z2)-Math.floor(n[0].time/Z2)+1,o=new Date(n[0].time),r=o.getDate(),a=n[1].date.getDate();o.setDate(r+i-1);var s=o.getDate();if(s!==a)for(var l=o.getTime()-n[1].time>0?1:-1;(s=o.getDate())!==a&&(o.getTime()-n[1].time)*l>0;)i-=l,o.setDate(s-l);var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var o=7*(e-1)-i.fweek+t,r=new Date(i.start.time);return r.setDate(+i.start.d+o),this.getDateInfo(r)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(t){var n=new e(t);i.push(n),t.coordinateSystem=n})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function J2(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var Q2=K2;function e5(e,t){var n;return Rv(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var t5=["transition","enterFrom","leaveTo"],n5=t5.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function i5(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?t5:n5,o=0;o<i.length;o++){var r=i[o];null==e[r]&&null!=t[r]&&(e[r]=t[r])}}var o5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return S(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,o=n.elements=t?[]:n.elements,r=[];this._flatten(i,r,null);var a=MS(o,r,"normalMerge"),s=this._elOptionsToUpdate=[];Rv(a,(function(e,t){var n=e.newOption;"production"!==process.env.NODE_ENV&&ay(Xv(n)||e.existing,"Empty graphic option definition"),n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var i=Ev({},n),o=e[t],r=n.$action||"merge";if("merge"===r)if(o){if("production"!==process.env.NODE_ENV){var a=n.type;ay(!a||o.type===a,'Please set $action: "replace" to change `type`')}Dv(o,i,!0),Zk(o,i,{ignoreSize:!0}),Jk(n,o),i5(n,o),i5(n,o,"shape"),i5(n,o,"style"),i5(n,o,"extra"),n.clipPath=o.clipPath}else e[t]=i;else"replace"===r?e[t]=i:"remove"===r&&o&&(e[t]=null)}(o,t,n),function(e,t){if(e&&(e.hv=t.hv=[e5(t,["left","right"]),e5(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(o[t],n))}),this),n.elements=Bv(o,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){Rv(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(tE),r5={path:null,compoundPath:null,group:Ew,image:zM,text:sT},a5=NS(),s5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(){this._elMap=fy()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,o=e.get("z"),r=e.get("zlevel");Rv(t,(function(t){var a=AS(t.id,null),s=null!=a?n.get(a):null,l=AS(t.parentId,null),c=null!=l?n.get(l):i,u=t.type,p=t.style;"text"===u&&p&&t.hv&&t.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=t.textContent,h=t.textConfig;if(p&&XQ(p,u,!!h,!!d)){var f=$Q(p,u,!0);!h&&f.textConfig&&(h=t.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(e){return e=Ev({},e),Rv(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Wk),(function(t){delete e[t]})),e}(t);"production"!==process.env.NODE_ENV&&s&&ay(c===s.parent,"Changing parent is not supported.");var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var x=s;(T=!s)?x=c5(a,c,t.type,n):(x&&(a5(x).isNew=!1),_0(x)),x&&(s0(x,g,e,{isInit:T}),p5(x,t,o,r))}else if(y){u5(s,t,n,e);var b=c5(a,c,t.type,n);b&&(s0(b,g,e,{isInit:!0}),p5(b,t,o,r))}else"remove"===m&&(l0(s,t),u5(s,t,n,e));var _=n.get(a);if(_&&d)if(v){var w=_.getTextContent();w?w.attr(d):_.setTextContent(new sT(d))}else y&&_.setTextContent(new sT(d));if(_){var S=t.clipPath;if(S){var C=S.type,M=void 0,T=!1;if(v){var I=_.getClipPath();M=(T=!I||a5(I).type!==C)?l5(C):I}else y&&(T=!0,M=l5(C));_.setClipPath(M),s0(M,S,e,{isInit:T}),w0(M,S.keyframeAnimation,e)}var A=a5(_);_.setTextConfig(h),A.option=t,function(e,t,n){var i=lT(e).eventData;e.silent||e.ignore||i||(i=lT(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});i&&(i.info=n.info)}(_,e,t),dD({el:_,componentModel:e,itemName:_.name,itemTooltipOption:t.tooltip}),w0(_,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,o=this._elMap,r=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(h=AS((d=n[l]).id,null))?o.get(h):null)&&f.isGroup){var c=(g=f.parent)===i,u=a5(f),p=a5(g);u.width=jw(u.option.width,c?r:p.width)||0,u.height=jw(u.option.height,c?a:p.height)||0}}for(l=n.length-1;l>=0;l--){var d,h,f;if(f=null!=(h=AS((d=n[l]).id,null))?o.get(h):null){var g=f.parent,m=(p=a5(g),{}),v=Xk(f,d,g===i?{width:r,height:a}:{width:p.width,height:p.height},null,{hv:d.hv,boundingMode:d.bounding},m);if(!a5(f).isNew&&v){for(var y=d.transition,x={},b=0;b<s.length;b++){var _=s[b],w=m[_];y&&(u0(y)||Lv(y,_)>=0)?x[_]=w:f[_]=w}RA(f,x,e,0)}else f.attr(m)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){u5(n,a5(n).option,t,e._lastGraphicModel)})),this._elMap=fy()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ZL);function l5(e){"production"!==process.env.NODE_ENV&&ay(e,"graphic type MUST be set");var t=yy(r5,e)?r5[e]:XA(e);"production"!==process.env.NODE_ENV&&ay(t,"graphic type "+e+" can not be found");var n=new t({});return a5(n).type=e,n}function c5(e,t,n,i){var o=l5(n);return t.add(o),i.set(e,o),a5(o).id=e,a5(o).isNew=!0,o}function u5(e,t,n,i){e&&e.parent&&("group"===e.type&&e.traverse((function(e){u5(e,t,n,i)})),c0(e,t,i),n.removeKey(a5(e).id))}function p5(e,t,n,i){e.isGroup||Rv([["cursor",AC.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];yy(t,i)?e[i]=ny(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),Rv(jv(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=Hv(i)?i:null}})),yy(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var d5=["x","y","radius","angle","single"],h5=["cartesian2d","polar","singleAxis"];function f5(e){return"production"!==process.env.NODE_ENV&&ay(e),e+"Axis"}function g5(e,t){var n,i=fy(),o=[],r=fy();e.eachComponent({mainType:"dataZoom",query:t},(function(e){r.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!r.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var o=i.get(e);o&&o[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){r.set(e.uid,!0),o.push(e),e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return o}function m5(e){var t=e.ecModel,n={infoList:[],infoMap:fy()};return e.eachTargetAxis((function(e,i){var o=t.getComponent(f5(e),i);if(o){var r=o.getCoordSysModel();if(r){var a=r.uid,s=n.infoMap.get(a);s||(s={model:r,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(o)}}})),n}var v5=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),y5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return S(t,e),t.prototype.init=function(e,t,n){var i=x5(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=x5(e);Dv(this.option,e,!0),Dv(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Rv([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=fy();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Rv(d5,(function(n){var i=this.getReferringComponents(f5(n),BS);if(i.specified){t=!0;var o=new v5;Rv(i.models,(function(e){o.add(e.componentIndex)})),e.set(n,o)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var o="vertical"===t?"y":"x";r(n.findComponents({mainType:o+"Axis"}),o)}i&&r(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function r(t,n){var o=t[0];if(o){var r=new v5;if(r.add(o.componentIndex),e.set(n,r),i=!1,"x"===n||"y"===n){var a=o.getReferringComponents("grid",VS).models[0];a&&Rv(t,(function(e){o.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",VS).models[0]&&r.add(e.componentIndex)}))}}}i&&Rv(d5,(function(t){if(i){var o=n.findComponents({mainType:f5(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var r=new v5;r.add(o[0].componentIndex),e.set(t,r),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Rv([["start","startValue"],["end","endValue"]],(function(i,o){var r=null!=e[i[0]],a=null!=e[i[1]];r&&!a?t[o]="percent":!r&&a?t[o]="value":n?t[o]=n[o]:r&&(t[o]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(f5(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Rv(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){"production"!==process.env.NODE_ENV&&ay(e&&null!=t);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(f5(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Rv([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Rv(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return"production"!==process.env.NODE_ENV&&ay(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(tE);function x5(e){var t={};return Rv(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var b5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="dataZoom.select",t}(y5),_5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(ZL),w5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="dataZoom.select",t}(_5),S5=Rv,C5=Gw,M5=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return Lv(h5,t)>=0}(t)){var n=f5(this._dimName),i=t.getReferringComponents(n,VS).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Av(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[],s=[];S5(["start","end"],(function(l,c){var u=e[l],p=e[l+"Value"];"percent"===o[c]?(null==u&&(u=r[c]),p=i.parse(Bw(u,r,n))):(t=!0,u=Bw(p=null==p?n[c]:i.parse(p),n,r)),s[c]=null==p||isNaN(p)?n[c]:p,a[c]=null==u||isNaN(u)?r[c]:u})),C5(s),C5(a);var l=this._minMaxSpan;function c(e,t,n,o,r){var a=r?"Span":"ValueSpan";$$(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=Bw(e[s],n,o,!0),r&&(t[s]=i.parse(t[s]))}return t?c(s,a,n,r,!1):c(a,s,r,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var i=[1/0,-1/0];S5(n,(function(e){!function(e,t,n){t&&Rv(ZV(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}(i,e.getData(),t)}));var o=e.getAxisModel(),r=jV(o.axis.scale,o,i).calculate();return[r.min,r.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),r=this._valueWindow;"none"!==o&&S5(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===o){var a=t.getStore(),s=zv(i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,o,l=0;l<i.length;l++){var c=a.get(s[l],e),u=!isNaN(c),p=c<r[0],d=c>r[1];if(u&&!p&&!d)return!0;u&&(o=!0),p&&(t=!0),d&&(n=!0)}return o&&t&&n}))}else S5(i,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return function(e){return e>=r[0]&&e<=r[1]}(e)?e:NaN})));else{var i={};i[n]=r,t.selectRange(i)}}));S5(i,(function(e){t.setApproximateExtent(r,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;S5(["min","max"],(function(i){var o=t.get(i+"Span"),r=t.get(i+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?o=Bw(n[0]+r,n,[0,100],!0):null!=o&&(r=Bw(o,[0,100],n,!0)-n[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=r}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Uw(n,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},e}();var T5={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=e.getComponent(f5(i),o);t(i,o,r,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new M5(t,i,r,e),n.push(o.__dzAxisProxy))}));var i=fy();return Rv(n,(function(e){Rv(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var I5=!1;function A5(e){I5||(I5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,T5),function(e){e.registerAction("dataZoom",(function(e,t){Rv(g5(t,e),(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function D5(e){e.registerComponentModel(b5),e.registerComponentView(w5),A5(e)}var k5=function(){},E5={};function O5(e,t){E5[e]=t}function L5(e){return E5[e]}var N5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;Rv(this.option.feature,(function(e,n){var i=L5(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Dv(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(tE);function P5(e,t){var n=Pk(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new UM({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var R5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(e,t,n,i){var o=this.group;if(o.removeAll(),e.get("show")){var r=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];Rv(s,(function(e,t){c.push(t)})),new az(this._featureNames||[],c).add(u).update(u).remove(Gv(u,null)).execute(),this._featureNames=c,function(e,t,n){var i=t.getBoxLayoutParams(),o=t.get("padding"),r={width:n.getWidth(),height:n.getHeight()},a=qk(i,r,o);Yk(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Xk(e,i,r,o)}(o,e,n),o.add(P5(o.getBoundingRect(),e)),a||o.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Hv(l)&&t){var c=l.style||(l.style={}),u=fw(t,sT.makeFont(c)),p=e.x+o.x,d=!1;e.y+o.y+r+u.height>n.getHeight()&&(a.position="top",d=!0);var h=d?-5-u.height:r+10;p+u.width/2>n.getWidth()?(a.position=["100%",h],c.align="right"):p-u.width/2<0&&(a.position=[0,h],c.align="left")}}))}function u(u,p){var d,h=c[u],f=c[p],g=s[h],m=new UD(g,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===h&&(g.title=i.newTitle),h&&!f){if(function(e){return 0===e.indexOf("my")}(h))d={onclick:m.option.onclick,featureName:h};else{var v=L5(h);if(!v)return;d=new v}l[h]=d}else if(!(d=l[f]))return;d.uid=qD("toolbox-feature"),d.model=m,d.ecModel=t,d.api=n;var y=d instanceof k5;h||!f?!m.get("show")||y&&d.unusable?y&&d.remove&&d.remove(t,n):(!function(i,s,l){var c,u,p=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),h=s instanceof k5&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};Uv(h)?(c={})[l]=h:c=h;Uv(f)?(u={})[l]=f:u=f;var g=i.iconPaths={};Rv(c,(function(l,c){var h=lD(l,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(p.getItemStyle()),h.ensureState("emphasis").style=d.getItemStyle();var f=new sT({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:ID({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});h.setTextContent(f),dD({el:h,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),h.__title=u[c],h.on("mouseover",(function(){var t=d.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),h.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",c])?FT:GT)(h),o.add(h),h.on("click",Fv(s.onclick,s,t,n,c)),g[c]=h}))}(m,d,h),m.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?FT:GT)(i[e])},d instanceof k5&&d.render&&d.render(m,t,n,i)):y&&d.dispose&&d.dispose(t,n)}},t.prototype.updateView=function(e,t,n,i){Rv(this._features,(function(e){e instanceof k5&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){Rv(this._features,(function(n){n instanceof k5&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){Rv(this._features,(function(n){n instanceof k5&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(ZL);var z5=R5,V5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=av.browser;if(Hv(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+r,l.target="_blank",l.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var u=a.split(","),p=u[0].indexOf("base64")>-1,d=o?decodeURIComponent(u[1]):u[1];p&&(d=window.atob(d));var h=i+"."+r;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,h)}else{var v=document.createElement("iframe");document.body.appendChild(v);var y=v.contentWindow,x=y.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),y.focus(),x.execCommand("SaveAs",!0,h),document.body.removeChild(v)}}else{var b=n.get("lang"),_='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',w=window.open();w.document.write(_),w.document.title=i}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(k5),B5=V5,j5="__ec_magicType_stack__",F5=[["line","bar"],["stack"]],G5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return Rv(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var i=this.model,o=i.get(["seriesIndex",n]);if(W5[n]){var r,a={series:[]};Rv(F5,(function(e){Lv(e,n)>=0&&Rv(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},(function(e){var t=e.subType,o=e.id,r=W5[n](t,o,e,i);r&&(Ov(r,e.option),a.series.push(r));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",u=e.getReferringComponents(c,VS).models[0].componentIndex;a[c]=a[c]||[];for(var p=0;p<=u;p++)a[c][u]=a[c][u]||{};a[c][u].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(r=Dv({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:r,featureName:"magicType"})}},t}(k5),W5={line:function(e,t,n,i){if("bar"===e)return Dv({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return Dv({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var o=n.get("stack")===j5;if("line"===e||"bar"===e)return i.setIconStatus("stack",o?"normal":"emphasis"),Dv({id:t,stack:o?"":j5},i.get(["option","stack"])||{},!0)}};XR({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var H5=G5,U5=new Array(60).join("-"),Y5="\t";function q5(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var X5=new RegExp("["+Y5+"]+","g");function $5(e,t){var n=e.split(new RegExp("\n*"+U5+"\n*","g")),i={series:[]};return Rv(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(Y5)>=0)return!0}(e)){var o=function(e){for(var t=e.split(/\n+/g),n=[],i=zv(q5(t.shift()).split(X5),(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var r=q5(t[o]).split(X5);n.push(r.shift());for(var a=0;a<r.length;a++)i[a]&&(i[a].data[o]=r[a])}return{series:i,categories:n}}(e),r=t[n],a=r.axisDim+"Axis";r&&(i[a]=i[a]||[],i[a][r.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{o=function(e){for(var t=e.split(/\n+/g),n=q5(t.shift()),i=[],o=0;o<t.length;o++){var r=q5(t[o]);if(r){var a=r.split(X5),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);1===l.length&&(c?i[o].value=l[0]:i[o]=l[0])}}return{name:n,data:i}}(e);i.series.push(o)}})),i}var Z5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),a=i.get("lang")||[];r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin:10px 20px",r.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),p=function(e){var t,n,i,o=function(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var r=o.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;t[a]||(t[a]={categoryAxis:r,valueAxis:o.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:Bv([(n=o.seriesGroupByCategoryAxis,i=[],Rv(n,(function(e,t){var n=e.categoryAxis,o=e.valueAxis.dim,r=[" "].concat(zv(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];Rv(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var s=[r.join(Y5)],l=0;l<a[0].length;l++){for(var c=[],u=0;u<a.length;u++)c.push(a[u][l]);s.push(c.join(Y5))}i.push(s.join("\n"))})),i.join("\n\n"+U5+"\n\n")),(t=o.other,zv(t,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,o=arguments[e-1],r=t.getName(o),a=0;a<e-1;a++)i[a]=arguments[a];n.push((r?r+Y5:"")+i.join(Y5))})),n.join("\n")})).join("\n\n"+U5+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+U5+"\n\n"),meta:o.meta}}(e);if(Hv(c)){var d=c(t.getOption());Uv(d)?s.innerHTML=d:Kv(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var h=l.style;h.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",h.color=i.get("textColor"),h.borderColor=i.get("textareaBorderColor"),h.backgroundColor=i.get("textareaColor"),l.value=p.value,s.appendChild(l)}var f=p.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(o),x._dom=null}ox(v,"click",b),ox(y,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)return"production"!==process.env.NODE_ENV&&pS("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void b();var e;try{e=Hv(u)?u(s,t.getOption()):$5(l.value,f)}catch(e){throw b(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()})),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(y),g.appendChild(v),o.appendChild(r),o.appendChild(s),o.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(k5);function K5(e,t){return zv(e,(function(e,n){var i=t&&t[n];if(Xv(i)&&!Wv(i)){Xv(e)&&!Wv(e)||(e={value:e});var o=null!=i.name&&null==e.name;return e=Ov(e,i),o&&delete e.name,e}return e}))}XR({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];Rv(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var o=i.get("data");n.push({name:e.name,data:K5(e.data,o)})}else n.push(Ev({type:"scatter"},e))})),t.mergeOption(Ov({series:n},e.newOption))}));var J5=Z5,Q5=Rv,e3=NS();function t3(e){var t=e3(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var n3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.onclick=function(e,t){!function(e){e3(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(k5);XR({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var i3=n3,o3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],r3=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var o=s3(t,e);Rv(l3,(function(e,t){(!n||!n.include||Lv(n.include,t)>=0)&&e(o,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=p3[e.brushType](0,n,t);e.__rangeOffset={offset:h3[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Rv(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Rv(i.coordSyses,(function(i){var o=p3[e.brushType](1,i,e.range,!0);n(e,o.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Rv(e,(function(e){var n,i,o,r,a,s=this.findTargetInfo(e,t);if("production"!==process.env.NODE_ENV&&(ay(!s||!0===s||e.coordRange,"coordRange must be specified when coord index specified."),ay(!s||!0!==s||e.range,"range must be specified in global brush.")),e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=p3[e.brushType](0,s.coordSys,e.coordRange),c=e.__rangeOffset;e.range=c?h3[e.brushType](l.values,c.offset,(n=l.xyMinMax,i=c.xyMinMax,o=g3(n),r=g3(i),a=[o[0]/r[0],o[1]/r[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},e.prototype.makePanelOpts=function(e,t){return zv(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:nK(i),isTargetByCursor:oK(i,e,n.coordSysModel),getLinearBrushOtherExtent:iK(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Lv(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=s3(t,e),o=0;o<n.length;o++){var r=n[o],a=e.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<c3.length;s++)if(c3[s](i,r))return r}return!0},e}();function a3(e){return e[0]>e[1]&&e.reverse(),e}function s3(e,t){return RS(e,t,{includeMainTypes:o3})}var l3={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,o=e.gridModels,r=fy(),a={},s={};(n||i||o)&&(Rv(n,(function(e){var t=e.axis.grid.model;r.set(t.id,t),a[t.id]=!0})),Rv(i,(function(e){var t=e.axis.grid.model;r.set(t.id,t),s[t.id]=!0})),Rv(o,(function(e){r.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),r.each((function(e){var o=e.coordinateSystem,r=[];Rv(o.getCartesians(),(function(e,t){(Lv(n,e.getAxis("x").model)>=0||Lv(i,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:u3.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Rv(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:u3.geo})}))}},c3=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],u3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(nD(e)),t}},p3={lineX:Gv(d3,0),lineY:Gv(d3,1),rect:function(e,t,n,i){var o=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),r=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[a3([o[0],r[0]]),a3([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:zv(n,(function(n){var r=e?t.pointToData(n,i):t.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],r[0]),o[1][0]=Math.min(o[1][0],r[1]),o[0][1]=Math.max(o[0][1],r[0]),o[1][1]=Math.max(o[1][1],r[1]),r})),xyMinMax:o}}};function d3(e,t,n,i){"production"!==process.env.NODE_ENV&&ay("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var o=n.getAxis(["x","y"][e]),r=a3(zv([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(i[e]),!0):o.toGlobalCoord(o.dataToCoord(i[e]))}))),a=[];return a[e]=r,a[1-e]=[NaN,NaN],{values:r,xyMinMax:a}}var h3={lineX:Gv(f3,0),lineY:Gv(f3,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return zv(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function f3(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function g3(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var m3,v3,y3=r3,x3=Rv,b3=xS+"toolbox-dataZoom_",_3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new tK(n.getZr()),this._brushController.on("brush",Fv(this._onBrush,this)).mount()),function(e,t,n,i,o){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var a=new y3(S3(e),t,{include:["grid"]}),s=a.makePanelOpts(o,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),function(e,t){e.setIconStatus("back",function(e){return t3(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){w3[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new y3(S3(this.model),i,{include:["grid"]}).matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),function(e,t){var n=t3(e);Q5(t,(function(t,i){for(var o=n.length-1;o>=0&&!n[o][i];o--);if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var a=r.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(t)}(i,n),this._dispatchZoomAction(n)}function o(e,t,o){var r=t.getAxis(e),a=r.model,s=function(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(i=n)})),i}(e,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(o=$$(0,o.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:o[0],endValue:o[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];x3(e,(function(e,n){t.push(Av(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(k5),w3={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=t3(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return Q5(n,(function(e,n){for(var o=t.length-1;o>=0;o--)if(e=t[o][n]){i[n]=e;break}})),i}(this.ecModel))}};function S3(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}m3="dataZoom",v3=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),o=[],r=RS(e,S3(i));return x3(r.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),x3(r.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),o}function a(e,t,n){var r=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:b3+t+r};a[n]=r,o.push(a)}},ay(null==_E.get(m3)&&v3),_E.set(m3,v3);var C3=_3;var M3=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(tE);function T3(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function I3(e){if(av.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var A3=I3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function D3(e,t){if(!e)return t;t=Nk(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var k3=D3(I3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),E3=D3(A3,"transform"),O3="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(av.transform3dSupported?"will-change:transform;":"");function L3(e,t,n){var i=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!av.transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=av.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return n?"top:0;left:0;"+E3+":"+a+";":[["top",0],["left",0],[A3,a]]}function N3(e,t,n){var i=[],o=e.get("transitionDuration"),r=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),p=NL(e,"html"),d=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+d),t&&o&&i.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,o="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,o+=av.transformSupported?","+E3+i:",left"+i+",top"+i),k3+":"+o}(o,n)),r&&i.push("background-color:"+r),Rv(["width","color","radius"],(function(t){var n="border-"+t,o=Nk(n),r=e.get(o);null!=r&&i.push(n+":"+r+("color"===t?"":"px"))})),i.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var o=e.get("textShadowColor"),r=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return o&&r&&t.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),Rv(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}(u)),null!=p&&i.push("padding:"+Pk(p).join("px ")+"px"),i.join(";")+";"}function P3(e,t,n,i,o){var r=t&&t.painter;if(n){var a=r&&r.getViewportRoot();a&&function(e,t,n,i,o){Yy(Uy,t,i,o,!0)&&Yy(e,n,Uy[0],Uy[1])}(e,a,n,i,o)}else{e[0]=i,e[1]=o;var s=r&&r.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var R3=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,av.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),o=t.appendTo,r=o&&(Uv(o)?document.querySelector(o):Kv(o)?o:Hv(o)&&o(e.getDom()));P3(this._styleCoord,i,r,e.getWidth()/2,e.getHeight()/2),(r||e.getDom()).appendChild(n),this._api=e,this._container=r;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler;ix(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(r="position",(a=(o=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(o))?r?a[r]:a:null),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var o,r,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=O3+N3(e,!this._firstShow,this._longHide)+L3(o[0],o[1],!0)+"border-color:"+jk(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,o){var r=this.el;if(null!=e){var a="";if(Uv(o)&&"item"===n.get("trigger")&&!T3(n)&&(a=function(e,t,n){if(!Uv(n)||"inside"===n)return"";var i=e.get("backgroundColor"),o=e.get("borderWidth");t=jk(t);var r,a,s="left"===(r=n)?"right":"right"===r?"left":"top"===r?"bottom":"top",l=Math.max(1.5*Math.round(o),6),c="",u=E3+":";Lv(["left","right"],s)>-1?(c+="top:50%",u+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,d=l+o,h=d*Math.abs(Math.cos(p))+d*Math.abs(Math.sin(p)),f=t+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((h-Math.SQRT2*o)/2+Math.SQRT2*o-(h-d)/2))/100+"px")+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),Uv(e))r.innerHTML=e+a;else if(e){r.innerHTML="",Wv(e)||(e=[e]);for(var s=0;s<e.length;s++)Kv(e[s])&&e[s].parentNode!==r&&r.appendChild(e[s]);if(a&&r.childNodes.length){var l=document.createElement("div");l.innerHTML=a,r.appendChild(l)}}}else r.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(P3(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style;Rv(L3(n[0],n[1]),(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",av.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Fv(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),z3=R3,V3=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),F3(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,o){var r=this;Xv(e)&&mS("production"!==process.env.NODE_ENV?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new sT({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:NL(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Rv(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){r.el.style[e]=n.get(e)})),Rv(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){r.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=j3(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;F3(i,this._zr,e,t),e=i[0],t=i[1];var o=n.style,r=B3(o.borderWidth||0),a=j3(o);n.x=e+r+a.left,n.y=t+r+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Fv(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function B3(e){return Math.max(0,e)}function j3(e){var t=B3(e.shadowBlur||0),n=B3(e.shadowOffsetX||0),i=B3(e.shadowOffsetY||0);return{left:B3(t-n),right:B3(t+n),top:B3(t-i),bottom:B3(t+i)}}function F3(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var G3=new UM({shape:{x:-1,y:-1,width:2,height:2}}),W3=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(e,t){if(!av.node&&t.getDom()){var n,i=e.getComponent("tooltip"),o=this._renderMode="auto"===(n=i.get("renderMode"))?av.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===o?new V3(t):new z3(t,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!av.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?pN(this,"_updatePosition",50,"fixRate"):dN(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");I1("itemTooltip",this._api,Fv((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(e,t,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!av.node&&n.getDom()){var o=U3(i,n);this._ticket="";var r=i.dataByCoordSys,a=function(e,t,n){var i=zS(e).queryOptionMap,o=i.keys()[0];if(!o||"series"===o)return;var r=jS(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(t){var n=lT(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s)return{componentMainType:o,componentIndex:a.componentIndex,el:s}}(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=G3;l.x=i.x,l.y=i.y,l.update(),lT(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},o)}else if(r)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:r,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=L1(i,t),u=c.point[0],p=c.point[1];null!=u&&null!=p&&this._tryShow({offsetX:u,offsetY:p,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,t,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(U3(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var o=i.seriesIndex,r=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){var s=t.getSeriesByIndex(o);if(s)if("axis"===H3([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var o,r;if("legend"===lT(n).ssrType)return;this._lastDataByCoordSys=null,nP(n,(function(e){return null!=lT(e).dataIndex?(o=e,!0):null!=lT(e).tooltipConfig?(r=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):r?this._showComponentItemTooltip(e,r,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Fv(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,o=[t.offsetX,t.offsetY],r=H3([t.tooltipOption],i),a=this._renderMode,s=[],l=CL("section",{blocks:[],noHeader:!0}),c=[],u=new PL;Rv(e,(function(e){Rv(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),o=e.value;if(t&&null!=o){var r=h1(o,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),p=CL("section",{header:r,noHeader:!sy(r),sortBlocks:!0,blocks:[]});l.blocks.push(p),Rv(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=d.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=YV(t.axis,{value:o}),f.axisValueLabel=r,f.marker=u.makeTooltipMarker("item",jk(f.color),a);var g=jO(d.formatTooltip(h,!0,null)),m=g.frag;if(m){var v=H3([d],i).get("valueFormatter");p.blocks.push(v?Ev({valueFormatter:v},m):m)}g.text&&c.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),c.reverse();var p=t.position,d=r.get("order"),h=kL(l,u,a,d,n.get("useUTC"),r.get("textStyle"));h&&c.unshift(h);var f="richText"===a?"\n\n":"<br/>",g=c.join(f);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,g,s,Math.random()+"",o[0],o[1],p,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,o=lT(t),r=o.seriesIndex,a=i.getSeriesByIndex(r),s=o.dataModel||a,l=o.dataIndex,c=o.dataType,u=s.getData(c),p=this._renderMode,d=e.positionDefault,h=H3([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=h.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,c),m=new PL;g.marker=m.makeTooltipMarker("item",jk(g.color),p);var v=jO(s.formatTooltip(l,!1,c)),y=h.get("order"),x=h.get("valueFormatter"),b=v.frag,_=b?kL(x?Ev({valueFormatter:x},b):b,m,p,y,i.get("useUTC"),h.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,_,g,w,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:r,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=lT(t),o=i.tooltipConfig.option||{};if(Uv(o)){o={content:o,formatter:o}}var r=[o],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&r.push(a),r.push({formatter:o.content});var s=e.positionDefault,l=H3(r,this._tooltipModel,s?{position:s}:null),c=l.get("content"),u=Math.random()+"",p=new PL;this._showOrMove(l,(function(){var n=Av(l.get("formatterParams")||{});this._showTooltipContent(l,c,n,u,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,o,r,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");a=a||e.get("position");var p=t,d=this._getNearestPoint([o,r],n,e.get("trigger"),e.get("borderColor")).color;if(u)if(Uv(u)){var h=e.ecModel.get("useUTC"),f=Wv(n)?n[0]:n;p=u,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(p=mk(f.axisValue,p,h)),p=Bk(p,n,!0)}else if(Hv(u)){var g=Fv((function(t,i){t===this._ticket&&(c.setContent(i,l,e,d,a),this._updatePosition(e,a,o,r,c,n,s))}),this);this._ticket=i,p=u(n,i,g)}else p=u;c.setContent(p,l,e,d,a),c.show(e,d),this._updatePosition(e,a,o,r,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||Wv(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:Wv(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,o,r,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=o.getSize(),u=e.get("align"),p=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Hv(t)&&(t=t([n,i],r,o.el,d,{viewSize:[s,l],contentSize:c.slice()})),Wv(t))n=jw(t[0],s),i=jw(t[1],l);else if(Xv(t)){var h=t;h.width=c[0],h.height=c[1];var f=qk(h,{width:s,height:l});n=f.x,i=f.y,u=null,p=null}else if(Uv(t)&&a){var g=function(e,t,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-o/2,l=t.y+u/2-r/2;break;case"top":s=t.x+c/2-o/2,l=t.y-r-a;break;case"bottom":s=t.x+c/2-o/2,l=t.y+u+a;break;case"left":s=t.x-o-a,l=t.y+u/2-r/2;break;case"right":s=t.x+c+a,l=t.y+u/2-r/2}return[s,l]}(t,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{g=function(e,t,n,i,o,r,a){var s=n.getSize(),l=s[0],c=s[1];null!=r&&(e+l+r+2>i?e-=l+r:e+=r);null!=a&&(t+c+a>o?t-=c+a:t+=a);return[e,t]}(n,i,o,s,l,u?null:20,p?null:20);n=g[0],i=g[1]}if(u&&(n-=Y3(u)?c[0]/2:"right"===u?c[0]:0),p&&(i-=Y3(p)?c[1]/2:"bottom"===p?c[1]:0),T3(e)){g=function(e,t,n,i,o){var r=n.getSize(),a=r[0],s=r[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,o)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,i,o,s,l);n=g[0],i=g[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&Rv(n,(function(n,r){var a=n.dataByAxis||[],s=(e[r]||{}).dataByAxis||[];(o=o&&a.length===s.length)&&Rv(a,(function(e,n){var r=s[n]||{},a=e.seriesDataIndices||[],l=r.seriesDataIndices||[];(o=o&&e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&a.length===l.length)&&Rv(a,(function(e,t){var n=l[t];o=o&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&Rv(e.seriesDataIndices,(function(e){var n=e.seriesIndex,r=t[n],a=i[n];r&&a&&a.data!==r.data&&(o=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!av.node&&t.getDom()&&(dN(this,"_updatePosition"),this._tooltipContent.dispose(),k1("itemTooltip",t))},t.type="tooltip",t}(ZL);function H3(e,t,n){var i,o=t.ecModel;n?(i=new UD(n,o,o),i=new UD(t.option,i,o)):i=t;for(var r=e.length-1;r>=0;r--){var a=e[r];a&&(a instanceof UD&&(a=a.get("tooltip",!0)),Uv(a)&&(a={formatter:a}),a&&(i=new UD(a,i,o)))}return i}function U3(e,t){return e.dispatchAction||Fv(t.dispatchAction,t)}function Y3(e){return"center"===e||"middle"===e}var q3=W3;var X3=["rect","polygon","keep","clear"];function $3(e,t){var n=bS(e?e.brush:[]);if(n.length){var i=[];Rv(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var o=e&&e.toolbox;Wv(o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(e){var t={};Rv(e,(function(e){t[e]=1})),e.length=0,Rv(t,(function(t,n){e.push(n)}))}(s),t&&!s.length&&s.push.apply(s,X3)}}var Z3=Rv;function K3(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function J3(e,t,n){var i={};return Z3(t,(function(t){var o,r=i[t]=((o=function(){}).prototype.__hidden=o.prototype,new o);Z3(e[t],(function(e,i){if(jq.isValidType(i)){var o={type:i,visual:e};n&&n(o,t),r[i]=new jq(o),"opacity"===i&&((o=Av(o)).type="colorAlpha",r.__hidden.__alphaForOpacity=new jq(o))}}))})),i}function Q3(e,t,n){var i;Rv(n,(function(e){t.hasOwnProperty(e)&&K3(t[e])&&(i=!0)})),i&&Rv(n,(function(n){t.hasOwnProperty(n)&&K3(t[n])?e[n]=Av(t[n]):delete e[n]}))}var e4={lineX:t4(0),lineY:t4(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&eB(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var o=e.x,r=e.y,a=e.width,s=e.height,l=i[0];return!!(eB(i,o,r)||eB(i,o+a,r)||eB(i,o,r+s)||eB(i,o+a,r+s)||Ax.create(e).contain(l[0],l[1])||cD(o,r,o+a,r,i)||cD(o,r,o,r+s,i)||cD(o+a,r,o+a,r+s,i)||cD(o,r+s,o+a,r+s,i))||void 0}}};function t4(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var o=i.range;return n4(t[e],o)}},rect:function(i,o,r){if(i){var a=r.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),n4(s[0],a)||n4(s[1],a)||n4(a[0],s)||n4(a[1],s)}}}}function n4(e,t){return t[0]<=e&&e<=t[1]}var i4=["inBrush","outOfBrush"],o4="__ecBrushSelect",r4="__ecInBrushSelectEvent";function a4(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new y3(t.option,e)).setInputRanges(t.areas,e)}))}function s4(e,t,n){var i,o,r=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),a4(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:Av(t.areas),selected:[]};r.push(a);var s=t.option,l=s.brushLink,c=[],u=[],p=[],d=!1;n||(i=s.throttleType,o=s.throttleDelay);var h=zv(t.areas,(function(e){var t=u4[e.brushType],n=Ov({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(i){return e4[t].point(i,n,e)},rect:function(i){return e4[t].rect(i,n,e)}};return n}(n),n})),f=J3(t.option,i4,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!c[e]}function m(e){return!!e.length}Wv(l)&&Rv(l,(function(e){c[e]=1})),e.eachSeries((function(n,i){var o=p[i]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}(n,i):function(n,i,o){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(Wv(n)?Lv(n,t)<0:t!==n)}(t,i))return;if(Rv(h,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&o.push(i),d=d||m(o)})),g(i)&&m(o)){var r=n.getData();r.each((function(e){c4(n,o,r,e)&&(u[e]=1)}))}}(n,i,o)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=p[t],o=e.getData(),r=g(t)?function(e){return u[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return c4(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:m(i))&&function(e,t,n,i,o,r){var a,s={};function l(e){return KN(n,a,e)}function c(e,t){QN(n,a,e,t)}function u(e,u){a=null==r?e:u;var p=n.getRawDataItem(a);if(!p||!1!==p.visualMap)for(var d=i.call(o,e),h=t[d],f=s[d],g=0,m=f.length;g<m;g++){var v=f[g];h[v]&&h[v].applyVisual(e,l,c)}}Rv(e,(function(e){var n=jq.prepareVisualTypes(t[e]);s[e]=n})),null==r?n.each(u):n.each([r],u)}(i4,f,o,r)}))})),function(e,t,n,i,o){if(!o)return;var r=e.getZr();if(r[r4])return;r[o4]||(r[o4]=l4);var a=pN(r,o4,n,t);a(e,i)}(t,i,o,r,n)}function l4(e,t){if(!e.isDisposed()){var n=e.getZr();n[r4]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[r4]=!1}}function c4(e,t,n,i){for(var o=0,r=t.length;o<r;o++){var a=t[o];if(e.brushSelector(i,n,a.selectors,a))return!0}}var u4={rect:function(e){return p4(e.range)},polygon:function(e){for(var t,n=e.range,i=0,o=n.length;i<o;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&p4(t)}};function p4(e){return new Ax(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var d4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new tK(t.getZr())).on("brush",Fv(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){a4(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:Av(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:Av(n),$from:t})},t.type="brush",t}(ZL);function h4(e,t){return Dv({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new UD(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var f4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return S(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Q3(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){"production"!==process.env.NODE_ENV&&(ay(Wv(e)),Rv(e,(function(e){ay(e.brushType,"Illegal areas")}))),e&&(this.areas=zv(e,(function(e){return h4(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=h4(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(tE),g4=["rect","polygon","lineX","lineY","keep","clear"],m4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,o=e.brushOption.brushMode||"single",r=r||!!e.areas.length})),this._brushType=i,this._brushMode=o,Rv(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return Rv(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,o=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},t.getDefaultOption=function(e){return{show:!0,type:g4.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(k5);var v4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return S(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(tE),y4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,o=e.getModel("textStyle"),r=e.getModel("subtextStyle"),a=e.get("textAlign"),s=ny(e.get("textBaseline"),e.get("textVerticalAlign")),l=new sT({style:_D(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),p=new sT({style:_D(r,{text:u,fill:r.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),h=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!d&&!f,p.silent=!h&&!f,d&&l.on("click",(function(){Fk(d,"_"+e.get("target"))})),h&&p.on("click",(function(){Fk(h,"_"+e.get("subtarget"))})),lT(l).eventData=lT(p).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),u&&i.add(p);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=qk(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),p.setStyle(y),g=i.getBoundingRect();var x=v.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var _=new UM({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(_)}},t.type="title",t}(ZL);var x4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return S(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,o=this._names=[];"category"===i?(e=[],Rv(n,(function(t,n){var i,r=AS(SS(t),"");Xv(t)?(i=Av(t)).value=n:i=n,e.push(i),o.push(r)}))):e=n;var r={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new kz([{name:"value",type:r}],this)).initData(e,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(tE),b4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="timeline.slider",t.defaultOption=XD(x4.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(x4);Nv(b4,BO.prototype);var _4=b4,w4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="timeline",t}(ZL),S4=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.type=o||"value",r}return S(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(CB),C4=S4,M4=Math.PI,T4=NS(),I4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){return CL("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},Rv(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,o,a,e)}),this),this._renderAxisLabel(i,r,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i,o,r,a=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return qk(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getWidth()/2?"+":"-":Uv(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:M4/2},d="vertical"===s?l.height:l.width,h=e.getModel("controlStyle"),f=h.get("show",!0),g=f?h.get("itemSize"):0,m=f?h.get("itemGap"):0,v=g+m,y=e.get(["label","rotate"])||0;y=y*M4/180;var x=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),_=f&&h.get("showPrevBtn",!0),w=f&&h.get("showNextBtn",!0),S=0,C=d;"left"===x||"bottom"===x?(b&&(i=[0,0],S+=v),_&&(o=[S,0],S+=v),w&&(r=[C-g,0],C-=v)):(b&&(i=[C-g,0],C-=v),_&&(o=[0,0],S+=v),w&&(r=[C-g,0],C-=v));var M=[S,C];return e.get("inverse")&&M.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:p[s],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[s],playPosition:i,prevBtnPosition:o,nextBtnPosition:r,axisExtent:M,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var r=[1,0,0,1,0,0],a=o.x,s=o.y+o.height;hx(r,r,[-a,-s]),fx(r,r,-M4/2),hx(r,r,[a,s]),(o=o.clone()).applyTransform(r)}var l=m(o),c=m(n.getBoundingRect()),u=m(i.getBoundingRect()),p=[n.x,n.y],d=[i.x,i.y];d[0]=p[0]=l[0][0];var h,f=e.labelPosOpt;null==f||Uv(f)?(v(p,c,l,1,h="+"===f?0:1),v(d,u,l,1,1-h)):(v(p,c,l,1,h=f>=0?0:1),d[1]=p[1]+f);function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,o){e[i]+=n[i][o]-t[i][o]}n.setPosition(p),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),o=function(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new eV({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new MV({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new iV}}(t,i);o.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var r=n.getDataExtent("value");o.setExtent(r[0],r[1]),o.calcNiceTicks();var a=new C4("value",o,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Ew;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var r=new lA({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ev({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(r);var a=this._progressLine=new lA({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ov({lineCap:"round",lineWidth:r.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var o=this,r=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Rv(a,(function(e){var a=n.dataToCoord(e.value),s=r.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),p={x:a,y:0,onclick:Fv(o._changeTimeline,o,e.value)},d=A4(s,l,t,p);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),eI(d);var h=lT(d);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=i):h.dataIndex=h.dataModel=null,o._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var o=this;if(n.getLabelModel().get("show")){var r=i.getData(),a=n.getViewLabels();this._tickLabels=[],Rv(a,(function(i){var a=i.tickValue,s=r.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),p=n.dataToCoord(i.tickValue),d=new sT({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:Fv(o._changeTimeline,o,a),silent:!1,style:_D(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=_D(c),d.ensureState("progress").style=_D(u),t.add(d),eI(d),T4(d).dataIndex=a,o._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var o=e.controlSize,r=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(e,n,l,c){if(e){var u=yw(ny(i.get(["controlStyle",n+"BtnSize"]),o),o),p=function(e,t,n,i){var o=i.style,r=lD(e.get(["controlStyle",t]),i||{},new Ax(n[0],n[1],n[2],n[3]));o&&r.setStyle(o);return r}(i,n+"Icon",[0,-u/2,u,u],{x:e[0],y:e[1],originX:o/2,originY:0,rotation:c?-r:0,rectHover:!0,style:a,onclick:l});p.ensureState("emphasis").style=s,t.add(p),eI(p)}}u(e.nextBtnPosition,"next",Fv(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Fv(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Fv(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=o.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Fv(s._handlePointerDrag,s),e.ondragend=Fv(s._handlePointerDragend,s),D4(e,s._progressLine,r,n,i,!0)},onUpdate:function(e){D4(e,s._progressLine,r,n,i)}};this._currentPointer=A4(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=Gw(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var r=this._findNearestTick(n),a=this.model;(t||r!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(r)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return iD(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],(function(n,r){var a=o.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=r)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",T4(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(w4);function A4(e,t,n,i,o,r){var a=t.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=fP(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o));var s=t.getItemStyle(["color"]);o.setStyle(s),i=Dv({rectHover:!0,z2:100},i,!0);var l=gP(e.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var c=mP(e.get("symbolOffset"),l);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var u=e.get("symbolRotate");return i.rotation=(u||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function D4(e,t,n,i,o,r){if(!e.dragging){var a=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",n));if(r||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var k4=I4;function E4(e){var t=e&&e.timeline;Wv(t)||(t=t?[t]:[]),Rv(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(O4(e),L4(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});L4(i,"position")||(i.position=e.controlPosition),"none"!==i.position||L4(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}Rv(e.data||[],(function(e){Xv(e)&&!Wv(e)&&(!L4(e,"value")&&L4(e,"name")&&(e.value=e.name),O4(e))}))}(e)}))}function O4(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},o=i.normal||(i.normal={}),r={normal:1,emphasis:1};Rv(i,(function(e,t){r[t]||L4(o,t)||(o[t]=e)})),n.label&&!L4(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function L4(e,t){return e.hasOwnProperty(t)}function N4(e,t){if(!e)return!1;for(var n=Wv(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function P4(e){_S(e,"label",["show"])}var R4=NS(),z4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return S(t,e),t.prototype.init=function(e,t,n){if("production"!==process.env.NODE_ENV&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(av.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var o=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),r=R4(e)[o];n&&n.data?(r?r._mergeOption(n,t,!0):(i&&P4(n),Rv(n.data,(function(e){e instanceof Array?(P4(e[0]),P4(e[1])):P4(e)})),Ev(r=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),r.__hostSeries=e),R4(e)[o]=r):R4(e)[o]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.getRawValue(e),r=i.getName(e);return CL("section",{header:this.name,blocks:[CL("nameValue",{name:r,value:o,noName:!r,noValue:null==o})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return R4(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(tE);Nv(z4,BO.prototype);var V4=z4,B4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(V4);function j4(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function F4(e,t,n,i,o,r){var a=[],s=zz(t,i)?t.getCalculationInfo("stackResultDimension"):i,l=q4(t,s,e),c=t.indicesOfNearest(s,l)[0];a[o]=t.get(n,c),a[r]=t.get(s,c);var u=t.get(i,c),p=Ww(t.get(i,c));return(p=Math.min(p,20))>=0&&(a[r]=+a[r].toFixed(p)),[a,u]}var G4={min:Gv(F4,"min"),max:Gv(F4,"max"),average:Gv(F4,"average"),median:Gv(F4,"median")};function W4(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,o=i&&i.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!Wv(t.coord)&&Wv(o)){var r=H4(t,n,i,e);if((t=Av(t)).type&&G4[t.type]&&r.baseAxis&&r.valueAxis){var a=Lv(o,r.baseAxis.dim),s=Lv(o,r.valueAxis.dim),l=G4[t.type](n,r.baseDataDim,r.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Wv(o))for(var c=t.coord,u=0;u<2;u++)G4[c[u]]&&(c[u]=q4(n,n.mapDimension(o[u]),c[u]));else t.coord=[];return t}}function H4(e,t,n,i){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function U4(e,t){return!(e&&e.containData&&t.coord&&!j4(t))||e.containData(t.coord)}function Y4(e,t){return e?function(e,n,i,o){return HO(o<2?e.coord&&e.coord[o]:e.value,t[o])}:function(e,n,i,o){return HO(e.value,t[o])}}function q4(e,t,n){if("average"===n){var i=0,o=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,o++)})),i/o}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var X4=NS(),$4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.init=function(){this.markerGroupMap=fy()},t.prototype.render=function(e,t,n){var i=this,o=this.markerGroupMap;o.each((function(e){X4(e).keep=!1})),t.eachSeries((function(e){var o=V4.getMarkerModelFromSeries(e,i.type);o&&i.renderSeries(e,o,t,n)})),o.each((function(e){!X4(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){X4(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Rv(e,(function(e){var i=V4.getMarkerModelFromSeries(e,n.type);i&&i.getData().eachItemGraphicEl((function(e){e&&(t?WT(e):HT(e))}))}))},t.type="marker",t}(ZL);function Z4(e,t,n){var i=t.coordinateSystem;e.each((function(o){var r,a=e.getItemModel(o),s=jw(a.get("x"),n.getWidth()),l=jw(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(i){var c=e.get(i.dimensions[0],o),u=e.get(i.dimensions[1],o);r=i.dataToPoint([c,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),e.setItemLayout(o,r)}))}var K4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=V4.getMarkerModelFromSeries(e,"markPoint");t&&(Z4(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new HF),c=function(e,t,n){var i;i=e?zv(e&&e.dimensions,(function(e){return Ev(Ev({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new kz(i,n),r=zv(n.get("data"),Gv(W4,t));e&&(r=Bv(r,Gv(U4,e)));var a=Y4(!!e,i);return o.initData(r,null,a),o}(o,e,t);t.setData(c),Z4(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Hv(i)||Hv(o)||Hv(r)||Hv(s)){var u=t.getRawValue(e),p=t.getDataParams(e);Hv(i)&&(i=i(u,p)),Hv(o)&&(o=o(u,p)),Hv(r)&&(r=r(u,p)),Hv(s)&&(s=s(u,p))}var d=n.getModel("itemStyle").getItemStyle(),h=JN(a,"color");d.fill||(d.fill=h),c.setItemVisual(e,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){lT(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}($4);var J4=K4;var Q4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(V4),e6=NS(),t6=function(e,t,n,i){var o,r=e.getData();if(Wv(i))o=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=ty(i.yAxis,i.xAxis);else{var c=H4(i,r,t,e);s=c.valueAxis,l=q4(r,Vz(r,c.valueDataDim),a)}var u="x"===s.dim?0:1,p=1-u,d=Av(i),h={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,h.coord[p]=1/0;var f=n.get("precision");f>=0&&qv(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[u]=h.coord[u]=l,o=[d,h,{type:a,valueIndex:i.valueIndex,value:l}]}else"production"!==process.env.NODE_ENV&&Iv("Invalid markLine data."),o=[]}var g=[W4(e,o[0]),W4(e,o[1]),Ev({},o[2])];return g[2].type=g[2].type||null,Dv(g[2],g[0]),Dv(g[2],g[1]),g};function n6(e){return!isNaN(e)&&!isFinite(e)}function i6(e,t,n,i){var o=1-e,r=i.dimensions[e];return n6(t[o])&&n6(n[o])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function o6(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(i6(1,n,i,e)||i6(0,n,i,e)))return!0}return U4(e,t[0])&&U4(e,t[1])}function r6(e,t,n,i,o){var r,a=i.coordinateSystem,s=e.getItemModel(t),l=jw(s.get("x"),o.getWidth()),c=jw(s.get("y"),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,p=e.get(u[0],t),d=e.get(u[1],t);r=a.dataToPoint([p,d])}if(oG(a,"cartesian2d")){var h=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;n6(e.get(u[0],t))?r[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):n6(e.get(u[1],t))&&(r[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];e.setItemLayout(t,r)}var a6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=V4.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),o=e6(t).from,r=e6(t).to;o.each((function(t){r6(o,t,!0,e,n),r6(r,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[o.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new YX);this.group.add(l.group);var c=function(e,t,n){var i;i=e?zv(e&&e.dimensions,(function(e){return Ev(Ev({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new kz(i,n),r=new kz(i,n),a=new kz([],n),s=zv(n.get("data"),Gv(t6,t,e,n));e&&(s=Bv(s,Gv(o6,e)));var l=Y4(!!e,i);return o.initData(zv(s,(function(e){return e[0]})),null,l),r.initData(zv(s,(function(e){return e[1]})),null,l),a.initData(zv(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:o,to:r,line:a}}(o,e,t),u=c.from,p=c.to,d=c.line;e6(t).from=u,e6(t).to=p,t.setData(d);var h=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,o){var r=t.getItemModel(n);r6(t,n,o,e,i);var s=r.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=JN(a,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:ny(r.get("symbolOffset",!0),m[o?0:1]),symbolRotate:ny(r.get("symbolRotate",!0),g[o?0:1]),symbolSize:ny(r.get("symbolSize"),f[o?0:1]),symbol:ny(r.get("symbol",!0),h[o?0:1]),style:s})}Wv(h)||(h=[h,h]),Wv(f)||(f=[f,f]),Wv(g)||(g=[g,g]),Wv(m)||(m=[m,m]),c.from.each((function(e){v(u,e,!0),v(p,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),p.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:p.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(e,"symbolOffset"),toSymbolRotate:p.getItemVisual(e,"symbolRotate"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),c.line.eachItemGraphicEl((function(e){lT(e).dataModel=t,e.traverse((function(e){lT(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}($4);var s6=a6;var l6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(V4),c6=NS(),u6=function(e,t,n,i){var o=i[0],r=i[1];if(o&&r){var a=W4(e,o),s=W4(e,r),l=a.coord,c=s.coord;l[0]=ty(l[0],-1/0),l[1]=ty(l[1],-1/0),c[0]=ty(c[0],1/0),c[1]=ty(c[1],1/0);var u=kv([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function p6(e){return!isNaN(e)&&!isFinite(e)}function d6(e,t,n,i){var o=1-e;return p6(t[o])&&p6(n[o])}function h6(e,t){var n=t.coord[0],i=t.coord[1],o={coord:n,x:t.x0,y:t.y0},r={coord:i,x:t.x1,y:t.y1};return oG(e,"cartesian2d")?!(!n||!i||!d6(1,n,i)&&!d6(0,n,i))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!j4(t)&&!j4(n))||e.containZone(t.coord,n.coord)}(e,o,r):U4(e,o)||U4(e,r)}function f6(e,t,n,i,o){var r,a=i.coordinateSystem,s=e.getItemModel(t),l=jw(s.get(n[0]),o.getWidth()),c=jw(s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),p=e.getValues(["x1","y1"],t),d=a.clampData(u),h=a.clampData(p),f=[];"x0"===n[0]?f[0]=d[0]>h[0]?p[0]:u[0]:f[0]=d[0]>h[0]?u[0]:p[0],"y0"===n[1]?f[1]=d[1]>h[1]?p[1]:u[1]:f[1]=d[1]>h[1]?u[1]:p[1],r=i.getMarkerPosition(f,n,!0)}else{var g=[y=e.get(n[0],t),x=e.get(n[1],t)];a.clampData&&a.clampData(g,g),r=a.dataToPoint(g,!0)}if(oG(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=e.get(n[0],t),x=e.get(n[1],t);p6(y)?r[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):p6(x)&&(r[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];return r}var g6=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],m6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=V4.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var o=zv(g6,(function(o){return f6(i,t,o,e,n)}));i.setItemLayout(t,o),i.getItemGraphicEl(t).setShape("points",o)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new Ew});this.group.add(l.group),this.markKeep(l);var c=function(e,t,n){var i,o,r=["x0","y0","x1","y1"];if(e){var a=zv(e&&e.dimensions,(function(e){var n=t.getData();return Ev(Ev({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}));o=zv(r,(function(e,t){return{name:e,type:a[t%2].type}})),i=new kz(o,n)}else i=new kz(o=[{name:"value",type:"float"}],n);var s=zv(n.get("data"),Gv(u6,t,e,n));e&&(s=Bv(s,Gv(h6,e)));var l=e?function(e,t,n,i){return HO(e.coord[Math.floor(i/2)][i%2],o[i])}:function(e,t,n,i){return HO(e.value,o[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(o,e,t);t.setData(c),c.each((function(t){var n=zv(g6,(function(n){return f6(c,t,n,e,i)})),r=o.getAxis("x").scale,s=o.getAxis("y").scale,l=r.getExtent(),u=s.getExtent(),p=[r.parse(c.get("x0",t)),r.parse(c.get("x1",t))],d=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];Gw(p),Gw(d);var h=!!(l[0]>p[1]||l[1]<p[0]||u[0]>d[1]||u[1]<d[0]);c.setItemLayout(t,{points:n,allClipped:h});var f=c.getItemModel(t).getModel("itemStyle").getItemStyle(),g=JN(a,"color");f.fill||(f.fill=g,Uv(f.fill)&&(f.fill=$b(f.fill,.4))),f.stroke||(f.stroke=g),c.setItemVisual(t,"style",f)})),c.diff(c6(l).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new iA({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=c6(l).data.getItemGraphicEl(n),o=c.getItemLayout(e);o.allClipped?i&&l.group.remove(i):(i?RA(i,{shape:{points:o.points}},t,e):i=new iA({shape:{points:o.points}}),c.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=c6(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var i=c.getItemModel(n),o=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),xD(e,bD(i),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Uv(o.fill)?$b(o.fill,1):"#000"}),rI(e,i),tI(e,null,null,i.get(["emphasis","disabled"])),lT(e).dataModel=t})),c6(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}($4);var v6=m6;var y6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return S(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),Wv(t)&&Rv(t,(function(e,i){Uv(e)&&(e={type:e}),t[i]=Dv(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var o,r=i.name;if(n.push(r),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):o=!0}else o=!0;o&&ES(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,o=fy(),r=zv(i,(function(e){return(Uv(e)||qv(e))&&(e={name:e}),o.get(e.name)?null:(o.set(e.name,!0),new UD(e,this,this.ecModel))}),this);this._data=Bv(r,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&Rv(this._data,(function(e){t[e.get("name")]=!1}));t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;Rv(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;Rv(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Lv(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(tE),x6=y6,b6=Gv,_6=Rv,w6=Ew,S6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return S(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new w6),this.group.add(this._selectorGroup=new w6),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),r=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===r?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===r?"end":"start"),this.renderInner(o,e,t,n,a,r,s);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),p=qk(l,c,u),d=this.layoutInner(e,o,p,i,a,s),h=qk(Ov({width:d.width,height:d.height},l),c,u);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=P5(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,o,r,a){var s=this.getContentGroup(),l=fy(),c=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),_6(t.getData(),(function(o,r){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new w6;return p.newline=!0,void s.add(p)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var h=d.getData(),f=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),m=h.getVisual("style"),v=this._createItem(d,a,r,o,t,e,f,m,g,c,i);v.on("click",b6(C6,a,null,i,u)).on("mouseover",b6(T6,d.name,null,i,u)).on("mouseout",b6(I6,d.name,null,i,u)),n.ssr&&v.eachChild((function(e){var t=lT(e);t.seriesIndex=d.seriesIndex,t.dataIndex=r,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var p=s.legendVisualProvider;if(!p.containName(a))return;var d=p.indexOfName(a),h=p.getItemVisual(d,"style"),f=p.getItemVisual(d,"legendIcon"),g=Hb(h.fill);g&&0===g[3]&&(g[3]=.2,h=Ev(Ev({},h),{fill:Zb(g,"rgba")}));var m=this._createItem(s,a,r,o,t,e,{},h,f,c,i);m.on("click",b6(C6,null,a,i,u)).on("mouseover",b6(T6,null,a,i,u)).on("mouseout",b6(I6,null,a,i,u)),n.ssr&&m.eachChild((function(e){var t=lT(e);t.seriesIndex=s.seriesIndex,t.dataIndex=r,t.ssrType="legend"})),l.set(a,!0)}}),this);"production"!==process.env.NODE_ENV&&(l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name."))}}),this),o&&this._createSelector(o,t,i,r,a)},t.prototype._createSelector=function(e,t,n,i,o){var r=this.getSelectorGroup();_6(e,(function(e){var i=e.type,o=new sT({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o),xD(o,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),eI(o)}))},t.prototype._createItem=function(e,t,n,i,o,r,a,s,l,c,u){var p=e.visualDrawType,d=o.get("itemWidth"),h=o.get("itemHeight"),f=o.isSelected(t),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(e,t,n,i,o,r,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),_6(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",p=l.getShallow("decal");c.decal=p&&"inherit"!==p?UP(p,a):i.decal,"inherit"===c.fill&&(c.fill=i[o]);"inherit"===c.stroke&&(c.stroke=i[u]);"inherit"===c.opacity&&(c.opacity=("fill"===o?i:n).opacity);s(c,i);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===h.stroke&&(h.stroke=i.fill),!r){var f=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}(l=v||l||"roundRect",i,a,s,p,f,u),x=new w6,b=i.getModel("textStyle");if(!Hv(e.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(function(e){var t=e.icon||"roundRect",n=fP(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:h,icon:l,iconRotate:_,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else x.add(e.getLegendIcon({itemWidth:d,itemHeight:h,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var w="left"===r?d+5:-5,S=r,C=o.get("formatter"),M=t;Uv(C)&&C?M=C.replace("{name}",null!=t?t:""):Hv(C)&&(M=C(t));var T=f?b.getTextColor():i.get("inactiveColor");x.add(new sT({style:_D(b,{text:M,x:w,y:h/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var I=new UM({shape:x.getBoundingRect(),style:{fill:"transparent"}}),A=i.getModel("tooltip");return A.get("show")&&dD({el:I,componentModel:o,itemName:t,itemTooltipOption:A.option}),x.add(I),x.eachChild((function(e){e.silent=!0})),I.silent=!c,this.getContentGroup().add(x),eI(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();Yk(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){Yk("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),p=[-u.x,-u.y],d=e.get("selectorButtonGap",!0),h=e.getOrient().index,f=0===h?"width":"height",g=0===h?"height":"width",m=0===h?"y":"x";"end"===r?p[h]+=l[f]+d:c[h]+=u[f]+d,p[1-h]+=l[g]/2-u[g]/2,s.x=p[0],s.y=p[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[f]=l[f]+d+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+p[1-h]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ZL);function C6(e,t,n,i){I6(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),T6(e,t,n,i)}function M6(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function T6(e,t,n,i){M6(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function I6(e,t,n,i){M6(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var A6=S6;function D6(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function k6(e,t,n){var i,o={},r="toggleSelected"===e;return n.eachComponent("legend",(function(n){r&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name)),Rv(n.getData(),(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&i:o[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}function E6(e){e.registerComponentModel(x6),e.registerComponentView(A6),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,D6),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",Gv(k6,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Gv(k6,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Gv(k6,"inverseSelect")),e.registerAction("legendSelect","legendselected",Gv(k6,"select")),e.registerAction("legendUnSelect","legendunselected",Gv(k6,"unSelect"))}(e)}function O6(e,t,n){var i=[1,1];i[e.getOrient().index]=0,Zk(t,n,{type:"box",ignoreSize:!!i})}var L6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var o=Kk(t);e.prototype.init.call(this,t,n,i),O6(this,t,o)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),O6(this,this.option,t)},t.type="legend.scroll",t.defaultOption=XD(x6.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(x6),N6=Ew,P6=["width","height"],R6=["x","y"],z6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return S(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new N6),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new N6)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,o,r,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,o,r,a,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),p=Wv(u)?u:[u,u];h("pagePrev",0);var d=n.getModel("pageTextStyle");function h(e,t){var i=e+"DataIndex",r=lD(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:Fv(l._pageGo,l,i,n,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});r.name=e,c.add(r)}c.add(new sT({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,o,r){var a=this.getSelectorGroup(),s=e.getOrient().index,l=P6[s],c=R6[s],u=P6[1-s],p=R6[1-s];o&&Yk("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),f=[-h.x,-h.y],g=Av(n);o&&(g[l]=n[l]-h[l]-d);var m=this._layoutContentAndController(e,i,g,s,l,u,p,c);if(o){if("end"===r)f[s]+=m[l]+d;else{var v=h[l]+d;f[s]-=v,m[c]-=v}m[l]+=h[l]+d,f[1-s]+=m[p]+m[u]/2-h[u]/2,m[u]=Math.max(m[u],h[u]),m[p]=Math.min(m[p],h[p]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,i,o,r,a,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;Yk(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),Yk("horizontal",u,e.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),d=u.getBoundingRect(),h=this._showController=p[o]>n[o],f=[-p.x,-p.y];t||(f[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=ny(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?m[i]+=n[o]-d[o]:g[i]+=d[o]+v);m[1-i]+=p[r]/2-d[r]/2,l.setPosition(f),c.setPosition(g),u.setPosition(m);var y={x:0,y:0};if(y[o]=h?n[o]:p[o],y[r]=Math.max(p[r],d[r]),y[a]=Math.min(0,d[a]+m[1-i]),c.__rectSize=n[o],h){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-v,0),x[r]=y[r],c.setClipPath(new UM({shape:x})),c.__rectSize=x[o]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(e);return null!=b.pageIndex&&RA(l,{x:b.contentPosition[0],y:b.contentPosition[1]},h?e:null),this._updatePageInfoView(e,b),y},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Rv(["pagePrev","pageNext"],(function(i){var o=null!=t[i+"DataIndex"],r=n.childOfName(i);r&&(r.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),o=e.get("pageFormatter"),r=t.pageIndex,a=null!=r?r+1:0,s=t.pageCount;i&&o&&i.setStyle("text",Uv(o)?o.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):o({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,r=P6[o],a=R6[o],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,p=u?1:0,d={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var h=y(c);d.contentPosition[o]=-h.s;for(var f=s+1,g=h,m=h,v=null;f<=u;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=h,m=h,v=null;f>=-1;--f)(v=y(l[f]))&&x(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[r],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(i,o){var r=i.__legendDataIndex;null==n&&null!=r&&(n=o),r===e&&(t=o)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(A6),V6=z6;function B6(e){nz(E6),e.registerComponentModel(L6),e.registerComponentView(V6),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}var j6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="dataZoom.inside",t.defaultOption=XD(y5.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(y5),F6=NS();function G6(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function W6(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function H6(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function U6(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=F6(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=fy());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){Rv(m5(e).infoList,(function(n){var o=n.model.uid,r=i.get(o)||i.set(o,function(e,t){var n={model:t,containsPoint:Gv(H6,t),dispatchAction:Gv(W6,e),dataZoomInfoMap:null,controller:null},i=n.controller=new YH(e.getZr());return Rv(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(o){if(t.isAvailableBehavior(o.model.option)){var r=(o.getRange||{})[e],a=r&&r(o.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!o.model.get("disabled",!0)&&a&&i.push({dataZoomId:o.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(t,n.model));(r.dataZoomInfoMap||(r.dataZoomInfoMap=fy())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,o=e.dataZoomInfoMap;if(o){var r=o.keys()[0];null!=r&&(t=o.get(r))}if(t){var a=function(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each((function(e){var r=e.model,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),o=o&&r.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}(o);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),pN(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else G6(i,e)}))}))}var Y6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return S(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){F6(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}(i,t,{pan:Fv(q6.pan,this),zoom:Fv(q6.zoom,this),scrollMove:Fv(q6.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=F6(e).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||G6(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(_5),q6={zoom:function(e,t,n,i){var o=this.range,r=o.slice(),a=e.axisModels[0];if(a){var s=$6[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],c=Math.max(1/i.scale,0);r[0]=(r[0]-l)*c+l,r[1]=(r[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return $$(0,r,[0,100],0,u.minSpan,u.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:X6((function(e,t,n,i,o,r){var a=$6[i]([r.oldX,r.oldY],[r.newX,r.newY],t,o,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:X6((function(e,t,n,i,o,r){return $6[i]([0,0],[r.scrollDelta,r.scrollDelta],t,o,n).signal*(e[1]-e[0])*r.scrollDelta}))};function X6(e){return function(t,n,i,o){var r=this.range,a=r.slice(),s=t.axisModels[0];if(s)return $$(e(a,s,t,n,i,o),a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}}var $6={grid:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=r.inverse?-1:1),a},singleAxis:function(e,t,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}},Z6=Y6;function K6(e){A5(e),e.registerComponentModel(j6),e.registerComponentView(Z6),U6(e)}var J6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=XD(y5.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(y5),Q6=UM,e8="horizontal",t8="vertical",n8=["line","bar","candlestick","scatter"],i8={easing:"cubicOut",duration:100,delay:0},o8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return S(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Fv(this._onBrush,this),this._onBrushEnd=Fv(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,o){if(e.prototype.render.apply(this,arguments),pN(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){dN(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ew;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===e8?{right:o.width-i.x-i.width,top:o.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Kk(e.option);Rv(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=r[e])}));var s=qk(a,o);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===t8&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==e8||o?n===e8&&o?{scaleY:a?1:-1,scaleX:-1}:n!==t8||o?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([r]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Q6({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Q6({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Fv(this._onClickPanel,this)}),r=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",r.on("mousemove",this._onBrush),r.on("mouseup",this._onBrushEnd)):(r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),a=r&&o.getDimensionInfo(r)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=o.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var p,d=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=h[1]/(o.count()-1),v=0,y=Math.round(o.count()/t[0]);o.each([a],(function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:Bw(e,c,d,!0);n&&!p&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&p&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,p=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,b=0;b<3;b++){var _=w(1===b);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function w(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new Ew,i=new iA({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new rA({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(o,r){Rv(e.getAxisProxy(o,r).getTargetSeriesModels(),(function(e){if(!(n||!0!==t&&Lv(n8,e.get("type"))<0)){var a,s=i.getComponent(f5(o),r).axis,l=function(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}(o),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:o,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],o=this._displayables.sliderGroup,r=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,c=a.get("brushSelect"),u=t.filler=new Q6({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});o.add(u),o.add(new Q6({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Rv([0,1],(function(t){var r=a.get("handleIcon");!pP[r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r,"production"!==process.env.NODE_ENV&&hS("handleIcon now needs 'path://' prefix when using a path string"));var s=fP(r,-1,0,2,2,null,!0);s.attr({cursor:r8(this._orient),draggable:!0,drift:Fv(this._onDragMove,this,t),ondragend:Fv(this._onDragEnd,this),onmouseover:Fv(this._showDataInfo,this,!0),onmouseout:Fv(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=jw(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),eI(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),o.add(n[t]=s);var p=a.getModel("textStyle");e.add(i[t]=new sT({silent:!0,invisible:!0,style:_D(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))}),this);var p=u;if(c){var d=jw(a.get("moveHandleSize"),r[1]),h=t.moveHandle=new UM({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:d}}),f=.8*d,g=t.moveHandleIcon=fP(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=r[1]+d/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(r[1]/2,Math.max(d,10));(p=t.moveZone=new UM({invisible:!0,shape:{y:r[1]-m,height:d+m}})).on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),o.add(h),o.add(g),o.add(p)}p.attr({draggable:!0,cursor:r8(this._orient),drift:Fv(this._onDragMove,this,"all"),ondragstart:Fv(this._showDataInfo,this,!0),ondragend:Fv(this._onDragEnd,this),onmouseover:Fv(this._showDataInfo,this,!0),onmouseout:Fv(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Bw(e[0],[0,100],t,!0),Bw(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];$$(t,i,o,n.get("zoomLock")?"all":e,null!=r.minSpan?Bw(r.minSpan,a,o,!0):null,null!=r.maxSpan?Bw(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=Gw([Bw(i[0],o,a,!0),Bw(i[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Gw(n.slice()),o=this._size;Rv([0,1],(function(e){var i=t.handles[e],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[e]+(e?-1:1),y:o[1]/2-r/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var r={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(r),t.moveZone.setShape(r),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",r.x+r.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],o[0]],l=0;l<a.length;l++){var c=a[l],u=c.getClipPath();u||(u=new UM,c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,r=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,c=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();r=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Gw(this._handleEnds.slice());function p(e){var t=nD(n.handles[e].parent,this.group),a=oD(0===e?"right":"left",t),s=this._handleWidth/2+5,l=iD([u[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:o===e8?"middle":a,align:o===e8?a:"center",text:r[e]})}p.call(this,0),p.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var r=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Hv(i)?i(e,r):Uv(i)?i.replace("{value}",r):r},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,rx(i.event);var o=iD([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),r=this._updateInterval(e,o[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),r&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new vx(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=Gw([Bw(n.x,i,o,!0),Bw(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(rx(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Q6({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var r=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(r.x,r.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?i8:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=m5(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return e},t.type="dataZoom.slider",t}(_5);function r8(e){return"vertical"===e?"ns-resize":"ew-resize"}var a8=o8;function s8(e){e.registerComponentModel(J6),e.registerComponentView(a8),A5(e)}var l8=function(e,t,n){var i=Av((c8[e]||{})[t]);return n&&Wv(i)?i[i.length-1]:i},c8={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},u8=jq.mapVisual,p8=jq.eachVisual,d8=Wv,h8=Rv,f8=Gw,g8=Bw,m8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return S(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Q3(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=Fv(e,this),this.controllerVisuals=J3(this.option.controller,t,e),this.targetVisuals=J3(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=bS(e),t},t.prototype.eachTargetSeries=function(e,t){Rv(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,o=this.option,r=o.precision,a=this.dataBound,s=o.formatter;n=n||["<",">"],Wv(e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return Uv(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Hv(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(r,20))}},t.prototype.resetExtent=function(){var e=this.option,t=f8([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],r=e.getDimensionInfo(o);if(!r.isCalculationCoord)return r.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),o=t.controller||(t.controller={});Dv(i,n),Dv(o,n);var r=this.isCategory();function a(n){d8(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,i),a.call(this,o),function(e,t,n){var i=e[t],o=e[n];i&&!o&&(o=e[n]={},h8(i,(function(e,t){if(jq.isValidType(t)){var n=l8(t,"inactive",r);null!=n&&(o[t]=n,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";h8(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:r?i:[i]}),null==l.symbol&&(l.symbol=t&&Av(t)||(r?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&Av(n)||(r?s[0]:[s[0],s[0]])),l.symbol=u8(l.symbol,(function(e){return"none"===e?o:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;p8(c,(function(e){e>u&&(u=e)})),l.symbolSize=u8(c,(function(e){return g8(e,[0,u],[0,s[0]],!0)}))}}),this)}.call(this,o)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(tE),v8=[20,140],y8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=v8[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=v8[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):Wv(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Rv(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Gw((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=x8(this,"outOfRange",this.getExtent()),n=x8(this,"inRange",this.option.range.slice()),i=[];function o(t,n){i.push({value:t,color:e(t,n)})}for(var r=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[r]&&o(t[a],"outOfRange");for(var c=1;r<s;r++,c=0)c&&i.length&&o(n[r],"outOfRange"),o(n[r],"inRange");for(c=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(t[a],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=XD(m8.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(m8);function x8(e,t,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}var b8=y8,_8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return S(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Pk(t.get("padding")||0),i=e.getBoundingRect();e.add(new UM({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var i=(n=n||{}).forceState,o=this.visualMapModel,r={};if("color"===t){var a=o.get("contentColor");r.color=a}function s(e){return r[e]}function l(e,t){r[e]=t}var c=o.controllerVisuals[i||o.getValueState(e)];return Rv(jq.prepareVisualTypes(c),(function(i){var o=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=c.__alphaForOpacity),jq.dependsOn(i,t)&&o&&o.applyVisual(e,s,l)})),r[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Xk(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(ZL),w8=_8,S8=[["left","right","width"],["top","bottom","height"]];function C8(e,t,n){var i=e.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var r={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=S8[a],l=[0,null,10],c={},u=0;u<3;u++)c[S8[1-a][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var p=[["x","width",3],["y","height",0]][a],d=qk(c,r,i.padding);return s[(d.margin[p[2]]||0)+d[p[0]]+.5*d[p[1]]<.5*r[p[1]]?0:1]}function M8(e,t){return Rv(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var T8=Bw,I8=Rv,A8=Math.min,D8=Math.max,k8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return S(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=Fv(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Fv(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-r:a[1]+r],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new sT({style:_D(p,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,o=this._orient,r=this._useHandle,a=C8(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Ew;s.add(l),l.add(n.outOfRange=E8()),l.add(n.inRange=E8(null,r?L8(this._orient):null,Fv(this._dragHandle,this,"all",!1),Fv(this._dragHandle,this,"all",!0))),l.setClipPath(new UM({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=D8(c.width,c.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,u,o),this._createHandle(t,s,1,i,u,o)),this._createIndicator(t,s,i,u,o),e.add(s)},t.prototype._createHandle=function(e,t,n,i,o,r){var a=Fv(this._dragHandle,this,n,!1),s=Fv(this._dragHandle,this,n,!0),l=yw(e.get("handleSize"),i[0]),c=fP(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=L8(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){rx(e.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),aI(c,!0),t.add(c);var p=this.visualMapModel.textStyleModel,d=new sT({cursor:u,draggable:!0,drift:a,onmousemove:function(e){rx(e.event)},ondragend:s,style:_D(p,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var h=[l,0],f=this._shapes;f.handleThumbs[n]=c,f.handleLabelPoints[n]=h,f.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,i,o){var r=yw(e.get("indicatorSize"),n[0]),a=fP(e.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof zM){var l=a.style;a.useStyle(Ev({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var c=this.visualMapModel.textStyleModel,u=new sT({silent:!0,invisible:!0,style:_D(c,{x:0,y:0,text:""})});this.group.add(u);var p=[("horizontal"===o?i/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=u,d.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():O8(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[T8(t[0],n,i,!0),T8(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];$$(t,i,o,e,0);var r=n.getExtent();this._dataInterval=[T8(i[0],o,r,!0),T8(i[1],o,r,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,o=[0,t.itemSize[1]],r=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,a)},t.prototype._createBarVisual=function(e,t,n,i){var o={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(e,o),a=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],s=this._createBarPoints(n,a);return{barColor:new _A(0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<100;o++){var r=e[0]+i*o;if(r>e[1])break;n.push({color:this.getControllerVisual(r,"color",t),offset:o/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Ew("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent();I8([0,1],(function(l){var c=o[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=T8(e[l],[0,a[1]],s,!0),p=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=p/a[0],c.x=a[0]-p/2;var d=iD(n.handleLabelPoints[l],nD(c,this.group));r[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(e,"symbolSize"),d=T8(e,r,s,!0),h=a[0]-p/2,f={x:c.x,y:c.y};c.y=d,c.x=h;var g=iD(l.indicatorLabelPoint,nD(c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+o.formatValueText(t),verticalAlign:y?v:"middle",align:y?"center":v});var x={x:h,y:d,style:{fill:u}},b={style:{x:g[0],y:g[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(x,_),m.animateTo(b,_)}else c.attr(x),m.attr(b);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=A8(D8(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],r=n.getExtent();e=A8(D8(o[0],e),o[1]);var a=function(e,t,n){var i=6,o=e.get("hoverLinkDataSize");o&&(i=T8(o,t,n,!0)/2);return i}(n,r,o),s=[e-a,e+a],l=T8(e,o,r,!0),c=[T8(s[0],o,r,!0),T8(s[1],o,r,!0)];s[0]<o[0]&&(c[0]=-1/0),s[1]>o[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,p=[];(t||O8(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=function(e,t){var n={},i={};return o(e||[],n),o(t||[],i,n),[r(n),r(i)];function o(e,t,n){for(var i=0,o=e.length;i<o;i++){var r=AS(e[i].seriesId,null);if(null==r)return;for(var a=bS(e[i].dataIndex),s=n&&n[r],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(t[r]||(t[r]={}))[u]=1}}}function r(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var o=r(e[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}}(u,p);this._dispatchHighDown("downplay",M8(d[0],n)),this._dispatchHighDown("highlight",M8(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(nP(e.target,(function(e){var n=lT(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(t.dataType),r=o.getStore().get(i.getDataDimensionIndex(o),t.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",M8(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var o=nD(t,i?null:this.group);return Wv(e)?iD(e,o,n):oD(e,o,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(w8);function E8(e,t,n,i){return new iA({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){rx(e.event)},ondragend:i})}function O8(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function L8(e){return"vertical"===e?"ns-resize":"ew-resize"}var N8=k8,P8={type:"selectDataRange",event:"dataRangeSelected",update:"update"},R8=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},z8=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i,o,r,a,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((i=t.stateList,o=t.targetVisuals,r=Fv(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},Rv(i,(function(e){var t=jq.prepareVisualTypes(o[e]);s[e]=t})),{progress:function(e,t){var n,i;function l(e){return KN(t,i,e)}function c(e,n){QN(t,i,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var u=t.getStore();null!=(i=e.next());){var p=t.getRawDataItem(i);if(!p||!1!==p.visualMap)for(var d=null!=a?u.get(n,i):i,h=r(d),f=o[h],g=s[h],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(d,l,c)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(Fv(V8,null,e,t))||{stops:[],outerColors:[]},r=t.getDataDimensionIndex(n);r>=0&&(o.dimension=r,i.push(o))}})),e.getData().setVisual("visualMeta",i)}}];function V8(e,t,n,i){for(var o=t.targetVisuals[i],r=jq.prepareVisualTypes(o),a={color:JN(e.getData(),"color")},s=0,l=r.length;s<l;s++){var c=r[s],u=o["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,p,d)}return a.color;function p(e){return a[e]}function d(e,t){a[e]=t}}var B8=Rv;function j8(e){var t=e&&e.visualMap;Wv(t)||(t=t?[t]:[]),B8(t,(function(e){if(e){F8(e,"splitList")&&!F8(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&Wv(t)&&B8(t,(function(e){Xv(e)&&(F8(e,"start")&&!F8(e,"min")&&(e.min=e.start),F8(e,"end")&&!F8(e,"max")&&(e.max=e.end))}))}}))}function F8(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var G8=!1;function W8(e){G8||(G8=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(P8,R8),Rv(z8,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(j8))}function H8(e){e.registerComponentModel(b8),e.registerComponentView(N8),W8(e)}var U8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return S(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Y8[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var o=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=Av(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=zv(this._pieceList,(function(e){return e=Av(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=jq.listVisualTypes(),o=this.isCategory();function r(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}Rv(t.pieces,(function(e){Rv(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),Rv(n,(function(e,n){var i=!1;Rv(this.stateList,(function(e){i=i||r(t,e,n)||r(t.target,e,n)}),this),!i&&Rv(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=l8(n,"inRange"===e?"active":"inactive",o)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,Rv(i,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var r=!1;Rv(i,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(r?o[n]=!1:r=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Av(e)},t.prototype.getValueState=function(e){var t=jq.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(t,i){jq.findPieceIndex(t,n)===e&&o.push(i)}),this),t.push({seriesId:i.id,dataIndex:o})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var r=o[0].interval[0];r!==-1/0&&o.unshift({interval:[-1/0,r]}),(r=o[o.length-1].interval[1])!==1/0&&o.push({interval:[r,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return Rv(o,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(o,r){var a=i.getRepresentValue({interval:o});r||(r=i.getValueState(a));var s=e(a,r);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:t.push({value:o[0],color:s},{value:o[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=XD(m8.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(m8),Y8={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;t.precision=n,r=+r.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),tS(e),Rv(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;Rv(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),q8(t,e)},pieces:function(e){var t=this.option;Rv(t.pieces,(function(t,n){Xv(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var o=i.value=t.value;i.interval=[o,o],i.close=[1,1]}else{for(var r=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var p=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==r[u];d++)r[u]=t[p[d]],a[u]=s[d],c[u]=2===d;null==r[u]&&(r[u]=l[u])}c[0]&&r[1]===1/0&&(a[0]=0),c[1]&&r[0]===-1/0&&(a[1]=0),"production"!==process.env.NODE_ENV&&r[0]>r[1]&&console.warn("Piece "+n+"is illegal: "+r+" lower bound should not greater then uppper bound."),r[0]===r[1]&&a[0]&&a[1]&&(i.value=r[0])}i.visual=jq.retrieveVisuals(t),e.push(i)}),this),q8(t,e),tS(e),Rv(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function q8(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var X8=U8,$8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return S(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,o=i.getFont(),r=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=ty(t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,a),Rv(l.viewPieceList,(function(i){var l=i.piece,c=new Ew;c.onclick=Fv(this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(c,p,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(p);c.add(new sT({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:o,fill:r,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,a),Yk(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:M8(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return C8(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,o){if(t){var r=new Ew,a=this.visualMapModel.textStyleModel;r.add(new sT({style:_D(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:t})})),e.add(r)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=zv(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return("horizontal"===i?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(fP(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var o=Av(n.selected),r=t.getSelectedMapKey(e);"single"===i||!0===i?(o[r]=!0,Rv(o,(function(e,t){o[t]=t===r}))):o[r]=!o[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(w8),Z8=$8;function K8(e){e.registerComponentModel(X8),e.registerComponentView(Z8),W8(e)}var J8={label:{enabled:!0},decal:{show:!1}},Q8=NS(),e9={};function t9(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=Av(J8);Dv(i.label,e.getLocaleModel().get("aria"),!1),Dv(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=fy();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),Q8(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Hv(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=AE(t.ecModel,t.name,e9,e.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,i))}else{var r=t.getRawData(),a={},s=Q8(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=r.count();r.each((function(e){var i=a[e],o=r.getName(e)||e+"",u=AE(t.ecModel,o,s,l),p=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(p,u))}))}}function c(e,t){var n=e?Ev(Ev({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=Ov(r.option,i),!r.get("enabled"))return;var a=t.getZr().dom;if(r.get("description"))return void a.setAttribute("aria-label",r.get("description"));var s,l=e.getSeriesCount(),c=r.get(["data","maxCount"])||10,u=r.get(["series","maxCount"])||10,p=Math.min(l,u);if(l<1)return;var d=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();s=d?o(r.get(["general","withTitle"]),{title:d}):r.get(["general","withoutTitle"]);var h=[];s+=o(l>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]),{seriesCount:l}),e.eachSeries((function(t,n){if(n<p){var i=void 0,a=t.get("name")?"withName":"withoutName";i=o(i=l>1?r.get(["series","multiple",a]):r.get(["series","single",a]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(x=t.subType,b=e.getLocaleModel().get(["series","typeNames"]),b[x]||b.chart)});var s=t.getData();if(s.count()>c)i+=o(r.get(["data","partialData"]),{displayCnt:c});else i+=r.get(["data","allData"]);for(var u=r.get(["data","separator","middle"]),d=r.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<c){var m=s.getName(g),v=s.getValues(g),y=r.get(["data",m?"withName":"withoutName"]);f.push(o(y,{name:m,value:v.join(u)}))}i+=f.join(u)+d,h.push(i)}var x,b}));var f=r.getModel(["series","multiple","separator"]),g=f.get("middle"),m=f.get("end");s+=h.join(g)+m,a.setAttribute("aria-label",s)}()}function o(e,t){if(!Uv(e))return e;var n=e;return Rv(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}function n9(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},Rv(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}var i9={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},o9=function(){function e(e){if(null==(this._condVal=Uv(e)?new RegExp(e):Qv(e)?e:null)){var t="";"production"!==process.env.NODE_ENV&&(t=gS("Illegal regexp",e,"in")),mS(t)}}return e.prototype.evaluate=function(e){var t=typeof e;return Uv(t)?this._condVal.test(e):!!qv(t)&&this._condVal.test(e+"")},e}(),r9=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),a9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),s9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),l9=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),c9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function u9(e,t){if(!0===e||!1===e){var n=new r9;return n.value=e,n}var i="";return d9(e)||("production"!==process.env.NODE_ENV&&(i=gS("Illegal config. Expect a plain object but actually",e)),mS(i)),e.and?p9("and",e,t):e.or?p9("or",e,t):e.not?function(e,t){var n=e.not,i="";"production"!==process.env.NODE_ENV&&(i=gS('"not" condition should only be `not: {}`.',"Illegal condition:",e));d9(n)||mS(i);var o=new l9;o.child=u9(n,t),o.child||mS(i);return o}(e,t):function(e,t){for(var n="",i=t.prepareGetValue(e),o=[],r=jv(e),a=e.parser,s=a?YO(a):null,l=0;l<r.length;l++){var c=r[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=yy(i9,c)?i9[c]:c,p=e[c],d=s?s(p):p,h=KO(u,d)||"reg"===u&&new o9(d);h||("production"!==process.env.NODE_ENV&&(n=gS('Illegal relational operation: "'+c+'" in condition:',e)),mS(n)),o.push(h)}}o.length||("production"!==process.env.NODE_ENV&&(n=gS("Relational condition must have at least one operator.","Illegal condition:",e)),mS(n));var f=new c9;return f.valueGetterParam=i,f.valueParser=s,f.getValue=t.getValue,f.subCondList=o,f}(e,t)}function p9(e,t,n){var i=t[e],o="";"production"!==process.env.NODE_ENV&&(o=gS('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t)),Wv(i)||mS(o),i.length||mS(o);var r="and"===e?new a9:new s9;return r.children=zv(i,(function(e){return u9(e,n)})),r.children.length||mS(o),r}function d9(e){return Xv(e)&&!Pv(e)}var h9=function(){function e(e,t){this._cond=u9(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var f9={type:"echarts:filter",transform:function(e){for(var t,n,i,o=e.upstream,r=(n=e.config,i={valueGetterAttrMap:fy({dimension:!0}),prepareGetValue:function(e){var t="",n=e.dimension;yy(e,"dimension")||("production"!==process.env.NODE_ENV&&(t=gS('Relation condition must has prop "dimension" specified.',"Illegal condition:",e)),mS(t));var i=o.getDimensionInfo(n);return i||("production"!==process.env.NODE_ENV&&(t=gS("Can not find dimension info via: "+n+".\n","Existing dimensions: ",o.cloneAllDimensionInfo(),".\n","Illegal condition:",e,".\n")),mS(t)),{dimIdx:i.index}},getValue:function(e){return o.retrieveValueFromItem(t,e.dimIdx)}},new h9(n,i)),a=[],s=0,l=o.count();s<l;s++)t=o.getRawDataItem(s),r.evaluate()&&a.push(t);return{data:a}}},g9="";"production"!==process.env.NODE_ENV&&(g9=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var m9={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",o=bS(n);o.length||("production"!==process.env.NODE_ENV&&(i="Empty `config` in sort transform."),mS(i));var r=[];Rv(o,(function(e){var n=e.dimension,o=e.order,a=e.parser,s=e.incomparable;if(null==n&&("production"!==process.env.NODE_ENV&&(i='Sort transform config must has "dimension" specified.'+g9),mS(i)),"asc"!==o&&"desc"!==o&&("production"!==process.env.NODE_ENV&&(i='Sort transform config must has "order" specified.'+g9),mS(i)),s&&"min"!==s&&"max"!==s){var l="";"production"!==process.env.NODE_ENV&&(l='incomparable must be "min" or "max" rather than "'+s+'".'),mS(l)}if("asc"!==o&&"desc"!==o){var c="";"production"!==process.env.NODE_ENV&&(c='order must be "asc" or "desc" rather than "'+o+'".'),mS(c)}var u=t.getDimensionInfo(n);u||("production"!==process.env.NODE_ENV&&(i=gS("Can not find dimension info via: "+n+".\n","Existing dimensions: ",t.cloneAllDimensionInfo(),".\n","Illegal config:",e,".\n")),mS(i));var p=a?YO(a):null;a&&!p&&("production"!==process.env.NODE_ENV&&(i=gS("Invalid parser name "+a+".\n","Illegal config:",e,".\n")),mS(i)),r.push({dimIdx:u.index,parser:p,comparator:new $O(o,s)})}));var a=t.sourceFormat;a!==sE&&a!==lE&&("production"!==process.env.NODE_ENV&&(i='sourceFormat "'+a+'" is not supported yet'),mS(i));for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var v9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return S(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new mL(this),vL(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),vL(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:dE},t}(tE),y9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return S(t,e),t.type="dataset",t}(ZL);var x9=lM.CMD;function b9(e,t){return Math.abs(e-t)<1e-5}function _9(e){var t,n,i,o,r,a=e.data,s=e.len(),l=[],c=0,u=0,p=0,d=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,o){b9(e,i)&&b9(n,o)||t.push(e,n,i,o,i,o)}function g(e,n,i,o,r,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),p=Math.sin(e),d=Math.cos(n),h=Math.sin(n),f=u*r+i,g=p*a+o,m=d*r+i,v=h*a+o,y=r*l*c,x=a*l*c;t.push(f-y*p,g+x*u,m+y*h,v-x*d,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(p=c=a[m],d=u=a[m+1],v!==x9.L&&v!==x9.C&&v!==x9.Q||(t=[p,d])),v){case x9.M:c=p=a[m++],u=d=a[m++],h(p,d);break;case x9.L:f(c,u,n=a[m++],i=a[m++]),c=n,u=i;break;case x9.C:t.push(a[m++],a[m++],a[m++],a[m++],c=a[m++],u=a[m++]);break;case x9.Q:n=a[m++],i=a[m++],o=a[m++],r=a[m++],t.push(c+2/3*(n-c),u+2/3*(i-u),o+2/3*(n-o),r+2/3*(i-r),o,r),c=o,u=r;break;case x9.A:var x=a[m++],b=a[m++],_=a[m++],w=a[m++],S=a[m++],C=a[m++]+S;m+=1;var M=!a[m++];n=Math.cos(S)*_+x,i=Math.sin(S)*w+b,y?h(p=n,d=i):f(c,u,n,i),c=Math.cos(C)*_+x,u=Math.sin(C)*w+b;for(var T=(M?-1:1)*Math.PI/2,I=S;M?I>C:I<C;I+=T){g(I,M?Math.max(I+T,C):Math.min(I+T,C),x,b,_,w)}break;case x9.R:p=c=a[m++],d=u=a[m++],n=p+a[m++],i=d+a[m++],h(n,d),f(n,d,n,i),f(n,i,p,i),f(p,i,p,d),f(p,d,n,d);break;case x9.Z:t&&f(c,u,p,d),c=p,u=d}}return t&&t.length>2&&l.push(t),l}function w9(e,t,n,i,o,r,a,s,l,c){if(b9(e,n)&&b9(t,i)&&b9(o,a)&&b9(r,s))l.push(a,s);else{var u=2/c,p=u*u,d=a-e,h=s-t,f=Math.sqrt(d*d+h*h);d/=f,h/=f;var g=n-e,m=i-t,v=o-a,y=r-s,x=g*g+m*m,b=v*v+y*y;if(x<p&&b<p)l.push(a,s);else{var _=d*g+h*m,w=-d*v-h*y;if(x-_*_<p&&_>=0&&b-w*w<p&&w>=0)l.push(a,s);else{var S=[],C=[];vb(e,n,o,a,.5,S),vb(t,i,r,s,.5,C),w9(S[0],C[0],S[1],C[1],S[2],C[2],S[3],C[3],l,c),w9(S[4],C[4],S[5],C[5],S[6],C[6],S[7],C[7],l,c)}}}}function S9(e,t,n){var i=e[t],o=e[1-t],r=Math.abs(i/o),a=Math.ceil(Math.sqrt(r*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=n-a*s;if(u>0)for(c=0;c<u;c++)l[c%a]+=1;return l}function C9(e,t,n){for(var i=e.r0,o=e.r,r=e.startAngle,a=e.endAngle,s=Math.abs(a-r),l=s*o,c=o-i,u=l>Math.abs(c),p=S9([l,c],u?0:1,t),d=(u?s:c)/p.length,h=0;h<p.length;h++)for(var f=(u?c:s)/p[h],g=0;g<p[h];g++){var m={};u?(m.startAngle=r+d*h,m.endAngle=r+d*(h+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=r+f*g,m.endAngle=r+f*(g+1),m.r0=i+d*h,m.r=i+d*(h+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function M9(e,t,n,i){return e*i-n*t}function T9(e,t,n,i,o,r,a,s){var l=n-e,c=i-t,u=a-o,p=s-r,d=M9(u,p,l,c);if(Math.abs(d)<1e-6)return null;var h=M9(e-o,t-r,u,p)/d;return h<0||h>1?null:new vx(h*l+e,h*c+t)}function I9(e,t,n){var i=new vx;vx.sub(i,n,t),i.normalize();var o=new vx;return vx.sub(o,e,t),o.dot(i)}function A9(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function D9(e){var t=e.points,n=[],i=[];zC(t,n,i);var o=new Ax(n[0],n[1],i[0]-n[0],i[1]-n[1]),r=o.width,a=o.height,s=o.x,l=o.y,c=new vx,u=new vx;return r>a?(c.x=u.x=s+r/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+r),function(e,t,n){for(var i=e.length,o=[],r=0;r<i;r++){var a=e[r],s=e[(r+1)%i],l=T9(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&o.push({projPt:I9(l,t,n),pt:l,idx:r})}if(o.length<2)return[{points:e},{points:e}];o.sort((function(e,t){return e.projPt-t.projPt}));var c=o[0],u=o[o.length-1];if(u.idx<c.idx){var p=c;c=u,u=p}var d=[c.pt.x,c.pt.y],h=[u.pt.x,u.pt.y],f=[d],g=[h];for(r=c.idx+1;r<=u.idx;r++)A9(f,e[r].slice());for(A9(f,h),A9(f,d),r=u.idx+1;r<=c.idx+i;r++)A9(g,e[r%i].slice());return A9(g,d),A9(g,h),[{points:f},{points:g}]}(t,c,u)}function k9(e,t,n,i){if(1===n)i.push(t);else{var o=Math.floor(n/2),r=e(t);k9(e,r[0],o,i),k9(e,r[1],n-o,i)}return i}function E9(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function O9(e,t){var n,i=[],o=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var i=e.width,o=e.height,r=i>o,a=S9([i,o],r?0:1,t),s=r?"width":"height",l=r?"height":"width",c=r?"x":"y",u=r?"y":"x",p=e[s]/a.length,d=0;d<a.length;d++)for(var h=e[l]/a[d],f=0;f<a[d];f++){var g={};g[c]=d*p,g[u]=f*h,g[s]=p,g[l]=h,g.x+=e.x,g.y+=e.y,n.push(g)}}(o,t,i),n=UM;break;case"sector":C9(o,t,i),n=KI;break;case"circle":C9({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},t,i),n=KI;break;default:var r=e.getComputedTransform(),a=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,s=zv(function(e,t){var n=_9(e),i=[];t=t||1;for(var o=0;o<n.length;o++){var r=n[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var c=2;c<r.length;){var u=r[c++],p=r[c++],d=r[c++],h=r[c++],f=r[c++],g=r[c++];w9(s,l,u,p,d,h,f,g,a,t),s=f,l=g}i.push(a)}return i}(e.getUpdatedPathProxy(),a),(function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)})),l=s.length;if(0===l)k9(D9,{points:s[0]},t,i);else if(l===t)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,p=zv(s,(function(e){var t=[],n=[];zC(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return u+=i,{poly:e,area:i}}));p.sort((function(e,t){return t.area-e.area}));var d=t;for(c=0;c<l;c++){var h=p[c];if(d<=0)break;var f=c===l-1?d:Math.ceil(h.area/u*t);f<0||(k9(D9,{points:h.poly},f,i),d-=f)}}n=iA}if(!n)return function(e,t){for(var n=[],i=0;i<t;i++)n.push(DI(e));return n}(e,t);var g=[];for(c=0;c<i.length;c++){var m=new n;m.setShape(i[c]),E9(e,m),g.push(m)}return g}function L9(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var o=[],r=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,p=[a[0],a[1]],d=l,h=2;h<s;){var f=a[h-2],g=a[h-1],m=a[h++],v=a[h++],y=a[h++],x=a[h++],b=a[h++],_=a[h++];if(d<=0)p.push(m,v,y,x,b,_);else{for(var w=Math.min(d,u-1)+1,S=1;S<=w;S++){var C=S/w;vb(f,m,y,b,C,o),vb(g,v,x,_,C,r),f=o[3],g=r[3],p.push(o[1],r[1],o[2],r[2],f,g),m=o[5],v=r[5],y=o[6],x=r[6]}d-=w-1}}return a===e?[p,t]:[e,p]}function N9(e,t){for(var n=e.length,i=e[n-2],o=e[n-1],r=[],a=0;a<t.length;)r[a++]=i,r[a++]=o;return r}function P9(e){for(var t=0,n=0,i=0,o=e.length,r=0,a=o-2;r<o;a=r,r+=2){var s=e[a],l=e[a+1],c=e[r],u=e[r+1],p=s*u-c*l;t+=p,n+=(s+c)*p,i+=(l+u)*p}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function R9(e,t,n,i){for(var o=(e.length-2)/6,r=1/0,a=0,s=e.length,l=s-2,c=0;c<o;c++){for(var u=6*c,p=0,d=0;d<s;d+=2){var h=0===d?u:(u+d-2)%l+2,f=e[h]-n[0],g=e[h+1]-n[1],m=t[d]-i[0]-f,v=t[d+1]-i[1]-g;p+=m*m+v*v}p<r&&(r=p,a=c)}return a}function z9(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function V9(e){return e.__isCombineMorphing}var B9="__mOriginal_";function j9(e,t,n){var i=B9+t,o=e[i]||e[t];e[i]||(e[i]=e[t]);var r=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=r?r.apply(this,t):o.apply(this,t),a&&a.apply(this,t),e}}function F9(e,t){var n=B9+t;e[n]&&(e[t]=e[n],e[n]=null)}function G9(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;){var r=i[o],a=i[o+1];i[o++]=t[0]*r+t[2]*a+t[4],i[o++]=t[1]*r+t[3]*a+t[5]}}function W9(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),o=function(e,t){for(var n,i,o,r=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,p=void 0;l?c?(i=u=(n=L9(l,c))[0],o=p=n[1]):(p=N9(o||l,l),u=l):(u=N9(i||c,c),p=c),r.push(u),a.push(p)}return[r,a]}(_9(n),_9(i)),r=o[0],a=o[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&G9(r,s),l&&G9(a,l),j9(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var c=function(e,t,n,i){for(var o,r=[],a=0;a<e.length;a++){var s=e[a],l=t[a],c=P9(s),u=P9(l);null==o&&(o=c[2]<0!=u[2]<0);var p=[],d=[],h=0,f=1/0,g=[],m=s.length;o&&(s=z9(s));for(var v=6*R9(s,l,c,u),y=m-2,x=0;x<y;x+=2){var b=(v+x)%y+2;p[x+2]=s[b]-c[0],p[x+3]=s[b+1]-c[1]}if(p[0]=s[v]-c[0],p[1]=s[v+1]-c[1],n>0)for(var _=i/n,w=-i/2;w<=i/2;w+=_){var S=Math.sin(w),C=Math.cos(w),M=0;for(x=0;x<s.length;x+=2){var T=p[x],I=p[x+1],A=l[x]-u[0],D=l[x+1]-u[1],k=A*C-D*S,E=A*S+D*C;g[x]=k,g[x+1]=E;var O=k-T,L=E-I;M+=O*O+L*L}if(M<f){f=M,h=w;for(var N=0;N<g.length;N++)d[N]=g[N]}}else for(var P=0;P<m;P+=2)d[P]=l[P]-u[0],d[P+1]=l[P+1]-u[1];r.push({from:p,to:d,fromCp:c,toCp:u,rotation:-h})}return r}(r,a,10,Math.PI),u=[];j9(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,o=[],r=0;r<c.length;r++){var a=c[r],s=a.from,l=a.to,p=a.rotation*n,d=a.fromCp,h=a.toCp,f=Math.sin(p),g=Math.cos(p);Ny(o,d,h,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],x=v*i+(S=l[m])*n,b=y*i+(C=l[m+1])*n;u[m]=x*g-b*f+o[0],u[m+1]=x*f+b*g+o[1]}var _=u[0],w=u[1];e.moveTo(_,w);for(m=2;m<s.length;){var S=u[m++],C=u[m++],M=u[m++],T=u[m++],I=u[m++],A=u[m++];_===S&&w===C&&M===I&&T===A?e.lineTo(I,A):e.bezierCurveTo(S,C,M,T,I,A),_=I,w=A}}}})}function H9(e,t,n){if(!e||!t)return t;var i=n.done,o=n.during;return W9(e,t),t.__morphT=0,t.animateTo({__morphT:1},Ov({during:function(e){t.dirtyShape(),o&&o(e)},done:function(){F9(t,"buildPath"),F9(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function U9(e,t,n,i,o,r){e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=r===i?0:Math.round(32767*(t-i)/(r-i));for(var a,s=0,l=32768;l>0;l/=2){var c=0,u=0;(e&l)>0&&(c=1),(t&l)>0&&(u=1),s+=l*l*(3*c^u),0===u&&(1===c&&(e=l-1-e,t=l-1-t),a=e,e=t,t=a)}return s}function Y9(e){var t=1/0,n=1/0,i=-1/0,o=-1/0,r=zv(e,(function(e){var r=e.getBoundingRect(),a=e.getComputedTransform(),s=r.x+r.width/2+(a?a[4]:0),l=r.y+r.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),o=Math.max(l,o),[s,l]}));return zv(r,(function(r,a){return{cp:r,z:U9(r[0],r[1],t,n,i,o),path:e[a]}})).sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function q9(e){return O9(e.path,e.count)}function X9(e){return Wv(e[0])}function $9(e,t){for(var n=[],i=e.length,o=0;o<i;o++)n.push({one:e[o],many:[]});for(o=0;o<t.length;o++){var r=t[o].length,a=void 0;for(a=0;a<r;a++)n[a%i].many.push(t[o][a])}var s=0;for(o=i-1;o>=0;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var c=Math.ceil(r/2);n[o].many=l.slice(c,r),n[s].many=l.slice(0,c),s++}return n}var Z9={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var o=DI(e.path);o.setStyle("opacity",n),t.push(o)}return t},split:null};function K9(e,t,n,i,o,r){if(e.length&&t.length){var a=NA("update",i,o);if(a&&a.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);X9(e)&&(s=e,l=t),X9(t)&&(s=t,l=e);for(var p=s?s===e:e.length>t.length,d=s?$9(l,s):$9(p?t:e,[p?e:t]),h=0,f=0;f<d.length;f++)h+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)m(d[f],p,g,h),g+=d[f].many.length}}function m(e,t,i,o,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var p=Ov({dividePath:Z9[n],individualDelay:c&&function(e,t,n,r){return c(e+i,o)}},u),d=t?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var o=t[n];V9(o)?e(o.childrenRef()):o instanceof kM&&i.push(o)}}(e);var o=i.length;if(!o)return{fromIndividuals:[],toIndividuals:[],count:0};var r=(n.dividePath||q9)({path:t,count:o});if(r.length!==o)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=Y9(i),r=Y9(r);for(var a=n.done,s=n.during,l=n.individualDelay,c=new lw,u=0;u<o;u++){var p=i[u],d=r[u];d.parent=t,d.copyTransform(c),l||W9(p,d)}function h(e){for(var t=0;t<r.length;t++)r[t].addSelfToZr(e)}function f(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,F9(t,"addSelfToZr"),F9(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return r},j9(t,"addSelfToZr",{after:function(e){h(e)}}),j9(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<r.length;t++)r[t].removeSelfFromZr(e)}});var g=r.length;if(l){var m=g,v=function(){0==--m&&(f(),a&&a())};for(u=0;u<g;u++){var y=l?Ov({delay:(n.delay||0)+l(u,g,i[u],r[u]),done:v},n):n;H9(i[u],r[u],y)}}else t.__morphT=0,t.animateTo({__morphT:1},Ov({during:function(e){for(var n=0;n<g;n++){var i=r[n];i.__morphT=t.__morphT,i.dirtyShape()}s&&s(e)},done:function(){f();for(var t=0;t<e.length;t++)F9(e[t],"updateTransform");a&&a()}},n));return t.__zr&&h(t.__zr),{fromIndividuals:i,toIndividuals:r,count:g}}(s,l,p):function(e,t,n){var i=t.length,o=[],r=n.dividePath||q9;if(V9(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];V9(i)?e(i.childrenRef()):i instanceof kM&&o.push(i)}}(e.childrenRef());var a=o.length;if(a<i)for(var s=0,l=a;l<i;l++)o.push(DI(o[s++%a]));o.length=i}else{o=r({path:e,count:i});var c=e.getComputedTransform();for(l=0;l<o.length;l++)o[l].setLocalTransform(c);if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}o=Y9(o),t=Y9(t);var u=n.individualDelay;for(l=0;l<i;l++){var p=u?Ov({delay:(n.delay||0)+u(l,i,o[l],t[l])},n):n;H9(o[l],t[l],p)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}(l,s,p),h=d.fromIndividuals,f=d.toIndividuals,g=h.length,v=0;v<g;v++){y=c?Ov({delay:c(v,g)},u):u;r(h[v],f[v],t?s[v]:e.one,t?e.one:s[v],y)}else{var y,x=t?s[0]:l,b=t?l:s[0];if(V9(x))m({many:[x],one:b},!0,i,o,!0);else H9(x,b,y=c?Ov({delay:c(i,o)},u):u),r(x,b,x,b,y)}}}function J9(e){if(!e)return[];if(Wv(e)){for(var t=[],n=0;n<e.length;n++)t.push(J9(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof kM&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var Q9=1e4,e7=0,t7=1,n7=2,i7=NS();function o7(e,t,n,i){var o=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var o=e.getDimensionInfo(n[i]);if(o&&0===o.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(o){var r=function(e,t,n){var i=e.getDimensionInfo(n),o=i&&i.ordinalMeta;if(i){var r=e.get(i.name,t);return o&&o.categories[r]||r+""}}(e,t,o);return r}var a=e.getRawDataItem(t),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||e.getId(t)}function r7(e){var t=[];return Rv(e,(function(e){var n=e.data,i=e.dataGroupId;if(n.count()>Q9)"production"!==process.env.NODE_ENV&&pS("Universal transition is disabled on large data > 10k.");else for(var o=n.getIndices(),r=0;r<o.length;r++)t.push({data:n,groupId:o7(n,r,i,!1),childGroupId:o7(n,r,i,!0),divide:e.divide,dataIndex:r})})),t}function a7(e,t,n){e.traverse((function(e){e instanceof kM&&zA(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function s7(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function l7(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function c7(e,t,n){var i=NA("update",n,t);i&&e.traverse((function(e){if(e instanceof AC){var t=function(e){return LA(e).oldStyle}(e);t&&e.animateFrom({style:t},i)}}))}function u7(e,t,n){var i=r7(e),o=r7(t);function r(e,t,n,i,o){(n||e)&&t.animateFrom({style:n&&n!==e?Ev(Ev({},n.style),e.style):e.style},o)}var a=!1,s=e7,l=fy(),c=fy();i.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&c.set(e.childGroupId,!0)}));for(var u=0;u<o.length;u++){var p=o[u].groupId;if(c.get(p)){s=t7;break}var d=o[u].childGroupId;if(d&&l.get(d)){s=n7;break}}function h(e,t){return function(n){var i=n.data,o=n.dataIndex;return t?i.getId(o):e?s===t7?n.childGroupId:n.groupId:s===n7?n.childGroupId:n.groupId}}var f=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var o=e[i],r=t[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}(i,o),g={};if(!f)for(u=0;u<o.length;u++){var m=o[u],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function y(e,t){var n=i[t],s=o[e],l=s.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);c!==u?c&&g[c.id]||u&&(l7(u),c?(l7(c),s7(c),a=!0,K9(J9(c),J9(u),s.divide,l,e,r)):a7(u,l,e)):u&&c7(u,s.dataIndex,l)}new az(i,o,h(!0,f),h(!1,f),null,"multiple").update(y).updateManyToOne((function(e,t){var n=o[e],s=n.data,l=s.hostModel,c=s.getItemGraphicEl(n.dataIndex),u=Bv(zv(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==c&&!g[e.id]}));c&&(l7(c),u.length?(Rv(u,(function(e){l7(e),s7(e)})),a=!0,K9(J9(u),J9(c),n.divide,l,e,r)):a7(c,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Bv(zv(e,(function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)})),(function(e){return e&&e!==s})),c=o[e[0]].data.hostModel;l.length&&(Rv(l,(function(e){return l7(e)})),s?(l7(s),s7(s),a=!0,K9(J9(s),J9(l),n.divide,c,e[0],r)):Rv(l,(function(t){return a7(t,c,e[0])})))}})).updateManyToMany((function(e,t){new az(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return o[e].data.getId(o[e].dataIndex)})).update((function(n,i){y(e[n],t[i])})).execute()})).execute(),a&&Rv(t,(function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),o=NA("update",t,0);i&&t.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(e){e instanceof kM&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function p7(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function d7(e){return Wv(e)?e.sort().join(","):e}function h7(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function f7(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}nz([function(e){e.registerPainter("canvas",NF)}]),nz([function(e){e.registerPainter("svg",TF)}]),nz([function(e){e.registerChartView(vG),e.registerSeriesModel(RF),e.registerLayout(yG("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_G("line"))},function(e){e.registerChartView(XG),e.registerSeriesModel(CG),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Gv(hV,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,fV("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_G("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},function(e){e.registerChartView(lW),e.registerSeriesModel(fW),eP("pie",e.registerAction),e.registerLayout(Gv(QG,"pie")),e.registerProcessor(eW("pie")),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(qv(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},function(e){nz(yH),e.registerSeriesModel(mW),e.registerChartView(_W),e.registerLayout(yG("scatter"))},function(e){nz(VH),e.registerChartView(CH),e.registerSeriesModel(TH),e.registerLayout(xH),e.registerProcessor(eW("radar")),e.registerPreprocessor(wH)},function(e){nz(vY),e.registerChartView(XU),e.registerSeriesModel(ZU),e.registerLayout(JU),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KU),eP("map",e.registerAction)},function(e){e.registerChartView(RY),e.registerSeriesModel(QY),e.registerLayout(tq),e.registerVisual(nq),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=hY(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}(e)},function(e){e.registerSeriesModel(sq),e.registerChartView(Cq),e.registerVisual(Gq),e.registerLayout(tX),function(e){for(var t=0;t<iq.length;t++)e.registerAction({type:iq[t],update:"updateView"},xy);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var i=XY(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var o=t.getViewRoot();o&&(e.direction=ZY(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))}))}(e)},function(e){e.registerChartView(a$),e.registerSeriesModel(f$),e.registerProcessor(sX),e.registerVisual(lX),e.registerVisual(uX),e.registerLayout(wX),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,kX),e.registerLayout(OX),e.registerCoordinateSystem("graphView",{dimensions:eY.dimensions,create:LX}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},xy),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},xy),e.registerAction(g$,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=hY(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},function(e){e.registerChartView(b$),e.registerSeriesModel(_$)},function(e){e.registerChartView(M$),e.registerSeriesModel(I$),e.registerLayout(A$),e.registerProcessor(eW("funnel"))},function(e){nz(pK),e.registerChartView(N$),e.registerSeriesModel(z$),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,j$)},function(e){e.registerChartView(mK),e.registerSeriesModel(yK),e.registerLayout(xK),e.registerVisual(EK),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(NK),e.registerChartView(FK),e.registerLayout(WK),e.registerTransform(HK)},function(e){e.registerChartView(iJ),e.registerSeriesModel(rJ),e.registerPreprocessor(aJ),e.registerVisual(hJ),e.registerLayout(mJ)},function(e){e.registerChartView(_J),e.registerSeriesModel(SJ),e.registerLayout(yG("effectScatter"))},function(e){e.registerChartView(RJ),e.registerSeriesModel(FJ),e.registerLayout(NJ),e.registerVisual(HJ)},function(e){e.registerChartView($J),e.registerSeriesModel(ZJ)},function(e){e.registerChartView(yQ),e.registerSeriesModel(xQ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Gv(hV,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,fV("pictorialBar"))},function(e){e.registerChartView(_Q),e.registerSeriesModel(SQ),e.registerLayout(CQ),e.registerProcessor(eW("themeRiver"))},function(e){e.registerChartView(EQ),e.registerSeriesModel(NQ),e.registerLayout(Gv(RQ,"sunburst")),e.registerProcessor(Gv(eW,"sunburst")),e.registerVisual(VQ),function(e){e.registerAction({type:IQ,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var i=XY(e,[IQ],t);if(i){var o=t.getViewRoot();o&&(e.direction=ZY(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))})),e.registerAction({type:AQ,update:"none"},(function(e,t,n){e=Ev({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=XY(e,[AQ],t);n&&(e.dataIndex=n.node.dataIndex)})),"production"!==process.env.NODE_ENV&&fS("sunburstHighlight","highlight"),n.dispatchAction(Ev(e,{type:"highlight"}))})),e.registerAction({type:DQ,update:"updateView"},(function(e,t,n){e=Ev({},e),"production"!==process.env.NODE_ENV&&fS("sunburstUnhighlight","downplay"),n.dispatchAction(Ev(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(z0),e.registerSeriesModel(GQ)}]),nz((function(e){nz(yH),nz(F1)})),nz((function(e){nz(F1),aH.registerAxisPointerClass("PolarAxisPointer",H1),e.registerCoordinateSystem("polar",r2),e.registerComponentModel(U1),e.registerComponentView(S2),DW(e,"angle",q1,_2),DW(e,"radius",X1,w2),e.registerComponentView(d2),e.registerComponentView(v2),e.registerLayout(Gv(b2,"bar"))})),nz(vY),nz((function(e){nz(F1),aH.registerAxisPointerClass("SingleAxisPointer",H2),e.registerComponentView(U2),e.registerComponentView(D2),e.registerComponentModel(E2),DW(e,"single",E2,E2.defaultOption),e.registerCoordinateSystem("single",z2)})),nz(pK),nz((function(e){e.registerComponentModel(q2),e.registerComponentView($2),e.registerCoordinateSystem("calendar",Q2)})),nz((function(e){e.registerComponentModel(o5),e.registerComponentView(s5),e.registerPreprocessor((function(e){var t=e.graphic;Wv(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))})),nz((function(e){e.registerComponentModel(N5),e.registerComponentView(z5),O5("saveAsImage",B5),O5("magicType",H5),O5("dataView",J5),O5("dataZoom",C3),O5("restore",i3),nz(D5)})),nz((function(e){nz(F1),e.registerComponentModel(M3),e.registerComponentView(q3),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},xy),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},xy)})),nz(F1),nz((function(e){e.registerComponentView(d4),e.registerComponentModel(f4),e.registerPreprocessor($3),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,s4),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},xy),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},xy),O5("brush",m4)})),nz((function(e){e.registerComponentModel(v4),e.registerComponentView(y4)})),nz((function(e){e.registerComponentModel(_4),e.registerComponentView(k4),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ov({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(E4)})),nz((function(e){e.registerComponentModel(B4),e.registerComponentView(J4),e.registerPreprocessor((function(e){N4(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),nz((function(e){e.registerComponentModel(Q4),e.registerComponentView(s6),e.registerPreprocessor((function(e){N4(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),nz((function(e){e.registerComponentModel(l6),e.registerComponentView(v6),e.registerPreprocessor((function(e){N4(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),nz((function(e){nz(E6),nz(B6)})),nz((function(e){nz(K6),nz(s8)})),nz(K6),nz(s8),nz((function(e){nz(H8),nz(K8)})),nz(H8),nz(K8),nz((function(e){e.registerPreprocessor(n9),e.registerVisual(e.PRIORITY.VISUAL.ARIA,t9)})),nz((function(e){e.registerTransform(f9),e.registerTransform(m9)})),nz((function(e){e.registerComponentModel(v9),e.registerComponentView(y9)})),nz((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Rv(bS(n.seriesTransition),(function(e){Rv(bS(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][BL]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=i7(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)Rv(bS(o),(function(e){!function(e,t,n,i){var o=[],r=[];Rv(bS(e.from),(function(e){var n=f7(t.oldSeries,e);n>=0&&o.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:h7(t.oldData[n]),groupIdDim:e.dimension})})),Rv(bS(e.to),(function(e){var i=f7(n.updatedSeries,e);if(i>=0){var o=n.updatedSeries[i].getData();r.push({dataGroupId:t.oldDataGroupIds[i],data:o,divide:h7(o),groupIdDim:e.dimension})}})),o.length>0&&r.length>0&&u7(o,r,i)}(e,i,n,t)}));else{var r=function(e,t){var n=fy(),i=fy(),o=fy();function r(e){n.get(e)&&pS("Duplicated seriesKey in universalTransition "+e)}return Rv(e.oldSeries,(function(t,n){var r=e.oldDataGroupIds[n],a=e.oldData[n],s=p7(t),l=d7(s);i.set(l,{dataGroupId:r,data:a}),Wv(s)&&Rv(s,(function(e){o.set(e,{key:l,dataGroupId:r,data:a})}))})),Rv(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),s=p7(e),l=d7(s),c=i.get(l);if(c)"production"!==process.env.NODE_ENV&&r(l),n.set(l,{oldSeries:[{dataGroupId:c.dataGroupId,divide:h7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:h7(a),data:a}]});else if(Wv(s)){"production"!==process.env.NODE_ENV&&r(l);var u=[];Rv(s,(function(e){var t=i.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:h7(t.data),data:t.data})})),u.length&&n.set(l,{oldSeries:u,newSeries:[{dataGroupId:t,data:a,divide:h7(a)}]})}else{var p=o.get(s);if(p){var d=n.get(p.key);d||(d={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:h7(p.data)}],newSeries:[]},n.set(p.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:h7(a)})}}}})),n}(i,n);Rv(r.keys(),(function(e){var n=r.get(e);u7(n.oldSeries,n.newSeries,t)}))}Rv(n.updatedSeries,(function(e){e[BL]&&(e[BL]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<a.length;u++){var p=a[u].getData();p.count()<Q9&&(s.push(a[u]),l.push(a[u].get("dataGroupId")),c.push(p))}}))})),nz((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=lj(t).labelManager;i||(i=lj(t).labelManager=new sj),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=lj(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}));const g7=e=>{const t=(e=>{const{data:t,extraData:n,sort:i}=e;if(t&&i){const a=(o=[...t],"asc"===(r=i)?o.sort(((e,t)=>e.value-t.value)):"desc"===r&&o.sort(((e,t)=>t.value-e.value)),o),s=ev(a.map((e=>e.label))),l=ov(a,s),c=ov([...n??[]],s);return{...e,data:l,extraData:c}}var o,r;return e})(e);switch(t.chartType){case exports.WinChartType.MINI_AREA:return(e=>{const t=ev(e.data?.map((e=>e.type))),n=e.color;return{color:n,grid:{top:4,left:0,right:0,bottom:0,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{show:!1},xAxis:{show:!1,boundaryGap:!1,data:ev(e.data?.map((e=>e.label)))},yAxis:{show:!1,min:e.yStart?.[0]},series:[...t.map(((t,i)=>({name:t,type:"line",smooth:!0,lineStyle:{width:2},showSymbol:!1,areaStyle:{opacity:.8,color:new _A(0,0,0,1,[{offset:0,color:$n(n?.[i]??xn[i],.5)},{offset:1,color:"#fff"}])},emphasis:{focus:"series"},data:e.data?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case exports.WinChartType.AREA:return(e=>{const t=ev(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:iv(e),yAxis:{min:e.yStart?.[0]},series:[...t.map(((t,n)=>({name:t,type:"line",smooth:!0,lineStyle:{width:2},showSymbol:!1,areaStyle:{opacity:.8,color:new _A(0,0,0,1,[{offset:0,color:$n(xn[n],.5)},{offset:1,color:"#fff"}])},emphasis:{focus:"series"},data:e.data?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case exports.WinChartType.LINE:return(e=>{const t=ev(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:iv(e),yAxis:{min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"line",smooth:!1,lineStyle:{width:2},showSymbol:!0,emphasis:{focus:"series"},data:e.data?.filter((e=>e.type===t)).map((e=>e.value))})))}})(t);case exports.WinChartType.COLUMN:return(e=>{const t=ev(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...iv(e),axisPointer:{type:"shadow"}},yAxis:{min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value,itemStyle:{borderRadius:e.value>0?[500,500,0,0]:[0,0,500,500]}})))})))}})(t);case exports.WinChartType.STACK_COLUMN:return(e=>{const t=ev(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...iv(e),axisPointer:{type:"shadow"}},yAxis:{min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"bar",stack:"total",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value})))})))}})(t);case exports.WinChartType.BAR:return(e=>{const t=ev(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{},yAxis:{data:ev(e.data?.map((e=>e.label))),axisTick:{alignWithLabel:!0},axisPointer:{type:"shadow"},min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value,itemStyle:{borderRadius:[0,500,500,0]}})))})))}})(t);case exports.WinChartType.FUNNEL:return(e=>{const t=nv(e.data)?.map((e=>({value:e.value??0,name:e.type})))??[],n={type:"funnel",minSize:"20%",left:10,top:24,width:"76%",sort:"descending",data:t};return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{...n,label:{show:!0,position:"outer",formatter:"{c}"}},{...n,emphasis:{label:{fontSize:20}},label:{show:!0,position:"inner",color:"#fff",formatter:e=>{const n=e.dataIndex;if(0===n)return"100%";const i=t[n-1].value;return Qm(e.value/i)}}}]}})(t);case exports.WinChartType.DUAL_LINE_BAR:return(e=>{const t=ev(e.data?.map((e=>e.type))),n=ev(e.extraData?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...iv(e),axisPointer:{type:"shadow"}},yAxis:[{alignTicks:!0,min:e.yStart?.[0]},{alignTicks:!0,min:e.yStart?.[1]}],series:[...t.map((t=>({name:t,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value,itemStyle:{borderRadius:e.value>0?[500,500,0,0]:[0,0,500,500]}})))}))),...n.map((t=>({name:t,type:"line",smooth:!0,yAxisIndex:1,showSymbol:!1,data:e.extraData?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case exports.WinChartType.STACK_DUAL_LINE_BAR:return(e=>{const t=ev(e.data?.map((e=>e.type))),n=ev(e.extraData?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...iv(e),axisPointer:{type:"shadow"}},yAxis:[{alignTicks:!0,min:e.yStart?.[0]},{alignTicks:!0,min:e.yStart?.[1]}],series:[...t.map((t=>({name:t,type:"bar",stack:"total",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value})))}))),...n.map((t=>({name:t,type:"line",smooth:!0,yAxisIndex:1,showSymbol:!1,data:e.extraData?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case exports.WinChartType.PIE:return(e=>{const t=tv(e.data?.map((e=>e.value)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{top:-30,type:"pie",radius:"50%",data:nv(e.data)?.map((t=>({value:t.value,name:e.reserveValueWithLabelType?t.label:t.type}))),label:{show:!0,fontSize:12,color:"rgba(0, 0, 0, 0.7)",position:"outside",formatter:e=>Qm(e.value/t||1)},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}})(t);case exports.WinChartType.CYCLE:return(e=>{const t=tv(e.data?.map((e=>e.value)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{top:-30,type:"pie",radius:["60%","48%"],data:nv(e.data)?.map((t=>({value:t.value,name:e.reserveValueWithLabelType?t.label:t.type}))),label:{show:!0,fontSize:12,color:"rgba(0, 0, 0, 0.7)",position:"outside",formatter:e=>Qm(e.value/t||1)},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],graphic:[{type:"text",left:"center",top:76,style:{text:Number(t.toFixed(2)).toString(),fill:"rgba(0, 0, 0, .7)",fontSize:28,fontWeight:"bold"}},{type:"text",left:"center",top:112,style:{text:"总计",fill:"#828B9E",fontSize:12,fontWeight:"bold"}}]}})(t);case exports.WinChartType.RADAR:return(e=>{const t=ev(e.data?.map((t=>e.reserveValueWithLabelType?t.label:t.type)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},radar:{shape:"circle",radius:"60%",indicator:ev(e.data?.map((t=>e.reserveValueWithLabelType?t.type:t.label))).map((e=>({name:e}))),axisName:{color:"#5d677a"},splitArea:{areaStyle:{color:["transparent"]}},axisLine:{lineStyle:{color:"rgba(226, 229, 235, .3)"}},splitLine:{lineStyle:{color:"#e2e5eb",type:"dashed",dashOffset:1.5}}},series:[{type:"radar",data:t.map(((t,n)=>({name:t,value:e.data?.filter((n=>e.reserveValueWithLabelType?n.label:n.type===t)).map((e=>e.value)),areaStyle:{color:$n(xn[n],.2)},label:{show:e.reserveValueWithLabelType,formatter:e=>e.value?.toString()}}))),emphasis:{lineStyle:{width:4}}}]}})(t);default:return{}}};var m7={color:["#3379ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],backgroundColor:"rgba(0,0,0,0)",textStyle:{},title:{textStyle:{color:"#272f3d"},subtextStyle:{color:"#394252"}},line:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},radar:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},bar:{itemStyle:{barBorderWidth:"0",barBorderColor:"#cccccc"}},pie:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},scatter:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},boxplot:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},parallel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},sankey:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},funnel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},gauge:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},candlestick:{itemStyle:{color:"#f15451",color0:"#00c267",borderColor:"#f15451",borderColor0:"#00c267",borderWidth:1}},graph:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"},lineStyle:{width:"1",color:"#dfe3eb"},symbolSize:4,symbol:"emptyCircle",smooth:!1,color:["#3379ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],label:{color:"#ffffff"}},map:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},geo:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#eef0f5"}},axisTick:{show:!0,lineStyle:{color:"#eef0f5"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!0,lineStyle:{color:["#eef0f5"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},logAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!0,lineStyle:{color:["#eef0f5"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#eef0f5"}},axisTick:{show:!0,lineStyle:{color:"#eef0f5"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},toolbox:{iconStyle:{borderColor:"#828c9e"},emphasis:{iconStyle:{borderColor:"#394252"}}},legend:{textStyle:{color:"#828b9e"}},tooltip:{axisPointer:{lineStyle:{color:"#ccd1db",width:"1"},crossStyle:{color:"#ccd1db",width:"1"}}},timeline:{lineStyle:{color:"#eef0f5",width:2},itemStyle:{color:"#eef0f5",borderWidth:"1"},controlStyle:{color:"#828c9e",borderColor:"#828c9e",borderWidth:1},checkpointStyle:{color:"#3379ff",borderColor:"#ffffff"},label:{color:"#b1b9c7"},emphasis:{itemStyle:{color:"#3379ff"},controlStyle:{color:"#828c9e",borderColor:"#828c9e",borderWidth:1},label:{color:"#b1b9c7"}}},visualMap:{color:["#062379","#2058d2","#3379ff","#a0cbff","#e8f4ff"]},dataZoom:{handleSize:"undefined%",textStyle:{}},markPoint:{label:{color:"#ffffff"},emphasis:{label:{color:"#ffffff"}}}},v7={color:["#5798ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],backgroundColor:"rgba(100,116,146,1)",textStyle:{},title:{textStyle:{color:"#ffffff"},subtextStyle:{color:"#ffffff"}},line:{itemStyle:{borderWidth:"1"},lineStyle:{width:"2"},symbolSize:"6",symbol:"emptyCircle",smooth:!0},radar:{itemStyle:{borderWidth:"1"},lineStyle:{width:"2"},symbolSize:"6",symbol:"emptyCircle",smooth:!0},bar:{itemStyle:{barBorderWidth:"0",barBorderColor:"#cccccc"}},pie:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},scatter:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},boxplot:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},parallel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},sankey:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},funnel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},gauge:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},candlestick:{itemStyle:{color:"#f15451",color0:"#00c267",borderColor:"#f15451",borderColor0:"#00c267",borderWidth:1}},graph:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"6",symbol:"emptyCircle",smooth:!0,color:["#5798ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],label:{color:"#ffffff"}},map:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},geo:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!0,lineStyle:{color:["rgba(255,255,255,0.12)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},logAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!0,lineStyle:{color:["rgba(255,255,255,0.12)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},toolbox:{iconStyle:{borderColor:"#ffffff"},emphasis:{iconStyle:{borderColor:"#ffffff"}}},legend:{textStyle:{color:"#ffffff"}},tooltip:{axisPointer:{lineStyle:{color:"#ffffff",width:"1"},crossStyle:{color:"#ffffff",width:"1"}}},timeline:{lineStyle:{color:"#ffffff",width:2},itemStyle:{color:"#ffffff",borderWidth:"1"},controlStyle:{color:"#ffffff",borderColor:"#ffffff",borderWidth:1},checkpointStyle:{color:"#5798ff",borderColor:"#ffffff"},label:{color:"#ffffff"},emphasis:{itemStyle:{color:"#5798ff"},controlStyle:{color:"#ffffff",borderColor:"#ffffff",borderWidth:1},label:{color:"#ffffff"}}},visualMap:{color:["#062379","#2058d2","#3379ff","#a0cbff","#e8f4ff"]},dataZoom:{handleSize:"undefined%",textStyle:{}},markPoint:{label:{color:"#ffffff"},emphasis:{label:{color:"#ffffff"}}}},y7=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===x7}(e)}(e)};var x7="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function b7(e,t){return!1!==t.clone&&t.isMergeableObject(e)?M7((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function _7(e,t,n){return e.concat(t).map((function(e){return b7(e,n)}))}function w7(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function S7(e,t){try{return t in e}catch(e){return!1}}function C7(e,t,n){var i={};return n.isMergeableObject(e)&&w7(e).forEach((function(t){i[t]=b7(e[t],n)})),w7(t).forEach((function(o){(function(e,t){return S7(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(S7(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return M7;var n=t.customMerge(e);return"function"==typeof n?n:M7}(o,n)(e[o],t[o],n):i[o]=b7(t[o],n))})),i}function M7(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||_7,n.isMergeableObject=n.isMergeableObject||y7,n.cloneUnlessOtherwiseSpecified=b7;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):C7(e,t,n):b7(t,n)}M7.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return M7(e,n,t)}),{})};var T7=g(M7);HR("light",T7(m7,bn)),HR("dark",T7(v7,bn));const I7=({className:t,style:n,extraOption:i,theme:o="light",...r})=>{const a=e.useRef(null),[s,l]=e.useState(),c=JSON.stringify(r),u=JSON.stringify(i??{});return e.useEffect((()=>{const e=WR(a.current,o);l(e);const t=function(e,t){let n=null;return function(...i){clearTimeout(n),n=setTimeout((()=>{e.apply(globalThis,i)}),t)}}(e.resize,500);globalThis.addEventListener("resize",(()=>{t()}))}),[o]),e.useEffect((()=>{if(s){const e=JSON.parse(c);s.setOption(T7(((e,t)=>{const{series:n}=e;return Jm(n)&&Jm(t)&&t.forEach((e=>{n.forEach((t=>({...t,...t.name===e.name&&e})))})),e})(g7(e),e.extraSeriesOption),JSON.parse(u))),setTimeout((()=>{s.resize()}),500)}}),[c,s,u]),_.jsx(fn,{ref:a,className:t,style:n})};var A7=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e};var D7=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(r[l],l,r))break}return t}},k7=D7();var E7=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},O7="object"==typeof f&&f&&f.Object===Object&&f,L7=O7,N7="object"==typeof self&&self&&self.Object===Object&&self,P7=L7||N7||Function("return this")(),R7=P7.Symbol,z7=R7,V7=Object.prototype,B7=V7.hasOwnProperty,j7=V7.toString,F7=z7?z7.toStringTag:void 0;var G7=function(e){var t=B7.call(e,F7),n=e[F7];try{e[F7]=void 0;var i=!0}catch(e){}var o=j7.call(e);return i&&(t?e[F7]=n:delete e[F7]),o},W7=Object.prototype.toString;var H7=G7,U7=function(e){return W7.call(e)},Y7=R7?R7.toStringTag:void 0;var q7=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y7&&Y7 in Object(e)?H7(e):U7(e)};var X7=function(e){return null!=e&&"object"==typeof e},$7=q7,Z7=X7;var K7=function(e){return Z7(e)&&"[object Arguments]"==$7(e)},J7=X7,Q7=Object.prototype,eee=Q7.hasOwnProperty,tee=Q7.propertyIsEnumerable,nee=K7(function(){return arguments}())?K7:function(e){return J7(e)&&eee.call(e,"callee")&&!tee.call(e,"callee")},iee=Array.isArray,oee={exports:{}};var ree=function(){return!1};!function(e,t){var n=P7,i=ree,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(oee,oee.exports);var aee=oee.exports,see=/^(?:0|[1-9]\d*)$/;var lee=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&see.test(e))&&e>-1&&e%1==0&&e<t};var cee=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},uee=q7,pee=cee,dee=X7,hee={};hee["[object Float32Array]"]=hee["[object Float64Array]"]=hee["[object Int8Array]"]=hee["[object Int16Array]"]=hee["[object Int32Array]"]=hee["[object Uint8Array]"]=hee["[object Uint8ClampedArray]"]=hee["[object Uint16Array]"]=hee["[object Uint32Array]"]=!0,hee["[object Arguments]"]=hee["[object Array]"]=hee["[object ArrayBuffer]"]=hee["[object Boolean]"]=hee["[object DataView]"]=hee["[object Date]"]=hee["[object Error]"]=hee["[object Function]"]=hee["[object Map]"]=hee["[object Number]"]=hee["[object Object]"]=hee["[object RegExp]"]=hee["[object Set]"]=hee["[object String]"]=hee["[object WeakMap]"]=!1;var fee=function(e){return dee(e)&&pee(e.length)&&!!hee[uee(e)]};var gee=function(e){return function(t){return e(t)}},mee={exports:{}};!function(e,t){var n=O7,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=a}(mee,mee.exports);var vee=mee.exports,yee=fee,xee=gee,bee=vee&&vee.isTypedArray,_ee=bee?xee(bee):yee,wee=E7,See=nee,Cee=iee,Mee=aee,Tee=lee,Iee=_ee,Aee=Object.prototype.hasOwnProperty;var Dee=function(e,t){var n=Cee(e),i=!n&&See(e),o=!n&&!i&&Mee(e),r=!n&&!i&&!o&&Iee(e),a=n||i||o||r,s=a?wee(e.length,String):[],l=s.length;for(var c in e)!t&&!Aee.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Tee(c,l))||s.push(c);return s},kee=Object.prototype;var Eee=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||kee)};var Oee=function(e,t){return function(n){return e(t(n))}},Lee=Oee(Object.keys,Object),Nee=Eee,Pee=Lee,Ree=Object.prototype.hasOwnProperty;var zee=function(e){if(!Nee(e))return Pee(e);var t=[];for(var n in Object(e))Ree.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Vee=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Bee=q7,jee=Vee;var Fee=function(e){if(!jee(e))return!1;var t=Bee(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Gee=Fee,Wee=cee;var Hee=function(e){return null!=e&&Wee(e.length)&&!Gee(e)},Uee=Dee,Yee=zee,qee=Hee;var Xee=function(e){return qee(e)?Uee(e):Yee(e)},$ee=k7,Zee=Xee;var Kee=function(e,t){return e&&$ee(e,t,Zee)},Jee=Hee;var Qee=function(e,t){return function(n,i){if(null==n)return n;if(!Jee(n))return e(n,i);for(var o=n.length,r=t?o:-1,a=Object(n);(t?r--:++r<o)&&!1!==i(a[r],r,a););return n}},ete=Qee(Kee);var tte=function(e){return e},nte=tte;var ite=A7,ote=ete,rte=function(e){return"function"==typeof e?e:nte},ate=iee;var ste=function(e,t){return(ate(e)?ite:ote)(e,rte(t))},lte=g(ste),cte=P7["__core-js_shared__"],ute=function(){var e=/[^.]+$/.exec(cte&&cte.keys&&cte.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var pte=function(e){return!!ute&&ute in e},dte=Function.prototype.toString;var hte=function(e){if(null!=e){try{return dte.call(e)}catch(e){}try{return e+""}catch(e){}}return""},fte=Fee,gte=pte,mte=Vee,vte=hte,yte=/^\[object .+?Constructor\]$/,xte=Function.prototype,bte=Object.prototype,_te=xte.toString,wte=bte.hasOwnProperty,Ste=RegExp("^"+_te.call(wte).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Cte=function(e,t){return null==e?void 0:e[t]},Mte=function(e){return!(!mte(e)||gte(e))&&(fte(e)?Ste:yte).test(vte(e))},Tte=Cte;var Ite=function(e,t){var n=Tte(e,t);return Mte(n)?n:void 0},Ate=Ite,Dte=function(){try{var e=Ate(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),kte=Dte;var Ete=function(e,t,n){"__proto__"==t&&kte?kte(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ote=function(){this.__data__=[],this.size=0};var Lte=function(e,t){return e===t||e!=e&&t!=t},Nte=Lte;var Pte=function(e,t){for(var n=e.length;n--;)if(Nte(e[n][0],t))return n;return-1},Rte=Pte,zte=Array.prototype.splice;var Vte=function(e){var t=this.__data__,n=Rte(t,e);return!(n<0)&&(n==t.length-1?t.pop():zte.call(t,n,1),--this.size,!0)},Bte=Pte;var jte=function(e){var t=this.__data__,n=Bte(t,e);return n<0?void 0:t[n][1]},Fte=Pte;var Gte=function(e){return Fte(this.__data__,e)>-1},Wte=Pte;var Hte=function(e,t){var n=this.__data__,i=Wte(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Ute=Ote,Yte=Vte,qte=jte,Xte=Gte,$te=Hte;function Zte(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Zte.prototype.clear=Ute,Zte.prototype.delete=Yte,Zte.prototype.get=qte,Zte.prototype.has=Xte,Zte.prototype.set=$te;var Kte=Zte,Jte=Kte;var Qte=function(){this.__data__=new Jte,this.size=0};var ene=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var tne=function(e){return this.__data__.get(e)};var nne=function(e){return this.__data__.has(e)},ine=Ite(P7,"Map"),one=Ite(Object,"create"),rne=one;var ane=function(){this.__data__=rne?rne(null):{},this.size=0};var sne=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},lne=one,cne=Object.prototype.hasOwnProperty;var une=function(e){var t=this.__data__;if(lne){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return cne.call(t,e)?t[e]:void 0},pne=one,dne=Object.prototype.hasOwnProperty;var hne=function(e){var t=this.__data__;return pne?void 0!==t[e]:dne.call(t,e)},fne=one;var gne=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fne&&void 0===t?"__lodash_hash_undefined__":t,this},mne=ane,vne=sne,yne=une,xne=hne,bne=gne;function _ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}_ne.prototype.clear=mne,_ne.prototype.delete=vne,_ne.prototype.get=yne,_ne.prototype.has=xne,_ne.prototype.set=bne;var wne=_ne,Sne=Kte,Cne=ine;var Mne=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Tne=function(e,t){var n=e.__data__;return Mne(t)?n["string"==typeof t?"string":"hash"]:n.map},Ine=Tne;var Ane=function(e){var t=Ine(this,e).delete(e);return this.size-=t?1:0,t},Dne=Tne;var kne=function(e){return Dne(this,e).get(e)},Ene=Tne;var One=function(e){return Ene(this,e).has(e)},Lne=Tne;var Nne=function(e,t){var n=Lne(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Pne=function(){this.size=0,this.__data__={hash:new wne,map:new(Cne||Sne),string:new wne}},Rne=Ane,zne=kne,Vne=One,Bne=Nne;function jne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}jne.prototype.clear=Pne,jne.prototype.delete=Rne,jne.prototype.get=zne,jne.prototype.has=Vne,jne.prototype.set=Bne;var Fne=jne,Gne=Kte,Wne=ine,Hne=Fne;var Une=function(e,t){var n=this.__data__;if(n instanceof Gne){var i=n.__data__;if(!Wne||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hne(i)}return n.set(e,t),this.size=n.size,this},Yne=Kte,qne=Qte,Xne=ene,$ne=tne,Zne=nne,Kne=Une;function Jne(e){var t=this.__data__=new Yne(e);this.size=t.size}Jne.prototype.clear=qne,Jne.prototype.delete=Xne,Jne.prototype.get=$ne,Jne.prototype.has=Zne,Jne.prototype.set=Kne;var Qne=Jne;var eie=Fne,tie=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},nie=function(e){return this.__data__.has(e)};function iie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new eie;++t<n;)this.add(e[t])}iie.prototype.add=iie.prototype.push=tie,iie.prototype.has=nie;var oie=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1};var rie=function(e,t){return e.has(t)},aie=iie,sie=oie,lie=rie;var cie=function(e,t,n,i,o,r){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=r.get(e),u=r.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,h=2&n?new aie:void 0;for(r.set(e,t),r.set(t,e);++p<s;){var f=e[p],g=t[p];if(i)var m=a?i(g,f,p,t,e,r):i(f,g,p,e,t,r);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!sie(t,(function(e,t){if(!lie(h,t)&&(f===e||o(f,e,n,i,r)))return h.push(t)}))){d=!1;break}}else if(f!==g&&!o(f,g,n,i,r)){d=!1;break}}return r.delete(e),r.delete(t),d},uie=P7.Uint8Array;var pie=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var die=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},hie=uie,fie=Lte,gie=cie,mie=pie,vie=die,yie=R7?R7.prototype:void 0,xie=yie?yie.valueOf:void 0;var bie=function(e,t,n,i,o,r,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new hie(e),new hie(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fie(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=mie;case"[object Set]":var l=1&i;if(s||(s=vie),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=2,a.set(e,t);var u=gie(s(e),s(t),i,o,r,a);return a.delete(e),u;case"[object Symbol]":if(xie)return xie.call(e)==xie.call(t)}return!1};var _ie=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e},wie=_ie,Sie=iee;var Cie=function(e,t,n){var i=t(e);return Sie(e)?i:wie(i,n(e))};var Mie=function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var a=e[n];t(a,n,e)&&(r[o++]=a)}return r};var Tie=Mie,Iie=function(){return[]},Aie=Object.prototype.propertyIsEnumerable,Die=Object.getOwnPropertySymbols,kie=Cie,Eie=Die?function(e){return null==e?[]:(e=Object(e),Tie(Die(e),(function(t){return Aie.call(e,t)})))}:Iie,Oie=Xee;var Lie=function(e){return kie(e,Oie,Eie)},Nie=Object.prototype.hasOwnProperty;var Pie=function(e,t,n,i,o,r){var a=1&n,s=Lie(e),l=s.length;if(l!=Lie(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Nie.call(t,u)))return!1}var p=r.get(e),d=r.get(t);if(p&&d)return p==t&&d==e;var h=!0;r.set(e,t),r.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(i)var v=a?i(m,g,u,t,e,r):i(g,m,u,e,t,r);if(!(void 0===v?g===m||o(g,m,n,i,r):v)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var y=e.constructor,x=t.constructor;y==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x||(h=!1)}return r.delete(e),r.delete(t),h},Rie=Ite(P7,"DataView"),zie=ine,Vie=Ite(P7,"Promise"),Bie=Ite(P7,"Set"),jie=Ite(P7,"WeakMap"),Fie=q7,Gie=hte,Wie="[object Map]",Hie="[object Promise]",Uie="[object Set]",Yie="[object WeakMap]",qie="[object DataView]",Xie=Gie(Rie),$ie=Gie(zie),Zie=Gie(Vie),Kie=Gie(Bie),Jie=Gie(jie),Qie=Fie;(Rie&&Qie(new Rie(new ArrayBuffer(1)))!=qie||zie&&Qie(new zie)!=Wie||Vie&&Qie(Vie.resolve())!=Hie||Bie&&Qie(new Bie)!=Uie||jie&&Qie(new jie)!=Yie)&&(Qie=function(e){var t=Fie(e),n="[object Object]"==t?e.constructor:void 0,i=n?Gie(n):"";if(i)switch(i){case Xie:return qie;case $ie:return Wie;case Zie:return Hie;case Kie:return Uie;case Jie:return Yie}return t});var eoe=Qne,toe=cie,noe=bie,ioe=Pie,ooe=Qie,roe=iee,aoe=aee,soe=_ee,loe="[object Arguments]",coe="[object Array]",uoe="[object Object]",poe=Object.prototype.hasOwnProperty;var doe=function(e,t,n,i,o,r){var a=roe(e),s=roe(t),l=a?coe:ooe(e),c=s?coe:ooe(t),u=(l=l==loe?uoe:l)==uoe,p=(c=c==loe?uoe:c)==uoe,d=l==c;if(d&&aoe(e)){if(!aoe(t))return!1;a=!0,u=!1}if(d&&!u)return r||(r=new eoe),a||soe(e)?toe(e,t,n,i,o,r):noe(e,t,l,n,i,o,r);if(!(1&n)){var h=u&&poe.call(e,"__wrapped__"),f=p&&poe.call(t,"__wrapped__");if(h||f){var g=h?e.value():e,m=f?t.value():t;return r||(r=new eoe),o(g,m,n,i,r)}}return!!d&&(r||(r=new eoe),ioe(e,t,n,i,o,r))},hoe=X7;var foe=function e(t,n,i,o,r){return t===n||(null==t||null==n||!hoe(t)&&!hoe(n)?t!=t&&n!=n:doe(t,n,i,o,e,r))},goe=Qne,moe=foe;var voe=function(e,t,n,i){var o=n.length,r=o,a=!i;if(null==e)return!r;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<r;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new goe;if(i)var d=i(c,u,l,e,t,p);if(!(void 0===d?moe(u,c,3,i,p):d))return!1}}return!0},yoe=Vee;var xoe=function(e){return e==e&&!yoe(e)},boe=xoe,_oe=Xee;var woe=function(e){for(var t=_oe(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,boe(o)]}return t};var Soe=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Coe=voe,Moe=woe,Toe=Soe;var Ioe=function(e){var t=Moe(e);return 1==t.length&&t[0][2]?Toe(t[0][0],t[0][1]):function(n){return n===e||Coe(n,e,t)}},Aoe=q7,Doe=X7;var koe=function(e){return"symbol"==typeof e||Doe(e)&&"[object Symbol]"==Aoe(e)},Eoe=iee,Ooe=koe,Loe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Noe=/^\w*$/;var Poe=function(e,t){if(Eoe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ooe(e))||(Noe.test(e)||!Loe.test(e)||null!=t&&e in Object(t))},Roe=Fne;function zoe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var a=e.apply(this,i);return n.cache=r.set(o,a)||r,a};return n.cache=new(zoe.Cache||Roe),n}zoe.Cache=Roe;var Voe=zoe;var Boe=function(e){var t=Voe(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},joe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Foe=/\\(\\)?/g,Goe=Boe((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(joe,(function(e,n,i,o){t.push(i?o.replace(Foe,"$1"):n||e)})),t})),Woe=Goe;var Hoe=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o},Uoe=Hoe,Yoe=iee,qoe=koe,Xoe=R7?R7.prototype:void 0,$oe=Xoe?Xoe.toString:void 0;var Zoe=function e(t){if("string"==typeof t)return t;if(Yoe(t))return Uoe(t,e)+"";if(qoe(t))return $oe?$oe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Koe=Zoe;var Joe=iee,Qoe=Poe,ere=Woe,tre=function(e){return null==e?"":Koe(e)};var nre=function(e,t){return Joe(e)?e:Qoe(e,t)?[e]:ere(tre(e))},ire=koe;var ore=function(e){if("string"==typeof e||ire(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},rre=nre,are=ore;var sre=function(e,t){for(var n=0,i=(t=rre(t,e)).length;null!=e&&n<i;)e=e[are(t[n++])];return n&&n==i?e:void 0},lre=sre;var cre=function(e,t,n){var i=null==e?void 0:lre(e,t);return void 0===i?n:i};var ure=function(e,t){return null!=e&&t in Object(e)},pre=nre,dre=nee,hre=iee,fre=lee,gre=cee,mre=ore;var vre=function(e,t,n){for(var i=-1,o=(t=pre(t,e)).length,r=!1;++i<o;){var a=mre(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||++i!=o?r:!!(o=null==e?0:e.length)&&gre(o)&&fre(a,o)&&(hre(e)||dre(e))},yre=ure,xre=vre;var bre=function(e,t){return null!=e&&xre(e,t,yre)},_re=foe,wre=cre,Sre=bre,Cre=Poe,Mre=xoe,Tre=Soe,Ire=ore;var Are=function(e,t){return Cre(e)&&Mre(t)?Tre(Ire(e),t):function(n){var i=wre(n,e);return void 0===i&&i===t?Sre(n,e):_re(t,i,3)}};var Dre=function(e){return function(t){return null==t?void 0:t[e]}},kre=sre;var Ere=function(e){return function(t){return kre(t,e)}},Ore=Dre,Lre=Ere,Nre=Poe,Pre=ore;var Rre=function(e){return Nre(e)?Ore(Pre(e)):Lre(e)},zre=Ioe,Vre=Are,Bre=tte,jre=iee,Fre=Rre;var Gre=function(e){return"function"==typeof e?e:null==e?Bre:"object"==typeof e?jre(e)?Vre(e[0],e[1]):zre(e):Fre(e)},Wre=Ete,Hre=Kee,Ure=Gre;var Yre=function(e,t){var n={};return t=Ure(t),Hre(e,(function(e,i,o){Wre(n,i,t(e,i,o))})),n},qre=g(Yre);var Xre=function(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(i,a,n(a),e)}return i},$re=ete;var Zre=function(e,t,n,i){return $re(e,(function(e,o,r){t(i,e,n(e),r)})),i},Kre=Xre,Jre=Zre,Qre=Gre,eae=iee;var tae=function(e,t){return function(n,i){var o=eae(n)?Kre:Jre,r=t?t():{};return o(n,e,Qre(i),r)}},nae=Ete,iae=tae((function(e,t,n){nae(e,n,t)})),oae=g(iae),rae=[{value:"zh-CN",label:"中文 (简体)",zhLabel:"中文 (简体)",s:["zh-cn","zh"]},{value:"en-US",label:"English",zhLabel:"英语",s:"en"},{value:"ja-JP",label:"日本語",zhLabel:"日本语",s:"ja"},{value:"ru-RU",label:"Русский",zhLabel:"俄语",s:"ru"},{value:"pt-PT",label:"Português (Portugal)",zhLabel:"葡萄牙语 (葡萄牙)",s:"pt"},{value:"fr-FR",label:"Français",zhLabel:"法语",s:"fr"},{value:"es-ES",label:"Español",zhLabel:"西班牙语",s:"es"},{label:"中文 (香港)",value:"zh-HK",zhLabel:"中文 (香港)",s:"zh-hk",likeness:["zh-TW","zh-CN"]},{label:"中文 (繁體)",value:"zh-TW",zhLabel:"中文 (繁体)",s:"zh-tw",likeness:["zh-HK","zh-CN"]},{label:"한국어",value:"ko-KR",zhLabel:"韩语",s:"ko"},{label:"Türkçe",value:"tr-TR",zhLabel:"土耳其语",s:"tr"},{label:"Polski",value:"pl-PL",zhLabel:"波兰语",s:"pl"},{label:"עברית",value:"iw-IL",zhLabel:"希伯来语",s:["he","iw"]},{label:"Italiano",value:"it-IT",zhLabel:"意大利语",s:"it"},{label:"عربية",value:"ar-SA",zhLabel:"阿拉伯语",s:"ar"},{label:"Čeština",value:"cs-CZ",zhLabel:"捷克语",s:"cs"},{label:"Dansk",value:"da-DK",zhLabel:"丹麦语",s:"da"},{label:"Nederlands",value:"nl-NL",zhLabel:"荷兰语",s:"nl"},{label:"Deutsch",value:"de-DE",zhLabel:"德语",s:"de"},{label:"हिन्दी",value:"hi-IN",zhLabel:"印地语",s:"hi"},{label:"Magyar",value:"hu-HU",zhLabel:"匈牙利语",s:"hu"},{label:"Bahasa Melayu",value:"ms-MY",zhLabel:"马来语",s:"ms"},{label:"Bahasa Indonesia",value:"in-ID",zhLabel:"印尼语",likeness:["id-ID"],s:["id","in"]},{label:"Română",value:"ro-RO",zhLabel:"罗马尼亚语",s:"ro"},{label:"Српски",value:"sr-SA",zhLabel:"塞尔维亚语",s:"sr"},{label:"Slovenčina",value:"sk-SK",zhLabel:"斯洛伐克语",s:"sk"},{label:"Svenska",value:"sv-SE",zhLabel:"瑞典语",s:"sv"},{label:"ภาษาไทย",value:"th-TH",zhLabel:"泰语",s:"th"},{label:"Українська",value:"uk-UA",zhLabel:"乌克兰语",s:"uk"},{label:"Tiếng Việt",value:"vi-VN",zhLabel:"越南语",s:"vi"},{value:"pt-BR",label:"Português (Brasil)",zhLabel:"葡萄牙语 (巴西)",s:"pt-br",likeness:["pt-PT"]},{value:"en-ID",label:"English (ID)",zhLabel:"英语 (印度尼西亚)",s:["en-id","en"],likeness:["en-US"]},{value:"en-MY",label:"English (MY)",zhLabel:"英语 (马来西亚)",s:["en-my","en"],likeness:["en-US"]},{value:"en-PH",label:"English (PH)",zhLabel:"英语 (菲律宾)",s:["en-ph","en"],likeness:["en-US"]},{value:"en-SG",label:"English (SG)",zhLabel:"英语 (新加坡)",s:["en-sg","en"],likeness:["en-US"]},{value:"en-TH",label:"English (TH)",zhLabel:"英语 (泰国)",s:["en-th","en"],likeness:["en-US"]},{value:"en-VN",label:"English (VN)",zhLabel:"英语 (越南)",s:["en-vn","en"],likeness:["en-US"]},{value:"es-MX",label:"Español (Mexico)",zhLabel:"西班牙语 (墨西哥)",s:["es-mx","es"],likeness:["es-ES"]}],aae=rae.map((function(e){var t=e.label,n=e.value;return{label:t,value:n,alias:n.substring(0,1).toUpperCase()+n.substring(1,2)}}));rae.map((function(e){var t=e.value;return{label:e.zhLabel,value:t,alias:t.substring(0,1).toUpperCase()+t.substring(1,2)}}));var sae=oae(rae,"value");function lae(e,t,n){var i=void 0===n?{}:n,o=i.path,r=void 0===o?"/":o,a=i.domain,s=i.expires,l=i.maxAge,c=void 0===l?2592e3:l,u=i.secure,p=i.sameSite;if(e){t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[()]/g,escape);var d=[];r&&d.push("path="+r),a&&d.push("domain="+a),s&&d.push("expires="+s),
|
|
23
|
+
//! important:"max-age" is not supported by IE6/7/8
|
|
24
|
+
c&&d.push("max-age="+c),u&&d.push("secure"),p&&d.push("samesite="+p),document.cookie=e+"="+t+";"+d.join(";")}}function cae(e){var t="",n=document.cookie?document.cookie.split("; "):[],i=/(%[0-9A-Z]{2})+/g;n.sort((function(e){return e.includes("domain="+window.location.hostname)?-1:0}));for(var o=0;o<n.length;o++){var r=n[o].split("=");try{if(e===r[0].replace(i,decodeURIComponent)){t=r.slice(1).join("=").replace(i,decodeURIComponent);break}}catch(e){}}return t}aae.slice(0,7);var uae="PANDA_LANG",pae="x-hng",dae="zh-CN",hae="__PANDA_INSTANCES",fae="_PANDA_EXUI",gae="__$i18n",mae="_PANDA_I18N",vae="__I18N_CACHED",yae="0.2.74",xae=function(e){var t;"undefined"!=typeof console&&(null===(t=window.__PANDA)||void 0===t?void 0:t.logLevel)>=2&&console.warn("[panda-log] Warn: "+e)},bae=function(e){var t;"undefined"!=typeof console&&(null===(t=window.__PANDA)||void 0===t?void 0:t.logLevel)>=1&&console.error("[panda-log] Error: "+e)},_ae=function(e){var t;"undefined"!=typeof console&&null!==(t=window.__PANDA)&&void 0!==t&&t.debug&&console.error("[panda-log] Debug: "+e)},wae=function(e){var t;"undefined"!=typeof console&&null!==(t=window.__PANDA)&&void 0!==t&&t.debug&&console.error("[panda-log] Error:",e)},Sae=function(){var e,t;return null===(e=window._GATEWAY_PF)||void 0===e||null===(t=e.userPreference)||void 0===t?void 0:t.lang},Cae=function(e){if("string"!=typeof e)return Mae();var t=e.replace("_","-");t.includes("-")&&(t=t.split("-").map((function(e,t){return 1===t?e.toUpperCase():e})).join("-"));var n=t.toLowerCase(),i=rae.find((function(e){return e.value===t||("string"==typeof e.s?e.s===n:e.s.includes(n))}));return i?i.value:e.startsWith("zh-Hans")?"zh-CN":e.startsWith("zh-Hant")?"zh-Hant-TW"===e?"zh-TW":"zh-HK":e.startsWith("en-")?"en-US":e},Mae=function(e){var t,n,i,o,r,a,s,l,c,u;void 0===e&&(e={});var p=e.lang,d=(null===(t=window.__PANDA)||void 0===t?void 0:t.cookieKey)||pae,h=window.__PANDA_LANG||"",f=d!==pae&&cae(d)?Dae(d):"",g=d===pae&&cae(pae)?Dae(pae):"",m=null===(n=window.__PANDA)||void 0===n?void 0:n.lang,v=null===(i=window.__PANDA)||void 0===i?void 0:i.searchLang,y=null===(o=window.__PANDA)||void 0===o?void 0:o.localLang,x=null===(r=window.__PANDA)||void 0===r?void 0:r.defaultLang,b=null===(a=document)||void 0===a||null===(s=a.cookie)||void 0===s?void 0:s.match(/x-hng/g),_=b&&Array.isArray(b)&&b.length>1,w=Sae();(function(){var e;return"undefined"!=typeof console&&(null===(e=window.__PANDA)||void 0===e?void 0:e.debug)})()&&_ae("isMultiXhng: "+(_?"true":"false")+"; lang: "+p+" || envLang "+h+" || searchLang: "+v+" || osLang: "+w+" || customLang: "+f+" || localLang: "+y+" || xhngLang: "+g+" || windowLang: "+m);var S=p||h||v||w||f||(_?y||g:g||y)||x||m||dae;return S=Cae(S),null===(l=window.__PANDA)||void 0===l||null===(c=l.langList)||void 0===c||!c.length||null!==(u=window.__PANDA)&&void 0!==u&&u.langList.includes(S)||(S=window.__PANDA.langList[0]),_ae("isMultiXhng Result: "+S),S};function Tae(){return Math.random().toString(36).slice(2)}function Iae(e){return!!aae.find((function(t){return t.value===e}))}function Aae(e){var t={};return lte(e,(function(e,n){t[Cae(n)]=qre(e.copyList,(function(e){return e.content}))})),t}function Dae(e){return e===pae?new URLSearchParams(cae(pae)).get("lang")||dae:cae(e)||dae}function kae(){if(window[mae]&&Object.keys(window[mae]).length){var e=Object.values(window[mae])[0].langCookieName;e&&window.__PANDA.cookieKey===pae&&(window.__PANDA.cookieKey=e)}}if(window.__PANDA=_n({cookieKey:pae,lang:function(){if("undefined"!=typeof navigator&&navigator.language&&navigator.userAgent){var e=navigator.language;if(navigator.userAgent.includes("DingTalk")){var t=navigator.userAgent.match(/language\/([a-zA-Z-]+)/);t&&null!=t&&t[1]&&(e=t[1])}return Iae(Cae(e))?Cae(e):navigator.languages.find((function(e){return Iae(e)}))}return dae}(),logLevel:2,instanceNames:[]},window.__PANDA),window[mae]=window[mae]||{},"undefined"!=typeof location&&location.search){var Eae=new URLSearchParams(location.search),Oae=Eae.get("lang");if(Oae){var Lae=Cae(Oae);Iae(Lae)&&(window.__PANDA.searchLang=Lae)}Eae.get("panda_debug")&&(window.__PANDA.debug=!0)}if("undefined"!=typeof localStorage){var Nae=localStorage.getItem(uae);Nae&&(window.__PANDA.localLang=Nae)}var Pae=Ete,Rae=Lte;var zae=function(e,t,n){(void 0!==n&&!Rae(e[t],n)||void 0===n&&!(t in e))&&Pae(e,t,n)},Vae={exports:{}};!function(e,t){var n=P7,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i?n.Buffer:void 0,a=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(Vae,Vae.exports);var Bae=Vae.exports,jae=uie;var Fae=function(e){var t=new e.constructor(e.byteLength);return new jae(t).set(new jae(e)),t};var Gae=function(e,t){var n=t?Fae(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Wae=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Hae=Vee,Uae=Object.create,Yae=function(){function e(){}return function(t){if(!Hae(t))return{};if(Uae)return Uae(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),qae=Yae,Xae=Oee(Object.getPrototypeOf,Object),$ae=qae,Zae=Xae,Kae=Eee;var Jae=function(e){return"function"!=typeof e.constructor||Kae(e)?{}:$ae(Zae(e))},Qae=Hee,ese=X7;var tse=function(e){return ese(e)&&Qae(e)},nse=q7,ise=Xae,ose=X7,rse=Function.prototype,ase=Object.prototype,sse=rse.toString,lse=ase.hasOwnProperty,cse=sse.call(Object);var use=function(e){if(!ose(e)||"[object Object]"!=nse(e))return!1;var t=ise(e);if(null===t)return!0;var n=lse.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&sse.call(n)==cse};var pse=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},dse=Ete,hse=Lte,fse=Object.prototype.hasOwnProperty;var gse=function(e,t,n){var i=e[t];fse.call(e,t)&&hse(i,n)&&(void 0!==n||t in e)||dse(e,t,n)},mse=gse,vse=Ete;var yse=function(e,t,n,i){var o=!n;n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?vse(n,s,l):mse(n,s,l)}return n};var xse=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},bse=Vee,_se=Eee,wse=xse,Sse=Object.prototype.hasOwnProperty;var Cse=function(e){if(!bse(e))return wse(e);var t=_se(e),n=[];for(var i in e)("constructor"!=i||!t&&Sse.call(e,i))&&n.push(i);return n},Mse=Dee,Tse=Cse,Ise=Hee;var Ase=function(e){return Ise(e)?Mse(e,!0):Tse(e)},Dse=yse,kse=Ase;var Ese=zae,Ose=Bae,Lse=Gae,Nse=Wae,Pse=Jae,Rse=nee,zse=iee,Vse=tse,Bse=aee,jse=Fee,Fse=Vee,Gse=use,Wse=_ee,Hse=pse,Use=function(e){return Dse(e,kse(e))};var Yse=function(e,t,n,i,o,r,a){var s=Hse(e,n),l=Hse(t,n),c=a.get(l);if(c)Ese(e,n,c);else{var u=r?r(s,l,n+"",e,t,a):void 0,p=void 0===u;if(p){var d=zse(l),h=!d&&Bse(l),f=!d&&!h&&Wse(l);u=l,d||h||f?zse(s)?u=s:Vse(s)?u=Nse(s):h?(p=!1,u=Ose(l,!0)):f?(p=!1,u=Lse(l,!0)):u=[]:Gse(l)||Rse(l)?(u=s,Rse(s)?u=Use(s):Fse(s)&&!jse(s)||(u=Pse(l))):p=!1}p&&(a.set(l,u),o(u,l,i,r,a),a.delete(l)),Ese(e,n,u)}},qse=Qne,Xse=zae,$se=k7,Zse=Yse,Kse=Vee,Jse=Ase,Qse=pse;var ele=function e(t,n,i,o,r){t!==n&&$se(n,(function(a,s){if(r||(r=new qse),Kse(a))Zse(t,n,s,i,e,o,r);else{var l=o?o(Qse(t,s),a,s+"",t,n,r):void 0;void 0===l&&(l=a),Xse(t,s,l)}}),Jse)};var tle=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},nle=Math.max;var ile=function(e,t,n){return t=nle(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,r=nle(i.length-t,0),a=Array(r);++o<r;)a[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=n(a),tle(e,this,s)}};var ole=function(e){return function(){return e}},rle=Dte,ale=rle?function(e,t){return rle(e,"toString",{configurable:!0,enumerable:!1,value:ole(t),writable:!0})}:tte,sle=Date.now;var lle=function(e){var t=0,n=0;return function(){var i=sle(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},cle=lle(ale),ule=tte,ple=ile,dle=cle;var hle=function(e,t){return dle(ple(e,t,ule),e+"")},fle=Lte,gle=Hee,mle=lee,vle=Vee;var yle=hle,xle=function(e,t,n){if(!vle(n))return!1;var i=typeof t;return!!("number"==i?gle(n)&&mle(t,n.length):"string"==i&&t in n)&&fle(n[t],e)};var ble=function(e){return yle((function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,a&&xle(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,r)}return t}))},_le=ele,wle=g(ble((function(e,t,n){_le(e,t,n)}))),Sle=function(){function e(){var e=this;this.broadcast=null,this.eventBus={},this.handleMap={};var t="Panda_Broadcast_Channel";this.broadcast=new BroadcastChannel(t),new BroadcastChannel(t).onmessage=function(t){var n=t.data,i=n.event,o=n.data;i&&e.eventBus[i]&&Object.keys(e.eventBus[i]).forEach((function(t){e.eventBus[i][t](o)}))}}var t=e.prototype;return t.on=function(e,t){this.eventBus[e]||(this.eventBus[e]={});var n=Tae();return this.eventBus[e][n]=t,this.handleMap[n]=e,n},t.emit=function(e,t){this.broadcast.postMessage({event:e,data:t})},t.off=function(e){if(this.eventBus[e])delete this.eventBus[e];else{var t=this.handleMap[e];t&&(delete this.eventBus[t][e],delete this.handleMap[e])}},e}(),Cle=function(){function e(){this.eventBus={},this.handleMap={}}var t=e.prototype;return t.emit=function(e,t){var n=this;this.eventBus[e]&&Object.keys(this.eventBus[e]).forEach((function(i){n.eventBus[e][i](t)}))},t.off=function(e){if(this.eventBus[e])delete this.eventBus[e];else{var t=this.handleMap[e];t&&(delete this.eventBus[t][e],delete this.handleMap[e])}},t.on=function(e,t){this.eventBus[e]||(this.eventBus[e]={});var n=Tae();return this.eventBus[e][n]=t,this.handleMap[n]=e,n},e}();window[vae]=_n({PACKID_LIST:[],INDEX:0,KEY_MAP:{},VK_MAP:new Map},window[vae]);var Mle={"#":"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",0:""},Tle={"":"#","":"1","":"2","":"3","":"4","":"5","":"6","":"7","":"8","":"9","":"0"},Ile=/[\u206F\u202A\u200E\u2066\u2068\u2061\u2062\u2063\u2064\u2065\u206E]/g;function Ale(e){var t,n,i,o,r=(n=e,i={},o=[],["copyKey","packId","type","componentName","isMatched","packageName"].forEach((function(e){n[e]&&(i[e]=n[e],o.push(e+":"+n[e].toString()))})),[i,o.join(";")]),a=r[0],s=r[1];return window[vae].VK_MAP.has(s)?t=window[vae].VK_MAP.get(s):(t=window[vae].VK_MAP.size+1,window[vae].INDEX=t,window[vae].VK_MAP.set(s,t),window[vae].KEY_MAP[t]=a),kle(t)}function Dle(e){var t;return(null===(t=window[vae].KEY_MAP)||void 0===t?void 0:t[e])||null}function kle(e){return e.toString().split("").map((function(e){return Mle[e]})).join("")}var Ele={set:Ale,get:Dle,decode:kle,encode:function(e){return e.split("").map((function(e){return Mle[e]})).join("")},encrypt:function(e,t){return""+e+""+Ale(t)+""},decrypt:function(e){if(e.includes("")){var t=e.split("");return{copy:e.replace(Ile,""),info:t.length>=4?Dle(t[2].split("").map((function(e){return Tle[e]})).join("")):null}}return{copy:e,info:null}},getOriginalCopy:function(e){return e.includes("")?e.replace(Ile,""):e}};function Ole(e){null!=e&&e.cookieKey&&(window.__PANDA.cookieKey=e.cookieKey,_ae("setConfig cookieKey: "+e.cookieKey)),e&&void 0!==e.logLevel&&(window.__PANDA.logLevel=e.logLevel),null!=e&&e.langList&&(window.__PANDA.langList=e.langList,_ae("setConfig langList: "+JSON.stringify(e.langList))),null!=e&&e.defaultLang&&(window.__PANDA.defaultLang=e.defaultLang,_ae("setConfig defaultLang: "+e.defaultLang))}var Lle="function"==typeof BroadcastChannel?new Sle:new Cle;function Nle(e,t){if(t&&Object.keys(t).length>0){var n=e;return Object.keys(t).forEach((function(e){var i=new RegExp("{"+e+"}","g"),o="object"==typeof t[e]||void 0===t[e]?"":t[e].toString();n=n.replace(i,Ele.getOriginalCopy(o))})),n}return e}var Ple=function(){function e(e){var t=e.locale,n=e.lang,i=e.packageName,o=e.$i18n;this.locale=void 0,this.lang=void 0,this.packageName=void 0,this.$i18n=void 0,this.version=yae,this.locale=t,this.lang=n,this.$i18n=o,this.packageName=i}var t=e.prototype;return t.format2=function(e,t,n){var i=this,o=n.lang,r="",a=o,s=!1,l=e.defaultMessage||"";try{var c,u,p=(null===(c=this.locale[o])||void 0===c?void 0:c[e.id])||"";p&&(s=!0),!p&&null!==(u=sae[o])&&void 0!==u&&u.likeness&&sae[o].likeness.find((function(t){var n;return!(null===(n=i.locale[t])||void 0===n||!n[e.id])&&(p=i.locale[t][e.id],a=t)})),!p&&window.__PANDA.langList&&window.__PANDA.langList.find((function(t){var n;return!(null===(n=i.locale[t])||void 0===n||!n[e.id])&&(p=i.locale[t][e.id],a=t)})),r=Nle(p=p||l,t)}catch(t){var d="string"==typeof t?t:"Unknown error";bae(e.id+" for "+o+" failed: \n"+d),wae(t)}return{message:r||l||e.id||"",usedLang:a,isMatched:s}},t.format=function(e,t,n){return this.format2(e,t,n).message},t.setLocale=function(e){this.locale=e},e}();function Rle(e,t){var n=(window[hae]||{})[t];if(!n)return _ae("No translation found"),void wae({instanceName:t});n.setLocale(e)}var zle,Vle,Ble={locale:{getLocale:function(){return xae("Legacy api! Please use $i18n.getLang instead!"),{lang:Fle.getLang()}},setLang:function(e){xae("Legacy api! Please use $i18n.setLang instead!"),Fle.setLang(e)}}},jle=function(){function e(e){var t=this;this.locale={},this.currentLang="",this.componentName="",this.packageName="",this.type=void 0,this.name=void 0,this.localeUtil=Ble,this.initFlag=!0,this.customLang=void 0,this.setConfig=Ole,this.componentName=(null==e?void 0:e.componentName)||"",this.type=null==e?void 0:e.type,this.packageName=null==e?void 0:e.packageName,this.name=this.componentName?this.componentName+"."+(this.packageName&&e.name?e.name:Tae()):Tae(),null!=e&&e.lang&&(this.customLang=e.lang),null!=e&&e.locale&&this.componentName?(this.locale=qre(e.locale,(function(e){return e[t.componentName]||e})),window[fae]&&Object.keys(window[fae]).forEach((function(e){window[fae][e][t.componentName]&&(t.locale[e]=wle(t.locale[e]||{},window[fae][e][t.componentName]))}))):(this.locale=wle({},Aae(window[mae]),(null==e?void 0:e.locale)||{}),kae()),this.currentLang=(null==e?void 0:e.lang)||Mae(),Lle.on("CHANGE_LANG",(function(e){t.customLang||(t.currentLang=e)})),null!=e&&e._init&&(window.__PANDA.instanceNames.push(this.name),this.initFlag=!1,_ae(this.name+": "+yae)),function(e,t){var n=t.name,i=t.lang,o=t.packageName,r=t.$i18n;window[hae]=window[hae]||{},window[hae][n]=new Ple({locale:e,lang:i,$i18n:r,packageName:o})}(this.locale,{name:this.name,lang:this.customLang,packageName:this.packageName,$i18n:this})}var t=e.prototype;return t.init=function(t){return new e(_n({},t,{packageName:(null==t?void 0:t.packageName)||this.packageName,type:(null==t?void 0:t.type)||this.type,name:this.name}))},t.change=function(e){xae("Legacy api! Please use $i18n.setLang instead!"),this.setLang(e)},t.setLang=function(e){var t=Cae(e);t!==e&&bae(e+" is not a valid language tag, panda converts to "+t+" instead,please check usage."),function(e){if(window.__PANDA.cookieKey===pae){var t=cae(pae);if(t){var n=new URLSearchParams;new URLSearchParams(t).forEach((function(t,i){"lang"===i?n.set(i,e):n.set(i,t)})),n.set("domain",window.location.hostname),lae(pae,n.toString())}else lae(pae,"lang="+e+"&domain="+window.location.hostname)}else lae(window.__PANDA.cookieKey,e)}(e),this.currentLang=t,window.__PANDA.lang=t,window.__PANDA.localLang&&(window.__PANDA.localLang=t),"undefined"!=typeof localStorage&&localStorage.setItem(uae,t),_ae("Set lang to "+t),Lle.emit("CHANGE_LANG",t)},t.getLang=function(){return this.currentLang},t.get=function(e,t){var n;Fle.initFlag||(Fle.initFlag=!0,kae(),Fle.currentLang=Fle.customLang||Mae(),window.__PANDA.lang=Fle.currentLang,Fle.addLocale(Aae(window[mae])));var i="string"==typeof e,o=i?null==e?void 0:e.trim():null===(n=e.id)||void 0===n?void 0:n.trim(),r=i?e:e.dm,a=i?this.componentName:e.ns||this.componentName,s=!i&&e.lang?e.lang:this.currentLang,l=!i&&!(null==e||!e.pure);return function(e,t,n){var i,o=n||{},r=o.name,a=o.nameSpace,s=o.lang,l=o.type,c=o.pure,u=window[hae]||{};if(!a||a===r||r.includes(".")&&u[r])i=u[r];else{var p=Object.keys(u),d=p.find((function(e){return e.startsWith(a+"."+r)}))||p.find((function(e){return e.startsWith(a)}));i=u[d]}if(!i)return _ae("No translation found, pls make sure u passed the translation b4 1st $i18n.get func."),wae({instanceName:r,translationId:e.id}),Nle(e.defaultMessage||e.id||"",t);var h=i.format2?i.format2(e,t,n):{message:i.format(e,t,n),usedLang:s,isMatched:!0},f=h.message,g=h.usedLang,m=h.isMatched;if((window.__PANDA.isI18nPdkv||window.__PANDA.debug)&&!c){var v,y,x,b,_=a||(r.includes(".")?r.split["."][0]:""),w=_?"":null===(v=window[mae])||void 0===v||null===(y=v[g.replace("-","_")])||void 0===y||null===(x=y.copyList)||void 0===x||null===(b=x[e.id])||void 0===b?void 0:b.packId;return Ele.encrypt(f,{copyKey:e.id,type:l,componentName:_,packageName:i.packageName,packId:w,isMatched:m})}return f}({id:o,defaultMessage:r},t||null,{name:this.name,type:this.type,nameSpace:a,lang:s,pure:l})},t.addLocale=function(e){this.locale=wle(this.locale,e),Rle(this.locale,this.name)},t.setLocale=function(e,t){this.locale=e,this.packageName=t||Tae(),Rle(this.locale,this.name),Fle.initFlag||(Fle.initFlag=!0,Fle.currentLang=Fle.customLang||Mae())},t.addLocaleByKey=function(e){var t=this;lte(e,(function(e,n){lte(e,(function(e,i){t.locale[i]=t.locale[i]||{},t.locale[i][n]=e}))})),Rle(this.locale,this.name)},t.reloadPackLocale=function(){this.addLocale(Aae(window[mae]))},t.setCustomLang=function(e){this.currentLang=e,this.customLang=e},t.getLocaleByKey=function(e){var t={};return lte(this.locale,(function(n,i){t[i]=n[e]||""})),t},t.initLowcode=function(){window.$i18n_lowcode=this},t.lockOSLang=function(){var e=Sae();e&&this.setCustomLang(e)},t.__setType=function(e){this.type=e},t.initPackage=function(e){var t=this,n=e.name,i=e.locales;if(i){var o={};Object.values(i).forEach((function(e){Object.keys(e).forEach((function(r){"string"==typeof e[r]?bae("no support locales type"):o[r]||(o[r]=t.init({componentName:r,locale:i,packageName:n}))}))}))}},e}(),Fle=new jle({_init:!0});zle=function(){window[gae]&&!window[gae].locale||(window[gae]=Fle)},null!==(Vle=window.__PANDA)&&void 0!==Vle&&Vle.debug&&zle&&zle();var Gle=window.__PANDA.pandaContext||e.createContext({locale:{},_lang:void 0,lang:void 0,$i18n:void 0});window.__PANDA.pandaContext||(window.__PANDA.pandaContext=Gle);var Wle,Hle={exports:{}},Ule={exports:{}},Yle={};var qle,Xle,$le,Zle,Kle,Jle,Qle,ece,tce,nce,ice,oce,rce,ace,sce={};
|
|
25
|
+
/** @license React v16.13.1
|
|
26
|
+
* react-is.development.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/function lce(){return Xle||(Xle=1,"production"===process.env.NODE_ENV?Ule.exports=function(){if(Wle)return Yle;Wle=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case i:case r:case o:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case h:case a:return e;default:return d}}case n:return d}}}function b(e){return x(e)===c}return Yle.AsyncMode=l,Yle.ConcurrentMode=c,Yle.ContextConsumer=s,Yle.ContextProvider=a,Yle.Element=t,Yle.ForwardRef=u,Yle.Fragment=i,Yle.Lazy=f,Yle.Memo=h,Yle.Portal=n,Yle.Profiler=r,Yle.StrictMode=o,Yle.Suspense=p,Yle.isAsyncMode=function(e){return b(e)||x(e)===l},Yle.isConcurrentMode=b,Yle.isContextConsumer=function(e){return x(e)===s},Yle.isContextProvider=function(e){return x(e)===a},Yle.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Yle.isForwardRef=function(e){return x(e)===u},Yle.isFragment=function(e){return x(e)===i},Yle.isLazy=function(e){return x(e)===f},Yle.isMemo=function(e){return x(e)===h},Yle.isPortal=function(e){return x(e)===n},Yle.isProfiler=function(e){return x(e)===r},Yle.isStrictMode=function(e){return x(e)===o},Yle.isSuspense=function(e){return x(e)===p},Yle.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===r||e===o||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},Yle.typeOf=x,Yle}():Ule.exports=(qle||(qle=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var g=e.type;switch(g){case l:case c:case i:case r:case o:case p:return g;default:var m=g&&g.$$typeof;switch(m){case s:case u:case f:case h:case a:return m;default:return d}}case n:return d}}}var b=l,_=c,w=s,S=a,C=t,M=u,T=i,I=f,A=h,D=n,k=r,E=o,O=p,L=!1;function N(e){return x(e)===c}sce.AsyncMode=b,sce.ConcurrentMode=_,sce.ContextConsumer=w,sce.ContextProvider=S,sce.Element=C,sce.ForwardRef=M,sce.Fragment=T,sce.Lazy=I,sce.Memo=A,sce.Portal=D,sce.Profiler=k,sce.StrictMode=E,sce.Suspense=O,sce.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||x(e)===l},sce.isConcurrentMode=N,sce.isContextConsumer=function(e){return x(e)===s},sce.isContextProvider=function(e){return x(e)===a},sce.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sce.isForwardRef=function(e){return x(e)===u},sce.isFragment=function(e){return x(e)===i},sce.isLazy=function(e){return x(e)===f},sce.isMemo=function(e){return x(e)===h},sce.isPortal=function(e){return x(e)===n},sce.isProfiler=function(e){return x(e)===r},sce.isStrictMode=function(e){return x(e)===o},sce.isSuspense=function(e){return x(e)===p},sce.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===r||e===o||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},sce.typeOf=x}()),sce)),Ule.exports}
|
|
33
|
+
/*
|
|
34
|
+
object-assign
|
|
35
|
+
(c) Sindre Sorhus
|
|
36
|
+
@license MIT
|
|
37
|
+
*/function cce(){if(Zle)return $le;Zle=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return $le=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(i,o){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(i),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))t.call(r,c)&&(s[c]=r[c]);if(e){a=e(r);for(var u=0;u<a.length;u++)n.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s},$le}function uce(){if(Jle)return Kle;Jle=1;return Kle="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function pce(){return ece?Qle:(ece=1,Qle=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var dce=lce();Hle.exports=function(){if(oce)return ice;oce=1;var e=lce(),t=cce(),n=uce(),i=pce(),o=function(){if(nce)return tce;nce=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=uce(),n={},i=pce();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,r,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(i(o,c)){var u;try{if("function"!=typeof o[c]){var p=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=o[c](r,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=l?l():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},tce=o}(),r=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),ice=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",p="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(a),arrayOf:function(e){return g((function(t,i,o,r,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[i];if(!Array.isArray(s))return new f("Invalid "+r+" `"+a+"` of type `"+x(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,r,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:g((function(e,t,n,i,o){var r=e[t];return s(r)?null:new f("Invalid "+i+" `"+o+"` of type `"+x(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,i,o,r){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+r+"` of type `"+x(a)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,i,o,r){if(!(t[n]instanceof e)){var a=e.name||p;return new f("Invalid "+o+" `"+r+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,i,o){return y(e[t])?null:new f("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,r,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[o],c=x(l);if("object"!==c)return new f("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in l)if(i(l,u)){var p=e(l,u,r,a,s+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,i,o,r){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new f("Invalid "+o+" `"+r+"` of value `"+String(a)+"` supplied to `"+i+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(o)+" at index "+t+"."),a}return g((function(t,o,r,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,r,a,s,n);if(null==u)return null;u.data&&i(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,i,o,r,a){var s=t[i],l=x(s);if("object"!==l)return new f("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return v(o,r,a,c,b(u));var p=u(s,c,o,r,a+"."+c,n);if(p)return p}return null}))},exact:function(e){return g((function(o,r,a,s,l){var c=o[r],u=x(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var p=t({},o[r],e);for(var d in p){var h=e[d];if(i(e,d)&&"function"!=typeof h)return v(a,s,l,d,b(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=h(c,d,a,s,l+"."+d,n);if(g)return g}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function o(o,a,s,c,u,d,h){if(c=c||p,d=d||s,h!==n){if(l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+s;!t[m]&&i<3&&(r("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,i++)}}return null==a[s]?o?null===a[s]?new f("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return g((function(t,n,i,o,r,a){var s=t[n];return x(s)!==e?new f("Invalid "+o+" `"+r+"` of type `"+b(s)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,i,o){return new f((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!y(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},ice}()(dce.isElement,!0)}else Hle.exports=function(){if(ace)return rce;ace=1;var e=uce();function t(){}function n(){}return n.resetWarningCache=t,rce=function(){function i(t,n,i,o,r,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return i}i.isRequired=i;var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();var hce=g(Hle.exports);function fce(e,t){return function(){return e.apply(t,arguments)}}hce.string,hce.object,hce.object,hce.bool,hce.bool,hce.bool,hce.oneOf(["tablet","desktop","phone"]),hce.any,hce.oneOfType([hce.bool,hce.object]),hce.string,hce.object,hce.object,hce.bool,hce.bool,hce.bool,hce.oneOf(["tablet","desktop","phone"]),hce.any,hce.oneOfType([hce.bool,hce.object]);const{toString:gce}=Object.prototype,{getPrototypeOf:mce}=Object,vce=(yce=Object.create(null),e=>{const t=gce.call(e);return yce[t]||(yce[t]=t.slice(8,-1).toLowerCase())});var yce;const xce=e=>(e=e.toLowerCase(),t=>vce(t)===e),bce=e=>t=>typeof t===e,{isArray:_ce}=Array,wce=bce("undefined");const Sce=xce("ArrayBuffer");const Cce=bce("string"),Mce=bce("function"),Tce=bce("number"),Ice=e=>null!==e&&"object"==typeof e,Ace=e=>{if("object"!==vce(e))return!1;const t=mce(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Dce=xce("Date"),kce=xce("File"),Ece=xce("Blob"),Oce=xce("FileList"),Lce=xce("URLSearchParams");function Nce(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,o;if("object"!=typeof e&&(e=[e]),_ce(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let a;for(i=0;i<r;i++)a=o[i],t.call(null,e[a],a,e)}}function Pce(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,o=n.length;for(;o-- >0;)if(i=n[o],t===i.toLowerCase())return i;return null}const Rce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,zce=e=>!wce(e)&&e!==Rce;const Vce=(Bce="undefined"!=typeof Uint8Array&&mce(Uint8Array),e=>Bce&&e instanceof Bce);var Bce;const jce=xce("HTMLFormElement"),Fce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gce=xce("RegExp"),Wce=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Nce(n,((n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)})),Object.defineProperties(e,i)},Hce="abcdefghijklmnopqrstuvwxyz",Uce="0123456789",Yce={DIGIT:Uce,ALPHA:Hce,ALPHA_DIGIT:Hce+Hce.toUpperCase()+Uce};const qce=xce("AsyncFunction");var Xce={isArray:_ce,isArrayBuffer:Sce,isBuffer:function(e){return null!==e&&!wce(e)&&null!==e.constructor&&!wce(e.constructor)&&Mce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Mce(e.append)&&("formdata"===(t=vce(e))||"object"===t&&Mce(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Sce(e.buffer),t},isString:Cce,isNumber:Tce,isBoolean:e=>!0===e||!1===e,isObject:Ice,isPlainObject:Ace,isUndefined:wce,isDate:Dce,isFile:kce,isBlob:Ece,isRegExp:Gce,isFunction:Mce,isStream:e=>Ice(e)&&Mce(e.pipe),isURLSearchParams:Lce,isTypedArray:Vce,isFileList:Oce,forEach:Nce,merge:function e(){const{caseless:t}=zce(this)&&this||{},n={},i=(i,o)=>{const r=t&&Pce(n,o)||o;Ace(n[r])&&Ace(i)?n[r]=e(n[r],i):Ace(i)?n[r]=e({},i):_ce(i)?n[r]=i.slice():n[r]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Nce(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(Nce(t,((t,i)=>{n&&Mce(t)?e[i]=fce(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,r,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)a=o[r],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&mce(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:vce,kindOfTest:xce,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(_ce(e))return e;let t=e.length;if(!Tce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:jce,hasOwnProperty:Fce,hasOwnProp:Fce,reduceDescriptors:Wce,freezeMethods:e=>{Wce(e,((t,n)=>{if(Mce(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];Mce(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return _ce(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Pce,global:Rce,isContextDefined:zce,ALPHABET:Yce,generateString:(e=16,t=Yce.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&Mce(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Ice(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const o=_ce(e)?[]:{};return Nce(e,((e,t)=>{const r=n(e,i+1);!wce(r)&&(o[t]=r)})),t[i]=void 0,o}}return e};return n(e,0)},isAsyncFn:qce,isThenable:e=>e&&(Ice(e)||Mce(e))&&Mce(e.then)&&Mce(e.catch)};function $ce(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}Xce.inherits($ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Xce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Zce=$ce.prototype,Kce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Kce[e]={value:e}})),Object.defineProperties($ce,Kce),Object.defineProperty(Zce,"isAxiosError",{value:!0}),$ce.from=(e,t,n,i,o,r)=>{const a=Object.create(Zce);return Xce.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$ce.call(a,e.message,t,n,i,o),a.cause=e,a.name=e.name,r&&Object.assign(a,r),a};var Jce=n.Stream,Qce=eue;function eue(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}t.inherits(eue,Jce),eue.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var o=e.emit;return e.emit=function(){return n._handleEmit(arguments),o.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(eue.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),eue.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},eue.prototype.resume=function(){this._released||this.release(),this.source.resume()},eue.prototype.pause=function(){this.source.pause()},eue.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},eue.prototype.pipe=function(){var e=Jce.prototype.pipe.apply(this,arguments);return this.resume(),e},eue.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},eue.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var tue=t,nue=n.Stream,iue=Qce,oue=rue;function rue(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}tue.inherits(rue,nue),rue.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},rue.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},rue.prototype.append=function(e){if(rue.isStreamLike(e)){if(!(e instanceof iue)){var t=iue.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},rue.prototype.pipe=function(e,t){return nue.prototype.pipe.call(this,e,t),this.resume(),e},rue.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},rue.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){rue.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},rue.prototype._pipeNext=function(e){if(this._currentStream=e,rue.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},rue.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},rue.prototype.write=function(e){this.emit("data",e)},rue.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},rue.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},rue.prototype.end=function(){this._reset(),this.emit("end")},rue.prototype.destroy=function(){this._reset(),this.emit("close")},rue.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},rue.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},rue.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},rue.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var aue={},sue={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
38
|
+
/*!
|
|
39
|
+
* mime-types
|
|
40
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
41
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
42
|
+
* MIT Licensed
|
|
43
|
+
*/
|
|
44
|
+
!function(e){var t=sue,n=i.extname,o=/^\s*([^;\s]*)(?:;|\s|$)/,r=/^text\//i;function a(e){if(!e||"string"!=typeof e)return!1;var n=o.exec(e),i=n&&t[n[1].toLowerCase()];return i&&i.charset?i.charset:!(!n||!r.test(n[1]))&&"UTF-8"}e.charset=a,e.charsets={lookup:a},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=o.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var i=n("x."+t).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),function(e,n){var i=["nginx","apache",void 0,"iana"];Object.keys(t).forEach((function(o){var r=t[o],a=r.extensions;if(a&&a.length){e[o]=a;for(var s=0;s<a.length;s++){var l=a[s];if(n[l]){var c=i.indexOf(t[n[l]].source),u=i.indexOf(r.source);if("application/octet-stream"!==n[l]&&(c>u||c===u&&"application/"===n[l].substr(0,12)))continue}n[l]=o}}}))}(e.extensions,e.types)}(aue);var lue=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)};var cue=lue,uue=function(e){var t=!1;return cue((function(){t=!0})),function(n,i){t?e(n,i):cue((function(){e(n,i)}))}};var pue=function(e){Object.keys(e.jobs).forEach(due.bind(e)),e.jobs={}};function due(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var hue=uue,fue=pue,gue=function(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=function(e,t,n,i){var o;o=2==e.length?e(n,hue(i)):e(n,t,hue(i));return o}(t,o,e[o],(function(e,t){o in n.jobs&&(delete n.jobs[o],e?fue(n):n.results[o]=t,i(e,n.results))}))};var mue=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i};var vue=pue,yue=uue,xue=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,vue(this),yue(e)(null,this.results)};var bue=gue,_ue=mue,wue=xue,Sue=function(e,t,n){var i=_ue(e);for(;i.index<(i.keyedList||e).length;)bue(e,t,i,(function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)})),i.index++;return wue.bind(i,n)};var Cue={exports:{}},Mue=gue,Tue=mue,Iue=xue;function Aue(e,t){return e<t?-1:e>t?1:0}Cue.exports=function(e,t,n,i){var o=Tue(e,n);return Mue(e,t,o,(function n(r,a){r?i(r,a):(o.index++,o.index<(o.keyedList||e).length?Mue(e,t,o,n):i(null,o.results))})),Iue.bind(o,i)},Cue.exports.ascending=Aue,Cue.exports.descending=function(e,t){return-1*Aue(e,t)};var Due=Cue.exports,kue=Due,Eue=function(e,t,n){return kue(e,t,null,n)};var Oue={parallel:Sue,serial:Eue,serialOrdered:Due},Lue=oue,Nue=t,Pue=i,Rue=o,zue=r,Vue=a.parse,Bue=s,jue=n.Stream,Fue=aue,Gue=Oue,Wue=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e},Hue=Uue;function Uue(e){if(!(this instanceof Uue))return new Uue(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Lue.call(this),e=e||{})this[t]=e[t]}Nue.inherits(Uue,Lue),Uue.LINE_BREAK="\r\n",Uue.DEFAULT_CONTENT_TYPE="application/octet-stream",Uue.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=Lue.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),Nue.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),r=this._multiPartFooter();i(o),i(t),i(r),this._trackLength(o,t,n)}},Uue.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=+n.knownLength:Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+Uue.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof jue)&&(n.knownLength||this._valuesToMeasure.push(t))},Uue.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):Bue.stat(e.path,(function(n,i){var o;n?t(n):(o=i.size-(e.start?e.start:0),t(null,o))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},Uue.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,o=this._getContentDisposition(t,n),r=this._getContentType(t,n),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};for(var l in"object"==typeof n.header&&Wue(s,n.header),s)s.hasOwnProperty(l)&&null!=(i=s[l])&&(Array.isArray(i)||(i=[i]),i.length&&(a+=l+": "+i.join("; ")+Uue.LINE_BREAK));return"--"+this.getBoundary()+Uue.LINE_BREAK+a+Uue.LINE_BREAK},Uue.prototype._getContentDisposition=function(e,t){var n,i;return"string"==typeof t.filepath?n=Pue.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=Pue.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=Pue.basename(e.client._httpMessage.path||"")),n&&(i='filename="'+n+'"'),i},Uue.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=Fue.lookup(e.name)),!n&&e.path&&(n=Fue.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=Fue.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=Uue.DEFAULT_CONTENT_TYPE),n},Uue.prototype._multiPartFooter=function(){return function(e){var t=Uue.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Uue.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Uue.LINE_BREAK},Uue.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},Uue.prototype.setBoundary=function(e){this._boundary=e},Uue.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Uue.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(Uue.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Uue.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},Uue.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Uue.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Uue.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?Gue.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},Uue.prototype.submit=function(e,t){var n,i,o={method:"post"};return"string"==typeof e?(e=Vue(e),i=Wue({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(i=Wue(e,o)).port||(i.port="https:"==i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"==i.protocol?zue.request(i):Rue.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var o,r=function(e,i){return n.removeListener("error",r),n.removeListener("response",o),t.call(this,e,i)};o=r.bind(this,null),n.on("error",r),n.on("response",o)}}.bind(this)),n},Uue.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Uue.prototype.toString=function(){return"[object FormData]"};var Yue=g(Hue);function que(e){return Xce.isPlainObject(e)||Xce.isArray(e)}function Xue(e){return Xce.endsWith(e,"[]")?e.slice(0,-2):e}function $ue(e,t,n){return e?e.concat(t).map((function(e,t){return e=Xue(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Zue=Xce.toFlatObject(Xce,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Kue(e,t,n){if(!Xce.isObject(e))throw new TypeError("target must be an object");t=t||new(Yue||FormData);const i=(n=Xce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Xce.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,r=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Xce.isSpecCompliantForm(t);if(!Xce.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Xce.isDate(e))return e.toISOString();if(!s&&Xce.isBlob(e))throw new $ce("Blob is not supported. Use a Buffer instead.");return Xce.isArrayBuffer(e)||Xce.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Xce.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Xce.isArray(e)&&function(e){return Xce.isArray(e)&&!e.some(que)}(e)||(Xce.isFileList(e)||Xce.endsWith(n,"[]"))&&(s=Xce.toArray(e)))return n=Xue(n),s.forEach((function(e,i){!Xce.isUndefined(e)&&null!==e&&t.append(!0===a?$ue([n],i,r):null===a?n:n+"[]",l(e))})),!1;return!!que(e)||(t.append($ue(o,n,r),l(e)),!1)}const u=[],p=Object.assign(Zue,{defaultVisitor:c,convertValue:l,isVisitable:que});if(!Xce.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!Xce.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),Xce.forEach(n,(function(n,r){!0===(!(Xce.isUndefined(n)||null===n)&&o.call(t,n,Xce.isString(r)?r.trim():r,i,p))&&e(n,i?i.concat(r):[r])})),u.pop()}}(e),t}function Jue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Que(e,t){this._pairs=[],e&&Kue(e,this,t)}const epe=Que.prototype;function tpe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function npe(e,t,n){if(!t)return e;const i=n&&n.encode||tpe,o=n&&n.serialize;let r;if(r=o?o(t,n):Xce.isURLSearchParams(t)?t.toString():new Que(t,n).toString(i),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}epe.append=function(e,t){this._pairs.push([e,t])},epe.toString=function(e){const t=e?function(t){return e.call(this,t,Jue)}:Jue;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ipe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Xce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var ope={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rpe={isNode:!0,classes:{URLSearchParams:a.URLSearchParams,FormData:Yue,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};const ape="undefined"!=typeof window&&"undefined"!=typeof document,spe=(lpe="undefined"!=typeof navigator&&navigator.product,ape&&["ReactNative","NativeScript","NS"].indexOf(lpe)<0);var lpe;const cpe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var upe={...Object.freeze({__proto__:null,hasBrowserEnv:ape,hasStandardBrowserEnv:spe,hasStandardBrowserWebWorkerEnv:cpe}),...rpe};function ppe(e){function t(e,n,i,o){let r=e[o++];if("__proto__"===r)return!0;const a=Number.isFinite(+r),s=o>=e.length;if(r=!r&&Xce.isArray(i)?i.length:r,s)return Xce.hasOwnProp(i,r)?i[r]=[i[r],n]:i[r]=n,!a;i[r]&&Xce.isObject(i[r])||(i[r]=[]);return t(e,n,i[r],o)&&Xce.isArray(i[r])&&(i[r]=function(e){const t={},n=Object.keys(e);let i;const o=n.length;let r;for(i=0;i<o;i++)r=n[i],t[r]=e[r];return t}(i[r])),!a}if(Xce.isFormData(e)&&Xce.isFunction(e.entries)){const n={};return Xce.forEachEntry(e,((e,i)=>{t(function(e){return Xce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const dpe={transitional:ope,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=Xce.isObject(e);o&&Xce.isHTMLForm(e)&&(e=new FormData(e));if(Xce.isFormData(e))return i?JSON.stringify(ppe(e)):e;if(Xce.isArrayBuffer(e)||Xce.isBuffer(e)||Xce.isStream(e)||Xce.isFile(e)||Xce.isBlob(e))return e;if(Xce.isArrayBufferView(e))return e.buffer;if(Xce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Kue(e,new upe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return upe.isNode&&Xce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=Xce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Kue(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(Xce.isString(e))try{return(t||JSON.parse)(e),Xce.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||dpe.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&Xce.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $ce.from(e,$ce.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:upe.classes.FormData,Blob:upe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xce.forEach(["delete","get","head","post","put","patch"],(e=>{dpe.headers[e]={}}));var hpe=dpe;const fpe=Xce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const gpe=Symbol("internals");function mpe(e){return e&&String(e).trim().toLowerCase()}function vpe(e){return!1===e||null==e?e:Xce.isArray(e)?e.map(vpe):String(e)}function ype(e,t,n,i,o){return Xce.isFunction(i)?i.call(this,t,n):(o&&(t=n),Xce.isString(t)?Xce.isString(i)?-1!==t.indexOf(i):Xce.isRegExp(i)?i.test(t):void 0:void 0)}class xpe{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(e,t,n){const o=mpe(t);if(!o)throw new Error("header name must be a non-empty string");const r=Xce.findKey(i,o);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||t]=vpe(e))}const r=(e,t)=>Xce.forEach(e,((e,n)=>o(e,n,t)));return Xce.isPlainObject(e)||e instanceof this.constructor?r(e,t):Xce.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?r((e=>{const t={};let n,i,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&fpe[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=mpe(e)){const n=Xce.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(Xce.isFunction(t))return t.call(this,e,n);if(Xce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=mpe(e)){const n=Xce.findKey(this,e);return!(!n||void 0===this[n]||t&&!ype(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=mpe(e)){const o=Xce.findKey(n,e);!o||t&&!ype(0,n[o],o,t)||(delete n[o],i=!0)}}return Xce.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const o=t[n];e&&!ype(0,this[o],o,e,!0)||(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return Xce.forEach(this,((i,o)=>{const r=Xce.findKey(n,o);if(r)return t[r]=vpe(i),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=vpe(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Xce.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Xce.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[gpe]=this[gpe]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=mpe(e);t[i]||(!function(e,t){const n=Xce.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,o){return this[i].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[i]=!0)}return Xce.isArray(e)?e.forEach(i):i(e),this}}xpe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xce.reduceDescriptors(xpe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Xce.freezeMethods(xpe);var bpe=xpe;function _pe(e,t){const n=this||hpe,i=t||n,o=bpe.from(i.headers);let r=i.data;return Xce.forEach(e,(function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)})),o.normalize(),r}function wpe(e){return!(!e||!e.__CANCEL__)}function Spe(e,t,n){$ce.call(this,null==e?"canceled":e,$ce.ERR_CANCELED,t,n),this.name="CanceledError"}function Cpe(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new $ce("Request failed with status code "+n.status,[$ce.ERR_BAD_REQUEST,$ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Mpe(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}Xce.inherits(Spe,$ce,{__CANCEL__:!0});var Tpe=a.parse,Ipe={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Ape=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Dpe(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var kpe,Epe,Ope,Lpe,Npe,Ppe=function(e){var t="string"==typeof e?Tpe(e):e||{},n=t.protocol,i=t.host,o=t.port;if("string"!=typeof i||!i||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(Dpe("npm_config_no_proxy")||Dpe("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),o=i?i[1]:n,r=i?parseInt(i[2]):0;return!(!r||r===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!Ape.call(e,o)):e!==o)}))}(i=i.replace(/:\d*$/,""),o=parseInt(o)||Ipe[n]||0))return"";var r=Dpe("npm_config_"+n+"_proxy")||Dpe(n+"_proxy")||Dpe("npm_config_proxy")||Dpe("all_proxy");return r&&-1===r.indexOf("://")&&(r=n+"://"+r),r},Rpe={exports:{}},zpe={exports:{}},Vpe={exports:{}};function Bpe(){if(Epe)return kpe;Epe=1;var e=1e3,t=60*e,n=60*t,i=24*n,o=7*i,r=365.25*i;function a(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}return kpe=function(s,l){l=l||{};var c=typeof s;if("string"===c&&s.length>0)return function(a){if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*r;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(s);if("number"===c&&isFinite(s))return l.long?function(o){var r=Math.abs(o);if(r>=i)return a(o,r,i,"day");if(r>=n)return a(o,r,n,"hour");if(r>=t)return a(o,r,t,"minute");if(r>=e)return a(o,r,e,"second");return o+" ms"}(s):function(o){var r=Math.abs(o);if(r>=i)return Math.round(o/i)+"d";if(r>=n)return Math.round(o/n)+"h";if(r>=t)return Math.round(o/t)+"m";if(r>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},kpe}function jpe(){if(Lpe)return Ope;return Lpe=1,Ope=function(e){function t(e){let i,o,r,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),r=o-(i||o);n.diff=r,n.prev=i,n.curr=o,i=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,o)=>{if("%%"===i)return"%";a++;const r=t.formatters[o];if("function"==typeof r){const t=e[a];i=r.call(n,t),e.splice(a,1),a--}return i})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),o=i.length;for(n=0;n<o;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=Bpe(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},Ope}var Fpe,Gpe,Wpe,Hpe,Upe,Ype,qpe,Xpe={exports:{}};function $pe(){return Gpe||(Gpe=1,Fpe=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),o=t.indexOf("--");return-1!==i&&(-1===o||i<o)}),Fpe}function Zpe(){if(Hpe)return Wpe;Hpe=1;const e=u,t=$pe(),n=process.env;let i;function o(o){const r=function(o){if(!1===i)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(o&&!o.isTTY&&!0!==i)return 0;const r=i?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in n))||"codeship"===n.CI_NAME?1:r;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,r)}(o);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(r)}return t("no-color")||t("no-colors")||t("color=false")?i=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(i=!0),"FORCE_COLOR"in n&&(i=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),Wpe={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function Kpe(){return Upe||(Upe=1,function(e,n){const i=c,o=t;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let i=0;i<t.length;i++)e.inspectOpts[t[i]]=n.inspectOpts[t[i]]},n.log=function(...e){return process.stderr.write(o.format(...e)+"\n")},n.formatArgs=function(t){const{namespace:i,useColors:o}=this;if(o){const n=this.color,o="[3"+(n<8?n:"8;5;"+n),r=` ${o};1m${i} [0m`;t[0]=r+t[0].split("\n").join("\n"+r),t.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else t[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+t[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):i.isatty(process.stderr.fd)},n.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{const e=Zpe();e&&(e.stderr||e).level>=2&&(n.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}n.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),e.exports=jpe()(n);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}}(Xpe,Xpe.exports)),Xpe.exports}function Jpe(){return Ype||(Ype=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?zpe.exports=(Npe||(Npe=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=jpe()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Vpe,Vpe.exports)),Vpe.exports):zpe.exports=Kpe()),zpe.exports}var Qpe=a,ede=Qpe.URL,tde=o,nde=r,ide=n.Writable,ode=l,rde=function(){if(!qpe){try{qpe=Jpe()("follow-redirects")}catch(e){}"function"!=typeof qpe&&(qpe=function(){})}qpe.apply(null,arguments)},ade=!1;try{ode(new ede)}catch(bae){ade="ERR_INVALID_URL"===bae.code}var sde=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],lde=["abort","aborted","connect","error","socket","timeout"],cde=Object.create(null);lde.forEach((function(e){cde[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}}));var ude=Sde("ERR_INVALID_URL","Invalid URL",TypeError),pde=Sde("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),dde=Sde("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",pde),hde=Sde("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),fde=Sde("ERR_STREAM_WRITE_AFTER_END","write after end"),gde=ide.prototype.destroy||yde;function mde(e,t){ide.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof pde?e:new pde({cause:e}))}},this._performRequest()}function vde(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(i){var o=i+":",r=n[o]=e[i],a=t[i]=Object.create(r);Object.defineProperties(a,{request:{value:function(e,i,r){var a;return a=e,ede&&a instanceof ede?e=_de(e):Mde(e)?e=_de(xde(e)):(r=i,i=bde(e),e={protocol:o}),Tde(i)&&(r=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,Mde(i.host)||Mde(i.hostname)||(i.hostname="::1"),ode.equal(i.protocol,o,"protocol mismatch"),rde("options",i),new mde(i,r)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=a.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),t}function yde(){}function xde(e){var t;if(ade)t=new ede(e);else if(!Mde((t=bde(Qpe.parse(e))).protocol))throw new ude({input:e});return t}function bde(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new ude({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new ude({input:e.href||e});return e}function _de(e,t){var n=t||{};for(var i of sde)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function wde(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function Sde(e,t,n){function i(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function Cde(e,t){for(var n of lde)e.removeListener(n,cde[n]);e.on("error",yde),e.destroy(t)}function Mde(e){return"string"==typeof e||e instanceof String}function Tde(e){return"function"==typeof e}mde.prototype=Object.create(ide.prototype),mde.prototype.abort=function(){Cde(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},mde.prototype.destroy=function(e){return Cde(this._currentRequest,e),gde.call(this,e),this},mde.prototype.write=function(e,t,n){if(this._ending)throw new fde;if(!Mde(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;Tde(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new hde),this.abort()):n&&n()},mde.prototype.end=function(e,t,n){if(Tde(e)?(n=e,e=t=null):Tde(t)&&(n=t,t=null),e){var i=this,o=this._currentRequest;this.write(e,t,(function(){i._ended=!0,o.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},mde.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},mde.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},mde.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),r()}),e),i(t)}function r(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",r),n.removeListener("error",r),n.removeListener("response",r),n.removeListener("close",r),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",i),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){mde.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(mde.prototype,e,{get:function(){return this._currentRequest[e]}})})),mde.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},mde.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,lde))i.on(o,cde[o]);if(this._currentUrl=/^\//.test(this._options.path)?Qpe.format(this._options):this._options.path,this._isRedirect){var r=0,a=this,s=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(r<s.length){var n=s[r++];i.finished||i.write(n.data,n.encoding,e)}else a._ended&&i.end()}()}},mde.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Cde(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new dde;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var r=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],wde(/^content-/i,this._options.headers));var a=wde(/^host$/i,this._options.headers),s=xde(this._currentUrl),l=a||s.host,c=/^\w+:/.test(i)?this._currentUrl:Qpe.format(Object.assign(s,{host:l})),u=function(e,t){return ade?new ede(e,t):xde(Qpe.resolve(t,e))}(i,c);if(rde("redirecting to",u.href),this._isRedirect=!0,_de(u,this._options),(u.protocol!==s.protocol&&"https:"!==u.protocol||u.host!==l&&!function(e,t){ode(Mde(e)&&Mde(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(u.host,l))&&wde(/^(?:authorization|cookie)$/i,this._options.headers),Tde(o)){var p={headers:e.headers,statusCode:t},d={url:c,method:r,headers:n};o(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()},Rpe.exports=vde({http:tde,https:nde}),Rpe.exports.wrap=vde;var Ide=g(Rpe.exports);const Ade="1.6.7";function Dde(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const kde=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Ede(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o,r=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=i[a];o||(o=l),n[r]=s,i[r]=l;let u=a,p=0;for(;u!==r;)p+=n[u++],u%=e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),l-o<t)return;const d=c&&l-c;return d?Math.round(1e3*p/d):void 0}}const Ode=Symbol("internals");class Lde extends n.Transform{constructor(e){super({readableHighWaterMark:(e=Xce.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!Xce.isUndefined(t[e])))).chunkSize});const t=this,n=this[Ode]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=Ede(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}));let o=0;n.updateProgress=function(e,t){let n=0;const i=1e3/t;let o=null;return function(t,r){const a=Date.now();if(t||a-n>i)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,r);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,r))),i-(a-n)))}}((function(){const e=n.length,r=n.bytesSeen,a=r-o;if(!a||t.destroyed)return;const s=i(a);o=r,process.nextTick((()=>{t.emit("progress",{loaded:r,total:e,progress:e?r/e:void 0,bytes:a,rate:s||void 0,estimated:s&&e&&r<=e?(e-r)/s:void 0})}))}),n.ticksRate);const r=()=>{n.updateProgress(!0)};this.once("end",r),this.once("error",r)}_read(e){const t=this[Ode];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this,o=this[Ode],r=o.maxRate,a=this.readableHighWaterMark,s=o.timeWindow,l=r/(1e3/s),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*l):0;const u=(e,t)=>{const n=Buffer.byteLength(e);let u,p=null,d=a,h=0;if(r){const e=Date.now();(!o.ts||(h=e-o.ts)>=s)&&(o.ts=e,u=l-o.bytes,o.bytes=u<0?-u:0,h=0),u=l-o.bytes}if(r){if(u<=0)return setTimeout((()=>{t(null,e)}),s-h);u<d&&(d=u)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),function(e,t){const n=Buffer.byteLength(e);o.bytesSeen+=n,o.bytes+=n,o.isCaptured&&o.updateProgress(),i.push(e)?process.nextTick(t):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(t)}}(e,p?()=>{process.nextTick(t,null,p)}:t)};u(e,(function e(t,i){if(t)return n(t);i?u(i,e):n(null)}))}setLength(e){return this[Ode].length=+e,this}}var Nde=Lde;const{asyncIterator:Pde}=Symbol,Rde=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Pde]?yield*e[Pde]():yield e},zde=Xce.ALPHABET.ALPHA_DIGIT+"-_",Vde=new t.TextEncoder,Bde="\r\n",jde=Vde.encode(Bde);class Fde{constructor(e,t){const{escapeName:n}=this.constructor,i=Xce.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${Bde}`;i?t=Vde.encode(String(t).replace(/\r?\n|\r\n?/g,Bde)):o+=`Content-Type: ${t.type||"application/octet-stream"}${Bde}`,this.headers=Vde.encode(o+Bde),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;Xce.isTypedArray(e)?yield e:yield*Rde(e),yield jde}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class Gde extends n.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const Wde=(e,t)=>Xce.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then((e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}}),i)}:e,Hde={flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH},Ude={flush:p.constants.BROTLI_OPERATION_FLUSH,finishFlush:p.constants.BROTLI_OPERATION_FLUSH},Yde=Xce.isFunction(p.createBrotliDecompress),{http:qde,https:Xde}=Ide,$de=/https:?/,Zde=upe.protocols.map((e=>e+":"));function Kde(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Jde(e,t,n){let i=t;if(!i&&!1!==i){const e=Ppe(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){Jde(e,t,e.href)}}const Qde="undefined"!=typeof process&&"process"===Xce.kindOf(process),ehe=(e,t)=>(({address:e,family:t})=>{if(!Xce.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(Xce.isObject(e)?e:{address:e,family:t});var the=Qde&&function(e){return i=async function(i,a,s){let{data:l,lookup:c,family:u}=e;const{responseType:h,responseEncoding:f}=e,g=e.method.toUpperCase();let m,v,y=!1;if(c){const e=Wde(c,(e=>Xce.isArray(e)?e:[e]));c=(t,n,i)=>{e(t,n,((e,t,o)=>{if(e)return i(e);const r=Xce.isArray(t)?t.map((e=>ehe(e))):[ehe(t,o)];n.all?i(e,r):i(e,r[0].address,r[0].family)}))}}const x=new d,b=()=>{e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_),x.removeAllListeners()};function _(t){x.emit("abort",!t||t.type?new Spe(null,e,v):t)}s(((e,t)=>{m=!0,t&&(y=!0,b())})),x.once("abort",a),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(_),e.signal&&(e.signal.aborted?_():e.signal.addEventListener("abort",_)));const w=Mpe(e.baseURL,e.url),S=new URL(w,"http://localhost"),C=S.protocol||Zde[0];if("data:"===C){let t;if("GET"!==g)return Cpe(i,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{t=function(e,t,n){const i=n&&n.Blob||upe.classes.Blob,o=Dde(e);if(void 0===t&&i&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=kde.exec(e);if(!n)throw new $ce("Invalid URL",$ce.ERR_INVALID_URL);const r=n[1],a=n[2],s=n[3],l=Buffer.from(decodeURIComponent(s),a?"base64":"utf8");if(t){if(!i)throw new $ce("Blob is not supported",$ce.ERR_NOT_SUPPORT);return new i([l],{type:r})}return l}throw new $ce("Unsupported protocol "+o,$ce.ERR_NOT_SUPPORT)}(e.url,"blob"===h,{Blob:e.env&&e.env.Blob})}catch(t){throw $ce.from(t,$ce.ERR_BAD_REQUEST,e)}return"text"===h?(t=t.toString(f),f&&"utf8"!==f||(t=Xce.stripBOM(t))):"stream"===h&&(t=n.Readable.from(t)),Cpe(i,a,{data:t,status:200,statusText:"OK",headers:new bpe,config:e})}if(-1===Zde.indexOf(C))return a(new $ce("Unsupported protocol "+C,$ce.ERR_BAD_REQUEST,e));const M=bpe.from(e.headers).normalize();M.set("User-Agent","axios/"+Ade,!1);const T=e.onDownloadProgress,I=e.onUploadProgress,A=e.maxRate;let D,k;if(Xce.isSpecCompliantForm(l)){const e=M.getContentType(/boundary=([-_\w\d]{10,70})/i);l=((e,t,i)=>{const{tag:o="form-data-boundary",size:r=25,boundary:a=o+"-"+Xce.generateString(r,zde)}=i||{};if(!Xce.isFormData(e))throw TypeError("FormData instance required");if(a.length<1||a.length>70)throw Error("boundary must be 10-70 characters long");const s=Vde.encode("--"+a+Bde),l=Vde.encode("--"+a+"--"+Bde+Bde);let c=l.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new Fde(e,t);return c+=n.size,n}));c+=s.byteLength*u.length,c=Xce.toFiniteNumber(c);const p={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),n.Readable.from(async function*(){for(const e of u)yield s,yield*e.encode();yield l}())})(l,(e=>{M.set(e)}),{tag:`axios-${Ade}-boundary`,boundary:e&&e[1]||void 0})}else if(Xce.isFormData(l)&&Xce.isFunction(l.getHeaders)){if(M.set(l.getHeaders()),!M.hasContentLength())try{const e=await t.promisify(l.getLength).call(l);Number.isFinite(e)&&e>=0&&M.setContentLength(e)}catch(e){}}else if(Xce.isBlob(l))l.size&&M.setContentType(l.type||"application/octet-stream"),M.setContentLength(l.size||0),l=n.Readable.from(Rde(l));else if(l&&!Xce.isStream(l)){if(Buffer.isBuffer(l));else if(Xce.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else{if(!Xce.isString(l))return a(new $ce("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$ce.ERR_BAD_REQUEST,e));l=Buffer.from(l,"utf-8")}if(M.setContentLength(l.length,!1),e.maxBodyLength>-1&&l.length>e.maxBodyLength)return a(new $ce("Request body larger than maxBodyLength limit",$ce.ERR_BAD_REQUEST,e))}const E=Xce.toFiniteNumber(M.getContentLength());let O,L;Xce.isArray(A)?(D=A[0],k=A[1]):D=k=A,l&&(I||D)&&(Xce.isStream(l)||(l=n.Readable.from(l,{objectMode:!1})),l=n.pipeline([l,new Nde({length:E,maxRate:Xce.toFiniteNumber(D)})],Xce.noop),I&&l.on("progress",(e=>{I(Object.assign(e,{upload:!0}))}))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&S.username&&(O=S.username+":"+S.password),O&&M.delete("authorization");try{L=npe(S.pathname+S.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,a(n)}M.set("Accept-Encoding","gzip, compress, deflate"+(Yde?", br":""),!1);const N={path:L,method:g,headers:M.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:C,family:u,beforeRedirect:Kde,beforeRedirects:{}};let P;!Xce.isUndefined(c)&&(N.lookup=c),e.socketPath?N.socketPath=e.socketPath:(N.hostname=S.hostname,N.port=S.port,Jde(N,e.proxy,C+"//"+S.hostname+(S.port?":"+S.port:"")+N.path));const R=$de.test(N.protocol);if(N.agent=R?e.httpsAgent:e.httpAgent,e.transport?P=e.transport:0===e.maxRedirects?P=R?r:o:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),e.beforeRedirect&&(N.beforeRedirects.config=e.beforeRedirect),P=R?Xde:qde),e.maxBodyLength>-1?N.maxBodyLength=e.maxBodyLength:N.maxBodyLength=1/0,e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser),v=P.request(N,(function(t){if(v.destroyed)return;const o=[t],r=+t.headers["content-length"];if(T){const e=new Nde({length:Xce.toFiniteNumber(r),maxRate:Xce.toFiniteNumber(k)});T&&e.on("progress",(e=>{T(Object.assign(e,{download:!0}))})),o.push(e)}let s=t;const l=t.req||v;if(!1!==e.decompress&&t.headers["content-encoding"])switch("HEAD"!==g&&204!==t.statusCode||delete t.headers["content-encoding"],(t.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(p.createUnzip(Hde)),delete t.headers["content-encoding"];break;case"deflate":o.push(new Gde),o.push(p.createUnzip(Hde)),delete t.headers["content-encoding"];break;case"br":Yde&&(o.push(p.createBrotliDecompress(Ude)),delete t.headers["content-encoding"])}s=o.length>1?n.pipeline(o,Xce.noop):o[0];const c=n.finished(s,(()=>{c(),b()})),u={status:t.statusCode,statusText:t.statusMessage,headers:new bpe(t.headers),config:e,request:l};if("stream"===h)u.data=s,Cpe(i,a,u);else{const t=[];let n=0;s.on("data",(function(i){t.push(i),n+=i.length,e.maxContentLength>-1&&n>e.maxContentLength&&(y=!0,s.destroy(),a(new $ce("maxContentLength size of "+e.maxContentLength+" exceeded",$ce.ERR_BAD_RESPONSE,e,l)))})),s.on("aborted",(function(){if(y)return;const t=new $ce("maxContentLength size of "+e.maxContentLength+" exceeded",$ce.ERR_BAD_RESPONSE,e,l);s.destroy(t),a(t)})),s.on("error",(function(t){v.destroyed||a($ce.from(t,null,e,l))})),s.on("end",(function(){try{let e=1===t.length?t[0]:Buffer.concat(t);"arraybuffer"!==h&&(e=e.toString(f),f&&"utf8"!==f||(e=Xce.stripBOM(e))),u.data=e}catch(t){return a($ce.from(t,null,e,u.request,u))}Cpe(i,a,u)}))}x.once("abort",(e=>{s.destroyed||(s.emit("error",e),s.destroy())}))})),x.once("abort",(e=>{a(e),v.destroy(e)})),v.on("error",(function(t){a($ce.from(t,null,e,v))})),v.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void a(new $ce("error trying to parse `config.timeout` to int",$ce.ERR_BAD_OPTION_VALUE,e,v));v.setTimeout(t,(function(){if(m)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||ope;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),a(new $ce(t,n.clarifyTimeoutError?$ce.ETIMEDOUT:$ce.ECONNABORTED,e,v)),_()}))}if(Xce.isStream(l)){let t=!1,n=!1;l.on("end",(()=>{t=!0})),l.once("error",(e=>{n=!0,v.destroy(e)})),l.on("close",(()=>{t||n||_(new Spe("Request stream has been aborted",e,v))})),l.pipe(v)}else v.end(l)},new Promise(((e,t)=>{let n,o;const r=(e,t)=>{o||(o=!0,n&&n(e,t))},a=e=>{r(e,!0),t(e)};i((t=>{r(t),e(t)}),a,(e=>n=e)).catch(a)}));var i},nhe=upe.hasStandardBrowserEnv?{write(e,t,n,i,o,r){const a=[e+"="+encodeURIComponent(t)];Xce.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Xce.isString(i)&&a.push("path="+i),Xce.isString(o)&&a.push("domain="+o),!0===r&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},ihe=upe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=Xce.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ohe(e,t){let n=0;const i=Ede(50,250);return o=>{const r=o.loaded,a=o.lengthComputable?o.total:void 0,s=r-n,l=i(s);n=r;const c={loaded:r,total:a,progress:a?r/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&r<=a?(a-r)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var rhe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const o=bpe.from(e.headers).normalize();let r,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}if(Xce.isFormData(i))if(upe.hasStandardBrowserEnv||upe.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const p=Mpe(e.baseURL,e.url);function d(){if(!u)return;const i=bpe.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());Cpe((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),npe(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new $ce("Request aborted",$ce.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new $ce("Network Error",$ce.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||ope;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new $ce(t,i.clarifyTimeoutError?$ce.ETIMEDOUT:$ce.ECONNABORTED,e,u)),u=null},upe.hasStandardBrowserEnv&&(l&&Xce.isFunction(l)&&(l=l(e)),l||!1!==l&&ihe(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&nhe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===i&&o.setContentType(null),"setRequestHeader"in u&&Xce.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Xce.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",ohe(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ohe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=t=>{u&&(n(!t||t.type?new Spe(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const h=Dde(p);h&&-1===upe.protocols.indexOf(h)?n(new $ce("Unsupported protocol "+h+":",$ce.ERR_BAD_REQUEST,e)):u.send(i||null)}))};const ahe={http:the,xhr:rhe};Xce.forEach(ahe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const she=e=>`- ${e}`,lhe=e=>Xce.isFunction(e)||null===e||!1===e;var che=e=>{e=Xce.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!lhe(n)&&(i=ahe[(t=String(n)).toLowerCase()],void 0===i))throw new $ce(`Unknown adapter '${t}'`);if(i)break;o[t||"#"+r]=i}if(!i){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $ce("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(she).join("\n"):" "+she(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function uhe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Spe(null,e)}function phe(e){uhe(e),e.headers=bpe.from(e.headers),e.data=_pe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return che(e.adapter||hpe.adapter)(e).then((function(t){return uhe(e),t.data=_pe.call(e,e.transformResponse,t),t.headers=bpe.from(t.headers),t}),(function(t){return wpe(t)||(uhe(e),t&&t.response&&(t.response.data=_pe.call(e,e.transformResponse,t.response),t.response.headers=bpe.from(t.response.headers))),Promise.reject(t)}))}const dhe=e=>e instanceof bpe?e.toJSON():e;function hhe(e,t){t=t||{};const n={};function i(e,t,n){return Xce.isPlainObject(e)&&Xce.isPlainObject(t)?Xce.merge.call({caseless:n},e,t):Xce.isPlainObject(t)?Xce.merge({},t):Xce.isArray(t)?t.slice():t}function o(e,t,n){return Xce.isUndefined(t)?Xce.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function r(e,t){if(!Xce.isUndefined(t))return i(void 0,t)}function a(e,t){return Xce.isUndefined(t)?Xce.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,r){return r in t?i(n,o):r in e?i(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(dhe(e),dhe(t),!0)};return Xce.forEach(Object.keys(Object.assign({},e,t)),(function(i){const r=l[i]||o,a=r(e[i],t[i],i);Xce.isUndefined(a)&&r!==s||(n[i]=a)})),n}const fhe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{fhe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ghe={};fhe.transitional=function(e,t,n){function i(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new $ce(i(o," has been removed"+(t?" in "+t:"")),$ce.ERR_DEPRECATED);return t&&!ghe[o]&&(ghe[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}};var mhe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $ce("options must be an object",$ce.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const r=i[o],a=t[r];if(a){const t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new $ce("option "+r+" must be "+n,$ce.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $ce("Unknown option "+r,$ce.ERR_BAD_OPTION)}},validators:fhe};const vhe=mhe.validators;class yhe{constructor(e){this.defaults=e,this.interceptors={request:new ipe,response:new ipe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=hhe(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&mhe.assertOptions(n,{silentJSONParsing:vhe.transitional(vhe.boolean),forcedJSONParsing:vhe.transitional(vhe.boolean),clarifyTimeoutError:vhe.transitional(vhe.boolean)},!1),null!=i&&(Xce.isFunction(i)?t.paramsSerializer={serialize:i}:mhe.assertOptions(i,{encode:vhe.function,serialize:vhe.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&Xce.merge(o.common,o[t.method]);o&&Xce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=bpe.concat(r,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,p=0;if(!s){const e=[phe.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=a.length;let d=t;for(p=0;p<u;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=phe.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=l.length;p<u;)c=c.then(l[p++],l[p++]);return c}getUri(e){return npe(Mpe((e=hhe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Xce.forEach(["delete","get","head","options"],(function(e){yhe.prototype[e]=function(t,n){return this.request(hhe(n||{},{method:e,url:t,data:(n||{}).data}))}})),Xce.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(hhe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}yhe.prototype[e]=t(),yhe.prototype[e+"Form"]=t(!0)}));var xhe=yhe;class bhe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,o){n.reason||(n.reason=new Spe(e,i,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new bhe((function(t){e=t})),cancel:e}}}var _he=bhe;const whe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(whe).forEach((([e,t])=>{whe[t]=e}));var She=whe;const Che=function e(t){const n=new xhe(t),i=fce(xhe.prototype.request,n);return Xce.extend(i,xhe.prototype,n,{allOwnKeys:!0}),Xce.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(hhe(t,n))},i}(hpe);Che.Axios=xhe,Che.CanceledError=Spe,Che.CancelToken=_he,Che.isCancel=wpe,Che.VERSION=Ade,Che.toFormData=Kue,Che.AxiosError=$ce,Che.Cancel=Che.CanceledError,Che.all=function(e){return Promise.all(e)},Che.spread=function(e){return function(t){return e.apply(null,t)}},Che.isAxiosError=function(e){return Xce.isObject(e)&&!0===e.isAxiosError},Che.mergeConfig=hhe,Che.AxiosHeaders=bpe,Che.formToJSON=e=>ppe(Xce.isHTMLForm(e)?new FormData(e):e),Che.getAdapter=che,Che.HttpStatusCode=She,Che.default=Che;const Mhe=["CN10201912011"],The=["CN10829902001","2000","1000","CN10201812011"],Ihe=["CN10829902004","CN10201812021","CN10201812022","CN10201912021","CN10201912022"],Ahe=Che.create({withCredentials:!0});Ahe.interceptors.response.use((e=>{const t=e.data,{success:n,errorMsg:i,errorCode:o}=t;if(The.includes(o)){const e=encodeURIComponent(window.parent.location.href);window.location.href=i+e}if(Mhe.includes(o)){const e=encodeURIComponent(encodeURIComponent(window.parent.location.href));window.location.href=i+e}return n?t:Promise.reject({...t,message:i})}),(e=>(console.error("network error",e),Promise.reject(e))));const Dhe=async e=>{const t=await Ahe(e);return Promise.resolve(t)};class khe{static async getConfigInfo(e){return Xm(await Dhe({url:e?.url,method:"GET"}))}static async getDataInfoList(e){return Xm(await Dhe({url:e?.url,method:"GET",withCredentials:!0}))}}const Ehe=dn.div`
|
|
45
|
+
${e=>e.$hidden&&cn`
|
|
46
|
+
display: none;
|
|
47
|
+
`}
|
|
48
|
+
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
position: relative;
|
|
52
|
+
background-color: #fff;
|
|
53
|
+
padding: 20px;
|
|
54
|
+
border-radius: 12px;
|
|
55
|
+
box-shadow: 0 2px 4px 0px rgba(39, 46, 58, 0.12);
|
|
56
|
+
background: rgba(255, 255, 255, 0.8);
|
|
57
|
+
backdrop-filter: blur(30px);
|
|
58
|
+
|
|
59
|
+
${e=>cn`
|
|
60
|
+
background-color: ${e.theme.cardBackgroundColor};
|
|
61
|
+
`};
|
|
62
|
+
|
|
63
|
+
.cn-next-loading-wrap {
|
|
64
|
+
width: 100% !important;
|
|
65
|
+
height: 100% !important;
|
|
66
|
+
}
|
|
67
|
+
`;dn.div`
|
|
68
|
+
${e=>e.$show&&cn`
|
|
69
|
+
display: none;
|
|
70
|
+
`}
|
|
71
|
+
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
position: relative;
|
|
75
|
+
padding: 0.32rem;
|
|
76
|
+
border-radius: 0.24rem;
|
|
77
|
+
box-shadow: 0 0.02rem 0.04rem 0 rgba(39, 46, 58, 0.12);
|
|
78
|
+
background: rgba(255, 255, 255, 0.8);
|
|
79
|
+
backdrop-filter: blur(30px);
|
|
80
|
+
|
|
81
|
+
${e=>cn`
|
|
82
|
+
background-color: ${e.theme.cardBackgroundColor};
|
|
83
|
+
`};
|
|
84
|
+
|
|
85
|
+
.cn-next-loading-wrap {
|
|
86
|
+
width: 100% !important;
|
|
87
|
+
height: 100% !important;
|
|
88
|
+
}
|
|
89
|
+
`;const Ohe=dn.div`
|
|
90
|
+
color: ${e=>e.theme.color??"#000"};
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
line-height: 1;
|
|
94
|
+
margin-bottom: 8px;
|
|
95
|
+
${({$checked:e=!0})=>!e&&cn`
|
|
96
|
+
color: ${e=>e.theme.color??"#6d7a90"};
|
|
97
|
+
`}
|
|
98
|
+
`;dn.div`
|
|
99
|
+
color: ${e=>e.theme.color??"#272F3D"};
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
font-size: 0.32rem;
|
|
102
|
+
line-height: 1;
|
|
103
|
+
margin-bottom: 0.2rem;
|
|
104
|
+
|
|
105
|
+
${({$checked:e=!0})=>!e&&cn`
|
|
106
|
+
color: ${e=>e.theme.color??"#6d7a90"};
|
|
107
|
+
`}
|
|
108
|
+
`,dn.div`
|
|
109
|
+
width: 30px;
|
|
110
|
+
height: 30px;
|
|
111
|
+
border-radius: 8px;
|
|
112
|
+
padding: 8px;
|
|
113
|
+
box-shadow: 0 2px 4px 0px rgba(39, 46, 58, 0.12);
|
|
114
|
+
background: no-repeat center / 16px 16px url('${e=>e.$src}');
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
background-color: #fff;
|
|
117
|
+
|
|
118
|
+
${e=>cn`
|
|
119
|
+
background-color: ${e.theme.iconBackgroundColor};
|
|
120
|
+
`}
|
|
121
|
+
`;const Lhe=dn.span`
|
|
122
|
+
color: #6d7a90;
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
padding-left: 5px;
|
|
125
|
+
display: inline-block;
|
|
126
|
+
`,Nhe=({label:e,value:t,unit:n,jumpUrl:i,isUnitWrap:o,...r})=>_.jsxs("div",{...r,children:[_.jsx(Phe,{children:_.jsxs("div",{"data-value":!0,onClick:qm(i),style:{...!!i&&{cursor:"pointer"}},children:[t,!o&&_.jsx(Lhe,{children:n})]})}),o&&_.jsx(Lhe,{children:n})]}),Phe=dn.div`
|
|
127
|
+
line-height: 1;
|
|
128
|
+
margin-top: 12px;
|
|
129
|
+
margin-bottom: 8px;
|
|
130
|
+
|
|
131
|
+
[data-label] {
|
|
132
|
+
width: 106px;
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
margin-bottom: 8px;
|
|
135
|
+
display: flex;
|
|
136
|
+
|
|
137
|
+
${e=>!!e.unit&&cn`
|
|
138
|
+
&::after {
|
|
139
|
+
content: '(${e.unit})';
|
|
140
|
+
display: inline-block;
|
|
141
|
+
color: #6d7a90;
|
|
142
|
+
}
|
|
143
|
+
`}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-value] {
|
|
147
|
+
font-size: 30px;
|
|
148
|
+
line-height: 16px;
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
color: #000;
|
|
151
|
+
}
|
|
152
|
+
`,Rhe=(t,n)=>{const[i,o]=e.useState(!1);return e.useEffect((()=>{if(t.current){const e=new IntersectionObserver((n=>{n[0].isIntersecting&&(o(!0),e.unobserve(t.current))}),n);return e.observe(t.current),()=>{e.disconnect()}}}),[t,n]),i};var zhe;function Vhe({initData:t=!0,defaultValue:n,requestData:i,service:o,children:r,errorBoxHeight:a,debounceWait:s,isInside:l,noEmptyBox:c,...u}){const[p,d]=e.useState(zhe.NONE),[h,f]=e.useState(n),g=JSON.stringify(i),m=e.useRef(null),v=Rhe(m),y=e.useCallback((async()=>{try{d(zhe.NONE),f(await o({...i,requestId:void 0},l)),d(zhe.SUCCESS)}catch(e){Ihe.includes(e.errorCode)?d(zhe.NO_ACCESS):d(zhe.ERROR)}}),[g]);e.useEffect((()=>{v&&t&&y()}),[v,t,y]);const{img:x,remark:b,btn:w}=Fhe.get(p)??{};return _.jsxs(Bhe,{ref:m,...u,children:[p===zhe.SUCCESS&&!!h&&r(h),!c&&[zhe.ERROR,zhe.NO_ACCESS,zhe.NO_ACCESS].includes(p)&&_.jsxs(jhe,{style:{height:a},children:[_.jsx("img",{"data-img":!0,src:x,alt:""}),_.jsxs("div",{"data-msg":!0,children:[_.jsx("span",{"data-remark":!0,children:b}),_.jsx("span",{"data-btn":!0,onClick:y,children:w})]})]})]})}!function(e){e[e.NONE=0]="NONE",e[e.SUCCESS=1]="SUCCESS",e[e.ERROR=2]="ERROR",e[e.NO_ACCESS=3]="NO_ACCESS",e[e.NO_DATA=4]="NO_DATA"}(zhe||(zhe={}));const Bhe=dn.div`
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 100%;
|
|
155
|
+
|
|
156
|
+
&::-webkit-scrollbar {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
`,jhe=dn.div`
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 60%;
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
margin: auto;
|
|
166
|
+
|
|
167
|
+
[data-img] {
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: 50%;
|
|
170
|
+
margin-bottom: 12px;
|
|
171
|
+
object-fit: contain;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-msg] {
|
|
175
|
+
font-size: 12px;
|
|
176
|
+
line-height: 1;
|
|
177
|
+
|
|
178
|
+
[data-remark] {
|
|
179
|
+
color: #6d7a90;
|
|
180
|
+
margin-right: 8px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[data-btn] {
|
|
184
|
+
color: #3379ff;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
`,Fhe=(new Map).set(zhe.ERROR,{img:"https://img.alicdn.com/imgextra/i4/O1CN01vg4MQE1e6WfWTdtx4_!!6000000003822-55-tps-190-120.svg",remark:"数据加载失败",btn:"刷新一下~"}).set(zhe.NO_ACCESS,{img:"https://img.alicdn.com/imgextra/i1/O1CN01Iz7oDf1IqrBik7NYy_!!6000000000945-55-tps-190-120.svg",remark:"你暂无权限",btn:""}).set(zhe.NO_DATA,{img:"https://img.alicdn.com/imgextra/i4/O1CN01g0QafV1rIyRHX6HA9_!!6000000005609-55-tps-190-120.svg",remark:"暂无数据",btn:""}),Ghe=({configData:e,orgLevelVal:t})=>_.jsx(Vhe,{errorBoxHeight:90,requestData:{url:Ym(Um,{id:e.id,dataAccVal:e.dataAccCode,orgLevelVal:t})},service:khe.getDataInfoList,children:t=>{const n=e.indicatorConfig[0];return _.jsxs(h.CnBox,{direction:"row",justify:"space-between",children:[_.jsx("div",{children:_.jsx(Nhe,{jumpUrl:`/#/indicator-center/details?id=${n.id}`,label:e.name,unit:$m(Zm,e.indicatorConfig[0]?.unit),value:t.indicator?.value,isUnitWrap:!0})}),_.jsx(I7,{color:e.commonConfig.color,data:t.list0??[],chartType:exports.WinChartType.MINI_AREA,style:{width:160,height:84}})]})}}),Whe=({direction:e="row",message:t="无内容",style:n,className:i,isDark:o})=>_.jsxs(h.Box,{direction:e,justify:"center",align:"center",spacing:20,className:i,style:{transform:"translateY(20px)",...n},children:[_.jsx("img",{alt:"",src:o?"https://img.alicdn.com/imgextra/i1/O1CN01A8j5NM26FVeLRKiQo_!!6000000007632-55-tps-160-104.svg":"https://img.alicdn.com/imgextra/i4/O1CN01g0QafV1rIyRHX6HA9_!!6000000005609-55-tps-190-120.svg",style:{width:120,height:120,objectFit:"contain"}}),_.jsx("span",{style:{fontSize:14,fontWeight:500,color:"#6D7A90"},children:t})]}),Hhe=({src:e,size:t=12,onClick:n,show:i=!0,style:o,...r})=>_.jsx("img",{alt:"",src:e,onClick:e=>{n&&(e.stopPropagation(),n())},...r,style:{width:t,height:t,objectFit:"contain",display:i?"inline-block":"none",...n&&{cursor:"pointer"},...o}}),Uhe=({data:e=[],showHandle:t})=>_.jsx(Yhe,{children:Jm(e)?e.map(((e,n)=>_.jsxs(qhe,{children:[_.jsxs(h.CnBox,{direction:"row",spacing:8,children:[_.jsx(Hhe,{size:24,src:["TERMINATED","COMPLETED"].includes(e.status)?Zhe:$he}),_.jsxs("div",{children:[_.jsx("div",{"data-title":!0,onClick:qm(e.url),style:{...e.title.startsWith("【")&&{transform:"translateX(-8px)"}},children:e.title}),_.jsxs("div",{"data-extra":!0,children:[_.jsx("span",{children:Fle.get({id:"InitiatoritemApplicantName",dm:"发起人:{itemApplicantName}"},{itemApplicantName:e.applicantName})}),_.jsx("span",{children:e.applyTime}),!!e.handlerName&&_.jsx("span",{children:Fle.get({id:"CurrentApproveritemHandlerName",dm:"当前审批人:{itemHandlerName}"},{itemHandlerName:e.handlerName})})]})]})]}),t&&_.jsx(Xhe,{onClick:qm(e.url),children:"👉去处理"})]},n))):_.jsx(Whe,{message:Fle.get({id:"TERM.NoData",dm:"暂无数据"}),style:{transform:"translateY(120px)"}})}),Yhe=dn.div`
|
|
189
|
+
display: grid;
|
|
190
|
+
grid: auto-flow 64px / 1fr;
|
|
191
|
+
gap: 0;
|
|
192
|
+
line-height: 1;
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
height: 310px;
|
|
196
|
+
margin-bottom: 12px;
|
|
197
|
+
place-items: center stretch;
|
|
198
|
+
`,qhe=dn.div`
|
|
199
|
+
height: 100%;
|
|
200
|
+
border-top: solid #eee 1px;
|
|
201
|
+
display: grid;
|
|
202
|
+
grid: auto-flow / 1fr 70px;
|
|
203
|
+
place-items: center stretch;
|
|
204
|
+
|
|
205
|
+
[data-title] {
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
font-weight: 500;
|
|
208
|
+
font-size: 14px;
|
|
209
|
+
line-height: 1;
|
|
210
|
+
margin-bottom: 8px;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
color: #272f3d;
|
|
214
|
+
text-overflow: ellipsis;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[data-extra] {
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
color: #5d677a;
|
|
220
|
+
line-height: 1;
|
|
221
|
+
span {
|
|
222
|
+
margin-right: 12px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
`,Xhe=dn.div`
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
color: #272f3d;
|
|
228
|
+
font-size: 12px;
|
|
229
|
+
height: 22px;
|
|
230
|
+
text-align: center;
|
|
231
|
+
line-height: 21px;
|
|
232
|
+
border: solid #ddd 1px;
|
|
233
|
+
/* width: 80px; */
|
|
234
|
+
border-radius: 12px;
|
|
235
|
+
`,$he="https://img.alicdn.com/imgextra/i3/O1CN01HvOfeP1XOCe517Amr_!!6000000002913-55-tps-31-29.svg",Zhe="https://img.alicdn.com/imgextra/i3/O1CN01jr6Aiq1EIjDAqHXkZ_!!6000000000329-55-tps-30-28.svg";class Khe{static async getMatterDataList(e){return Xm(await Dhe({url:"/workbench/common/queryWorkflowList",method:"POST",data:e}))}static async queryWinRankList(){return Xm(await Dhe({url:"/workbench/common/queryWinRankList"}))}}const Jhe=dn((function({dataList:e=[],value:t,onChange:n,...i}){return _.jsx("div",{...i,children:e.map(((i,o)=>_.jsx("div",{"data-tab-item":!0,"data-tab-last":o===e.length-1,"data-checked":i.value===t,onClick:()=>n(i.value),children:i.label},o)))})}))`
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
position: relative;
|
|
239
|
+
border-radius: 500px;
|
|
240
|
+
line-height: 1;
|
|
241
|
+
color: #5d677a;
|
|
242
|
+
font-size: 14px;
|
|
243
|
+
margin-bottom: 16px;
|
|
244
|
+
[data-tab-item] {
|
|
245
|
+
white-space: nowrap;
|
|
246
|
+
text-overflow: ellipsis;
|
|
247
|
+
overflow: hidden;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
user-select: none;
|
|
250
|
+
transition: all 0.3s;
|
|
251
|
+
position: relative;
|
|
252
|
+
margin-right: ${24}px;
|
|
253
|
+
z-index: 1;
|
|
254
|
+
&[data-tab-last='true'] {
|
|
255
|
+
margin-right: 0px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&[data-checked='true'] {
|
|
259
|
+
font-weight: 700;
|
|
260
|
+
color: #272f3d;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
`,Qhe=[{label:Fle.get({id:"TodoList",dm:"待办清单"}),value:vn.PENDING},{label:Fle.get({id:"ISentOut",dm:"我发出的"}),value:vn.CREATE},{label:Fle.get({id:"ItemsAlreadyHandled",dm:"已办事项"}),value:vn.COMPLETE}],efe=({style:t})=>{const[n,i]=e.useState(vn.PENDING);return _.jsxs("div",{style:t,children:[_.jsx(Jhe,{value:n,onChange:i,dataList:Qhe}),Qhe.map((e=>_.jsx(tfe,{show:e.value===n,workflowType:e.value,onChangeWorkflowType:i},e.value)))]})},tfe=({show:t,workflowType:n,onChangeWorkflowType:i})=>{const[o,r]=e.useState(!1),[a,s]=e.useState({currentPage:1,pageSize:5}),l=e.useRef();return e.useEffect((()=>{o&&!Jm(l.current)&&(n===vn.PENDING?i(vn.CREATE):n===vn.CREATE&&i(vn.COMPLETE))}),[o,i,n]),_.jsx("div",{style:{display:t?"block":"none"},children:_.jsx(Vhe,{initData:t,errorBoxHeight:300,requestData:{workflowType:n,currentPage:a.currentPage,pageSize:a.pageSize},service:Khe.getMatterDataList,children:e=>(r(!0),l.current=e.tableData,_.jsxs("div",{children:[_.jsx(Uhe,{data:e.tableData,showHandle:"PENDING"===n}),_.jsx(h.Box,{direction:"row",justify:"flex-end",children:_.jsx(h.CnPagination,{size:"small",shape:"arrow-only",total:e.paging.totalCount,current:a.currentPage,onChange:e=>s({...a,currentPage:e}),pageSize:a.pageSize})})]}))})})},nfe=({configData:e,unit:t,orgLevelVal:n})=>_.jsx(Vhe,{noEmptyBox:!0,errorBoxHeight:50,requestData:{url:Ym(Um,{id:e.id,dataAccVal:e.dataAccCode,orgLevelVal:n})},service:khe.getDataInfoList,style:{height:"auto"},children:n=>{const i=e.indicatorConfig[0];return _.jsx(Nhe,{jumpUrl:`/#/indicator-center/details?id=${i.id}`,label:e.name,unit:t,value:n.indicator?.value})}}),ife=({configData:e,orgLevelVal:t,winChartType:n,reserveValueWithLabelType:i,visionUserConfig:o})=>{const r=t=>_.jsx(I7,{sort:e.commonConfig.sort,yStart:e.commonConfig.yStart,color:e.commonConfig.color,reserveValueWithLabelType:i,xAxisLabelLength:e.commonConfig.xAxisLabelLength,xAxisLabelRotate:e.commonConfig.xAxisLabelRotate,data:t.list0,extraData:t.list1,chartType:n,style:{height:"calc(100% - 20px)"}});return o.initData?r(JSON.parse(o.data)):_.jsx(Vhe,{...o.initData&&{initData:!1,defaultValue:JSON.parse(o.data)},requestData:{url:Ym(Um,{id:e.id,dataAccVal:e.dataAccCode,orgLevelVal:t})},service:khe.getDataInfoList,children:r})},ofe=dn(h.Select).attrs({size:"small",showSearch:!0,style:{width:130},popupStyle:{width:200}})`
|
|
264
|
+
transform: translateY(-4px);
|
|
265
|
+
|
|
266
|
+
span {
|
|
267
|
+
background: transparent;
|
|
268
|
+
}
|
|
269
|
+
`,rfe=dn(h.Select).attrs({size:"small",showSearch:!0,style:{width:100},popupStyle:{width:200}})`
|
|
270
|
+
span {
|
|
271
|
+
background: transparent;
|
|
272
|
+
}
|
|
273
|
+
`,afe=({followTrigger:e=!1,content:t,style:n,cStyle:i,className:o,onClick:r})=>{const{Tooltip:a}=h.Balloon,s=_.jsx("div",{onClick:r,className:o,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...i},children:t});return _.jsx(a,{trigger:s,followTrigger:e,v2:!0,align:"br",style:n,children:t})};class sfe{static async getConfigInfo(e){return Xm(await Dhe({url:`/workbench/widget/queryById?id=${e}`}))}static async addConfigInfo(e){return Xm(await Dhe({url:"/workbench/widget/save",method:"POST",data:e}))}static async updateConfigInfo(e){return Xm(await Dhe({url:"/workbench/widget/save",method:"POST",data:e}))}static async queryOptionList(e){return Xm(await Dhe({url:"/workbench/widget/option",params:{id:e}}))}static async delete(e){return Xm(await Dhe({url:"/workbench/widget/delete",method:"GET",params:{id:e}}))}}const lfe=e.createContext(void 0),cfe=()=>_.jsx(Vhe,{service:Khe.queryWinRankList,children:t=>_.jsx(ufe,{children:t.map(((t,n)=>_.jsxs("div",{children:[_.jsx("div",{"data-title":!0,children:t.title}),_.jsx("div",{"data-content":!0,children:t.list?.map(((t,i)=>{const o=i<5,r=()=>{if(4===i)return{marginBottom:4}};return _.jsx(e.Fragment,{children:0===n?_.jsx(pfe,{style:r(),children:o?"❤️":"💪"}):_.jsxs(dfe,{style:{backgroundColor:o?"rgba(250,107,105,0.1)":"rgba(177,185,199,0.2)",...r()},children:[_.jsx("div",{"data-label":!0,children:_.jsx(afe,{content:t.label})}),_.jsx("span",{children:t.value})]})},t.label+t.children)}))})]},t.title)))})}),ufe=dn.div`
|
|
274
|
+
display: grid;
|
|
275
|
+
grid: auto-flow / 36px repeat(4, 1fr);
|
|
276
|
+
gap: 8px;
|
|
277
|
+
overflow: auto;
|
|
278
|
+
|
|
279
|
+
[data-title] {
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
font-size: 12px;
|
|
282
|
+
color: #394252;
|
|
283
|
+
line-height: 1;
|
|
284
|
+
margin-bottom: 16px;
|
|
285
|
+
display: grid;
|
|
286
|
+
place-items: center;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
[data-content] {
|
|
290
|
+
display: grid;
|
|
291
|
+
grid: auto-flow 24px / 1fr;
|
|
292
|
+
gap: 12px;
|
|
293
|
+
}
|
|
294
|
+
`,pfe=dn.div`
|
|
295
|
+
display: grid;
|
|
296
|
+
place-items: center;
|
|
297
|
+
`,dfe=dn(h.CnBox).attrs({direction:"row",justify:"space-between",align:"center"})`
|
|
298
|
+
border-radius: 500px;
|
|
299
|
+
font-size: 12px;
|
|
300
|
+
color: #272f3d;
|
|
301
|
+
padding: 0 10px;
|
|
302
|
+
|
|
303
|
+
[data-label] {
|
|
304
|
+
width: 80px;
|
|
305
|
+
}
|
|
306
|
+
`,hfe=({configData:t,context:n,style:i,showSwitch:o})=>{const r=e.useRef(null),a=(t=>{const[n,i]=e.useState([]);return e.useEffect((()=>{(async()=>{try{if(t){const e=await sfe.queryOptionList(t);i(e)}}catch(e){h.CnMessage(e.message)}})()}),[t]),n})(Rhe(r)&&t.commonConfig.orgLevel?t.id:void 0),[s,l]=e.useState(),c=t.chartType===mn.INDICATOR,u=!!t.commonConfig.orgLevel,p=![mn.CUSTOM_CARD].includes(t.chartType),d=t.detailUrl,f=[...d?[_.jsx(h.CnMenuItem,{onClick:qm(d),children:Fle.get({id:"ViewDetails",dm:"查看详情"})},"jump")]:[]],g=e.useContext(n??lfe),m=e.useRef(!1);e.useEffect((()=>{if(0!==a.length&&g){const e=g[t.commonConfig.orgLevel],n=a.map((e=>e.value)).includes(e);m.current?n&&l(e):(l(n?e:a[0].value),m.current=!0)}}),[t.commonConfig.orgLevel,a,g]);const v=$m(Zm,t.indicatorConfig[0]?.unit);return _.jsxs(Ehe,{ref:r,style:i,children:[p&&_.jsxs(h.CnBox,{direction:"row",justify:"space-between",style:{height:20},children:[_.jsx(Ohe,{"data-card-id":t.id,style:{maxWidth:c||!u?"80%":"45%",position:"relative",...[mn.INDICATOR,mn.INDICATOR_AREA].includes(t.chartType)&&{fontSize:"12px",fontWeight:"normal"}},children:_.jsx(afe,{content:t.name})}),_.jsxs(h.CnBox,{direction:"row",align:"center",children:[o&&u&&!c&&_.jsx(ofe,{value:s,dataSource:a,onChange:l}),Jm(f)&&_.jsx("div",{style:{transform:"translate(8px, -4px) rotate(0.25turn)"},children:_.jsx(h.CnDropdown,{trigger:_.jsx(h.Icon,{type:"ellipsis",style:{cursor:"pointer"}}),children:_.jsx(h.CnMenu,{style:{width:15},children:f})})})]})]}),ffe({configData:t,hasOrgLevel:u,orgLevelVal:s,unit:v,visionUserConfig:g}),c&&_.jsx(h.CnBox,{spacing:8,children:o&&u&&_.jsx(rfe,{value:s,dataSource:a,onChange:l})})]})},ffe=({configData:e,hasOrgLevel:t,orgLevelVal:n,unit:i,visionUserConfig:o})=>{const r={configData:e,orgLevelVal:n,unit:i,visionUserConfig:o};if(t&&!n)return null;switch(e.chartType){case mn.INDICATOR:return _.jsx(nfe,{...r});case mn.INDICATOR_AREA:return _.jsx(Ghe,{...r});case mn.DUAL_LINE_BAR_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.DUAL_LINE_BAR,...r});case mn.AREA_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.AREA,...r});case mn.LINE_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.LINE,...r});case mn.COLUMN_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.COLUMN,...r});case mn.STACK_COLUMN_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.STACK_COLUMN,...r});case mn.FUNNEL_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.FUNNEL,...r});case mn.BAR_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.BAR,...r});case mn.PIE_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.PIE,...r});case mn.PIE_CHART_RESERVE:return _.jsx(ife,{reserveValueWithLabelType:!0,winChartType:exports.WinChartType.PIE,...r});case mn.CYCLE_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.CYCLE,...r});case mn.RADAR_CHART:return _.jsx(ife,{winChartType:exports.WinChartType.RADAR,...r});case mn.RADAR_CHART_RESERVE:return _.jsx(ife,{reserveValueWithLabelType:!0,winChartType:exports.WinChartType.RADAR,...r});case mn.CUSTOM_CARD:return gfe(e.name);default:return}},gfe=e=>{switch(e){case"WIN排行榜":return _.jsx(cfe,{});case"工作台待办":return _.jsx(efe,{});default:return _.jsx("div",{children:Fle.get({id:"TheCustomSliceWasNotFoundPleaseC_1572163781",dm:"未找到该自定义该片,请检查名称是否正确"})})}};exports.VisionUserConfigContext=lfe,exports.WinCard=({id:e,config:t,style:n,fixSize:i,context:o,spanWidth:r=156,spanHeight:a=128,showSwitch:s=!0})=>{const l=e=>_.jsx(hfe,{showSwitch:s,context:o,configData:e,style:{...i&&{width:e.colWidth*r,height:e.colHeight*a},...n}});return t?l(t):_.jsx(Vhe,{requestData:{url:`/workbench/widget/queryById?id=${e}`},service:khe.getConfigInfo,style:{width:"100%",height:"100%",...n},children:l})},exports.WinChart=I7,exports.default=I7;
|