@liascript/editor 1.1.3--0.14.6 → 1.1.3--0.14.7
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/README.md +1 -1
- package/dist/index.012612c7.js +1 -0
- package/dist/{index.a85e2222.js → index.0fa15cde.js} +1 -1
- package/dist/{index.1ed5c6cb.js → index.1dcd529b.js} +1 -1
- package/dist/index.b432ef75.js +34 -0
- package/dist/index.e68eddbb.js +1 -0
- package/dist/index.fd1f7137.js +34 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/index.01026bc2.js +0 -34
- package/dist/index.2a97c773.js +0 -1
- package/dist/index.9ae04c34.js +0 -34
- package/dist/index.d31ac94a.js +0 -1
package/dist/index.9ae04c34.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function t(t,e,n,i){Object.defineProperty(t,e,{get:n,set:i,enumerable:!0,configurable:!0})}function n(t,e){return Object.keys(e).forEach((function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})),t}var i={},r={},a=e.parcelRequirea18f;null==a&&((a=function(t){if(t in i)return i[t].exports;if(t in r){var e=r[t];delete r[t];var n={id:t,exports:{}};return i[t]=n,e.call(n.exports,n,n.exports),n.exports}var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(t,e){r[t]=e},e.parcelRequirea18f=a),a.register("ed8Oj",(function(n,i){t(n.exports,"default",(()=>w));var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,r=0;function a(){n&&(n=!1,t()),i&&l()}function o(){s(a)}function l(){var t=Date.now();if(n){if(t-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,e);r=t}return l}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;l.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},p=v(0,0,0,0);function f(t){return parseFloat(t)||0}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t["border-"+n+"-width"])}),0)}var y="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function m(t){return a?y(t)?function(t){var e=t.getBBox();return v(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var i=d(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],a=t["padding-"+r];e[r]=f(a)}return e}(i),a=r.left+r.right,o=r.top+r.bottom,s=f(i.width),l=f(i.height);if("border-box"===i.boxSizing&&(Math.round(s+a)!==e&&(s-=g(i,"left","right")+a),Math.round(l+o)!==n&&(l-=g(i,"top","bottom")+o)),!function(t){return t===d(t).document.documentElement}(t)){var u=Math.round(s+a)-e,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return v(r.left,r.top,s,l)}(t):p}function v(t,e,n,i){return{x:t,y:e,width:n,height:i}}var x=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=m(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(t,e){var n,i,r,a,o,s,l,u=(i=(n=e).x,r=n.y,a=n.width,o=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),h(l,{x:i,y:r,width:a,height:o,top:r,right:i+a,bottom:o+r,left:i}),l);h(this,{target:t,contentRect:u})},b=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new x(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new _(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,C=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),i=new b(e,n,this);S.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}}));var w=void 0!==o.ResizeObserver?o.ResizeObserver:C})),a.register("laHbQ",(function(e,n){
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
var i,r,o,s;t(e.exports,"Buffer",(()=>i),(t=>i=t)),t(e.exports,"SlowBuffer",(()=>r),(t=>r=t)),t(e.exports,"INSPECT_MAX_BYTES",(()=>o),(t=>o=t)),t(e.exports,"kMaxLength",(()=>s),(t=>s=t));var l=a("lR8Ka"),u=a("6EOe1"),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i=p,r=function(t){return+t!=t&&(t=0),p.alloc(+t)},o=50;var h=2147483647;function d(t){if(t>h)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,p.prototype),e}function p(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return y(t)}return f(t,e,n)}function f(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!p.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|_(t,e),i=d(n),r=i.write(t,e);return r!==n&&(i=i.slice(0,r)),i}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){var e=new Uint8Array(t);return v(e.buffer,e.byteOffset,e.byteLength)}return m(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return v(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return v(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return p.from(i,e,n);var r=function(t){if(p.isBuffer(t)){var e=0|x(t.length),n=d(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?d(0):m(t):"Buffer"===t.type&&Array.isArray(t.data)?m(t.data):void 0}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return p.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function g(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function y(t){return g(t),d(t<0?0:0|x(t))}function m(t){for(var e=t.length<0?0:0|x(t.length),n=d(e),i=0;i<e;i+=1)n[i]=255&t[i];return n}function v(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(i,p.prototype),i}function x(t){if(t>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|t}function _(t,e){if(p.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(r)return i?-1:H(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function S(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function C(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=p.from(e,i)),p.isBuffer(e))return 0===e.length?-1:w(t,e,n,i,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,i,r){var a,o=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var c=-1;for(a=n;a<s;a++)if(u(t,a)===u(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(u(t,a+d)!==u(e,d)){h=!1;break}if(h)return a}return-1}function M(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=e.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(K(s))return o;t[n+o]=s}return o}function I(t,e,n,i){return U(H(e,t.length-n),t,n,i)}function T(t,e,n,i){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function A(t,e,n,i){return U(j(e),t,n,i)}function D(t,e,n,i){return U(function(t,e){for(var n,i,r,a=[],o=0;o<t.length&&!((e-=2)<0);++o)i=(n=t.charCodeAt(o))>>8,r=n%256,a.push(r),a.push(i);return a}(e,t.length-n),t,n,i)}function L(t,e,n){return 0===e&&n===t.length?l.fromByteArray(t):l.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var a,o,s,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(a=t[r+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=t[r+1],o=t[r+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=O));return n}(i)}s=h,p.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),p.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(t,e,n){return f(t,e,n)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(t,e,n){return function(t,e,n){return g(t),t<=0?d(t):void 0!==e?"string"==typeof n?d(t).fill(e,n):d(t).fill(e):d(t)}(t,e,n)},p.allocUnsafe=function(t){return y(t)},p.allocUnsafeSlow=function(t){return y(t)},p.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==p.prototype},p.compare=function(t,e){if(Y(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(t)||!p.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=p.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(Y(a,Uint8Array))r+a.length>i.length?p.from(a).copy(i,r):Uint8Array.prototype.set.call(i,a,r);else{if(!p.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r)}r+=a.length}return i},p.byteLength=_,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)S(this,e,e+1);return this},p.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this},p.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?k(this,0,t):b.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t="",e=o;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},c&&(p.prototype[c]=p.prototype.inspect),p.prototype.compare=function(t,e,n,i,r){if(Y(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),s=Math.min(a,o),l=this.slice(i,r),u=t.slice(e,n),c=0;c<s;++c)if(l[c]!==u[c]){a=l[c],o=u[c];break}return a<o?-1:o<a?1:0},p.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},p.prototype.indexOf=function(t,e,n){return C(this,t,e,n,!0)},p.prototype.lastIndexOf=function(t,e,n){return C(this,t,e,n,!1)},p.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return I(this,t,e,n);case"ascii":case"latin1":case"binary":return T(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function P(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function E(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function R(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=X[t[a]];return r}function N(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length-1;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function B(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,i,r,a){if(!p.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function z(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(t,e,n,i,r){return e=+e,n>>>=0,r||z(t,0,n,4),u.write(t,e,n,i,23,4),n+4}function W(t,e,n,i,r){return e=+e,n>>>=0,r||z(t,0,n,8),u.write(t,e,n,i,52,8),n+8}p.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i=this.subarray(t,e);return Object.setPrototypeOf(i,p.prototype),i},p.prototype.readUintLE=p.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i},p.prototype.readUintBE=p.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},p.prototype.readUint8=p.prototype.readUInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),this[t]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]|this[t+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]<<8|this[t+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},p.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},p.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=e,r=1,a=this[t+--i];i>0&&(r*=256);)a+=this[t+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},p.prototype.readInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){t>>>=0,e||B(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(t,e){t>>>=0,e||B(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},p.prototype.readInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},p.prototype.readFloatLE=function(t,e){return t>>>=0,e||B(t,4,this.length),u.read(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return t>>>=0,e||B(t,4,this.length),u.read(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return t>>>=0,e||B(t,8,this.length),u.read(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return t>>>=0,e||B(t,8,this.length),u.read(this,t,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||F(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[e]=255&t;++a<n&&(r*=256);)this[e+a]=t/r&255;return e+n},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||F(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,a=1;for(this[e+r]=255&t;--r>=0&&(a*=256);)this[e+r]=t/a&255;return e+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,1,255,0),this[e]=255&t,e+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},p.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;for(this[e]=255&t;++a<n&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},p.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},p.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},p.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},p.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},p.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},p.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},p.prototype.writeFloatLE=function(t,e,n){return V(this,t,e,!0,n)},p.prototype.writeFloatBE=function(t,e,n){return V(this,t,e,!1,n)},p.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},p.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},p.prototype.copy=function(t,e,n,i){if(!p.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r=i-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),e),r},p.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!p.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){var r=t.charCodeAt(0);("utf8"===i&&r<128||"latin1"===i)&&(t=r)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=p.isBuffer(t)?t:p.from(t,i),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var G=/[^+/0-9A-Za-z-_]/g;function H(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function j(t){return l.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}var X=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)e[i+r]=t[n]+t[r];return e}()})),a.register("lR8Ka",(function(e,n){var i,r;t(e.exports,"toByteArray",(()=>i),(t=>i=t)),t(e.exports,"fromByteArray",(()=>r),(t=>r=t)),i=function(t){var e,n,i=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}(t),r=i[0],a=i[1],l=new s(function(t,e,n){return 3*(e+n)/4-n}(0,r,a)),u=0,c=a>0?r-4:r;for(n=0;n<c;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===a&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===a&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},r=function(t){for(var e,n=t.length,i=n%3,r=[],o=16383,s=0,l=n-i;s<l;s+=o)r.push(h(t,s,s+o>l?l:s+o));return 1===i?(e=t[n-1],r.push(a[e>>2]+a[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),r.join("")};for(var a=[],o=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=l.length;u<c;++u)a[u]=l[u],o[l.charCodeAt(u)]=u;function h(t,e,n){for(var i,r,o=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(a[(r=i)>>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return o.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63})),a.register("6EOe1",(function(e,n){
|
|
9
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var i,r;t(e.exports,"read",(()=>i),(t=>i=t)),t(e.exports,"write",(()=>r),(t=>r=t)),i=function(t,e,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,p=t[e+h];for(h+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+t[e+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),a-=u}return(p?-1:1)*o*Math.pow(2,a-i)},r=function(t,e,n,i,r,a){var o,s,l,u=8*a-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,f=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,r),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(o=o<<r|s,u+=r;u>0;t[n+p]=255&o,p+=f,o/=256,u-=8);t[n+p-f]|=128*g}})),a.register("aivKh",(function(e,i){var r;r=e.exports,Object.defineProperty(r,"__esModule",{value:!0,configurable:!0}),t(e.exports,"default",(()=>d));var o=a("fNDCW"),s=a("kyrfh"),l=a("cATUV"),u=a("2rdKW"),c=a("7HXlD"),h=a("afLms");(0,s.use)([u.install,c.install]);var d={init:function(){return l.init.apply(null,arguments)}};(0,s.use)(h.installLabelLayout),n(e.exports,o)})),a.register("fNDCW",(function(t,e){var i=a("cATUV"),r=a("ci7l3"),o=a("kyrfh"),s=a("afLms");(0,o.use)(s.installLabelLayout),n(t.exports,i),n(t.exports,r)})),a.register("cATUV",(function(e,n){t(e.exports,"version",(()=>U)),t(e.exports,"dependencies",(()=>Y)),t(e.exports,"PRIORITY",(()=>Z)),t(e.exports,"init",(()=>Rt)),t(e.exports,"getInstanceByDom",(()=>Vt)),t(e.exports,"connect",(()=>Nt)),t(e.exports,"disconnect",(()=>Bt)),t(e.exports,"disConnect",(()=>Ft)),t(e.exports,"dispose",(()=>zt)),t(e.exports,"getInstanceById",(()=>Wt)),t(e.exports,"registerTheme",(()=>Gt)),t(e.exports,"registerPreprocessor",(()=>Ht)),t(e.exports,"registerProcessor",(()=>jt)),t(e.exports,"registerPostInit",(()=>Ut)),t(e.exports,"registerUpdateLifecycle",(()=>Kt)),t(e.exports,"registerPostUpdate",(()=>Yt)),t(e.exports,"registerAction",(()=>Xt)),t(e.exports,"registerCoordinateSystem",(()=>Zt)),t(e.exports,"getCoordinateSystemDimensions",(()=>qt)),t(e.exports,"registerLayout",(()=>Jt)),t(e.exports,"registerVisual",(()=>Qt)),t(e.exports,"registerLoading",(()=>ee)),t(e.exports,"setCanvasCreator",(()=>ne)),t(e.exports,"registerMap",(()=>ie)),t(e.exports,"getMap",(()=>re)),t(e.exports,"registerTransform",(()=>ae)),t(e.exports,"dataTool",(()=>oe)),t(e.exports,"registerLocale",(()=>a("bJrF5").registerLocale));var i=a("lCvKW"),r=a("deUmu"),o=a("2FIaD"),s=a("6rpCZ"),l=a("eIC9n"),u=a("gqWkF"),c=a("6St9F"),h=a("60Snt"),d=a("fbRBA"),p=a("3BeDB"),f=a("7ZAQb"),g=a("csvWp"),y=a("gGiC4"),m=a("2UHy9"),v=a("3dZ3l");a("dXBoT");var x=a("jKUgc"),_=a("kbAoh"),b=a("isgWw"),S=a("kJ7of"),C=a("5v9xk"),w=a("4lzC1"),M=a("2LuwV"),I=a("3deD8"),T=a("2G7Y8"),A=a("cbuZ5"),D=a("9b0wr"),L=a("4hI7c"),k=a("6vX1h"),O=a("fN7Ut"),P=a("eU4Fu"),E=a("PpLqp"),R=a("9kZyL"),N=a("lgV6V"),B=a("lfZwf"),F=a("jxc3k"),z=a("bJrF5"),V=a("4XWEA"),W=a("6TT1U"),G=a("9oFdv"),H=a("2JyUO"),j=a("6EE21"),U=(z=a("bJrF5"),"5.5.0"),Y={zrender:"5.5.0"},K=2e3,X=4500,Z={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:K,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:X,ARIA:6e3,DECAL:7e3}},q=/^[a-zA-Z0-9_]+$/;function J(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return $(this,t,e);this.id}}function Q(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return $(this,t,e)}}function $(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),u.default.prototype[e].apply(t,n)}var tt,et,nt,it,rt,at,ot,st,lt,ut,ct,ht,dt,pt,ft,gt,yt,mt,vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e}(u.default),xt=vt.prototype;xt.on=Q("on"),xt.off=Q("off");var _t=function(t){function e(e,n,i){var a=t.call(this,new(0,P.ECEventProcessor))||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.isString)(n)&&(n=At[n]),a._dom=e,i.ssr&&r.registerSSRDataGetter((function(t){var e=(0,C.getECData)(t),n=e.dataIndex;if(null!=n){var i=(0,o.createHashMap)();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var s=a._zr=r.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,o.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,I.throttle)((0,o.bind)(s.flush,s),17),(n=(0,o.clone)(n))&&(0,f.default)(n,!0),a._theme=n,a._locale=(0,z.createLocaleObject)(i.locale||z.SYSTEM_LANG),a._coordSysMgr=new(0,d.default);var u=a._api=ft(a);function c(t,e){return t.__prio-e.__prio}return(0,l.default)(Tt,c),(0,l.default)(Mt,c),a._scheduler=new(0,D.default)(a,u,Mt,Tt),a._messageCenter=new vt,a._initEvents(),a.resize=(0,o.bind)(a.resize,a),s.animation.on("frame",a._onframe,a),ut(s,a),ct(s,a),(0,o.setAsPrimitive)(a),a}return(0,i.__extends)(e,t),e.prototype._onframe=function(){if(!this._disposed){mt(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{tt(this),it.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,st.call(this,e),lt.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),at(this,i),t.performVisualTasks(i),pt(this,this._model,r,"remain",{}),n-=+new Date-a}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)this.id;else{var i,r,a;if((0,o.isObject)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var s=new(0,p.default)(this._api),l=this._theme,u=this._model=new(0,c.default);u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:r},It);var h={seriesTransition:a,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:h},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{tt(this),it.update.call(this,null,h)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,st.call(this,i),lt.call(this,i)}}},e.prototype.setTheme=function(){(0,N.deprecateLog)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||s.default.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(s.default.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,o.each)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;(0,o.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,o.each)(i,(function(t){t.group.ignore=!1})),a}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(kt[n]){var l=s,u=s,c=-1/0,h=-1/0,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();(0,o.each)(Lt,(function(r,s){if(r.group===n){var p=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.clone)(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),h=a(f.bottom,h),d.push({dom:p,left:f.left,top:f.top})}}));var f=(c*=p)-(l*=p),g=(h*=p)-(u*=p),y=H.platformApi.createCanvas(),m=r.init(y,{renderer:e?"svg":"canvas"});if(m.resize({width:f,height:g}),e){var v="";return(0,o.each)(d,(function(t){var e=t.left-l,n=t.top-u;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new x.default({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,o.each)(d,(function(t){var e=new _.default({style:{x:t.left*p-l,y:t.top*p-u,image:t.dom}});m.add(e)})),m.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return rt(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return rt(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=M.parseFinder(i,t);return(0,o.each)(r,(function(t,i){i.indexOf("Models")>=0&&(0,o.each)(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n=n||a.containPoint(e,t))}}),this)}),this),!!n}this.id},e.prototype.getVisual=function(t,e){var n=this._model,i=M.parseFinder(n,t,{defaultMainType:"series"}),r=i.seriesModel.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=a?(0,R.getItemVisualFromData)(r,a,e):(0,R.getVisualFromData)(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;(0,o.each)(St,(function(e){var n=function(n){var i,r=t.getModel(),a=n.target;if("globalout"===e?i={}:a&&(0,V.findEventDispatcher)(a,(function(t){var e=(0,C.getECData)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=(0,o.extend)({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),(0,o.each)(wt,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),(0,o.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),(0,B.handleLegacySelectEvents)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&M.setAttribute(this.getDom(),Et,"");var t=this,e=t._api,n=t._model;(0,o.each)(t._componentsViews,(function(t){t.dispose(n,e)})),(0,o.each)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Lt[t.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&tt(this),it.update.call(this,{type:"resize",animation:(0,o.extend)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,st.call(this,i),lt.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if((0,o.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Dt[t]){var n=Dt[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,o.extend)({},t);return e.type=wt[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if((0,o.isObject)(e)||(e={silent:!!e}),Ct[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;ot.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&s.default.browser.weChat&&this._throttledZrFlush(),st.call(this,n),lt.call(this,n)}},e.prototype.updateLabelLayout=function(){G.default.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===w.HOVER_STATE_EMPHASIS&&t.states.emphasis?e.push("emphasis"):t.hoverState===w.HOVER_STATE_BLUR&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(a&&(a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function a(t,e){e.eachRendered((function(t){if(!S.isElementRemoved(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function u(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),a=i.get("duration"),o=a>0?{duration:a,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(S.isElementRemoved(t))return;if(t instanceof b.default&&(0,w.savePathStates)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=o;var i=t.getTextContent(),a=t.getTextGuideLine();i&&(i.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&e(t)}}))}tt=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),et(t,!0),et(t,!1),e.plan()},et=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,o=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&a[u];if(!c){var h=(0,O.parseClassType)(t.type);(c=new(e?m.default.getClass(h.main,h.sub):v.default.getClass(h.sub))).init(n,s),a[u]=c,r.push(c),o.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),r.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},nt=function(t,e,n,i,r){var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u,c=n.excludeSeriesId;null!=c&&(u=(0,o.createHashMap)(),(0,o.each)(M.normalizeToArray(c),(function(t){var e=M.convertOptionIdName(t,null);null!=e&&u.set(e,!0)}))),a&&a.eachComponent(l,(function(e){if(!u||null==u.get(e.id))if((0,w.isHighDownPayload)(n))if(e instanceof y.default)n.type!==w.HIGHLIGHT_ACTION_TYPE||n.notBlur||e.get(["emphasis","disabled"])||(0,w.blurSeriesFromHighlightPayload)(e,n,t._api);else{var i=(0,w.findComponentHighDownDispatchers)(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,a=i.dispatchers;n.type===w.HIGHLIGHT_ACTION_TYPE&&r&&!n.notBlur&&(0,w.blurComponent)(e.mainType,e.componentIndex,t._api),a&&(0,o.each)(a,(function(t){n.type===w.HIGHLIGHT_ACTION_TYPE?(0,w.enterEmphasis)(t):(0,w.leaveEmphasis)(t)}))}else(0,w.isSelectChangePayload)(n)&&e instanceof y.default&&((0,w.toggleSelectionFromPayload)(e,n,t._api),(0,w.updateSeriesElementSelection)(e),yt(t))}),t),a&&a.eachComponent(l,(function(e){u&&null!=u.get(e.id)||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else(0,o.each)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},it={prepareAndUpdate:function(t){tt(this),it.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),o.create(i,r),s.performDataProcessorTasks(i,e),at(this,i),o.update(i,r),t(i),s.performVisualTasks(i,e),ht(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");a.setBackgroundColor(l),null!=u&&"auto"!==u&&a.setDarkMode(u),G.default.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var a=[];i.eachComponent((function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,e);l&&l.update&&a.push(s)}else a.push(s)}}));var s=(0,o.createHashMap)();i.eachSeries((function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var o=a.updateTransform(t,i,r,e);o&&o.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),pt(this,i,r,e,{},s),G.default.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),v.default.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ht(this,n,this._api,e,{}),G.default.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),v.default.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var a=n.getViewOfComponentModel(r);a&&a.__alive&&a.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),G.default.trigger("afterupdate",i,this._api))},updateLayout:function(t){it.update.call(this,t)}},rt=function(t,e,n,i){if(t._disposed)t.id;else for(var r,a=t._model,o=t._coordSysMgr.getCoordinateSystems(),s=M.parseFinder(a,n),l=0;l<o.length;l++){var u=o[l];if(u[e]&&null!=(r=u[e](a,s,i)))return r}},at=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},ot=function(t,e){var n=this,i=this.getModel(),r=t.type,a=t.escapeConnect,s=Ct[r],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&(0,O.parseClassType)(u[0]);this.__flagInMainProcess=!0;var d=[t],p=!1;t.batch&&(p=!0,d=(0,o.map)(t.batch,(function(e){return(e=(0,o.defaults)((0,o.extend)({},e),t)).batch=null,e})));var f,g=[],y=(0,w.isSelectChangePayload)(t),m=(0,w.isHighDownPayload)(t);if(m&&(0,w.allLeaveBlur)(this._api),(0,o.each)(d,(function(e){if((f=(f=s.action(e,n._model,n._api))||(0,o.extend)({},e)).type=l.event||f.type,g.push(f),m){var i=M.preParseFinder(t),r=i.queryOptionMap,a=i.mainTypeSpecified?r.keys()[0]:"series";nt(n,c,e,a),yt(n)}else y?(nt(n,c,e,"series"),yt(n)):h&&nt(n,c,e,h.main,h.sub)})),"none"!==c&&!m&&!y&&!h)try{this.__pendingUpdate?(tt(this),it.update.call(this,t),this.__pendingUpdate=null):it[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(f=p?{type:l.event||r,escapeConnect:a,batch:g}:g[0],this.__flagInMainProcess=!1,!e){var v=this._messageCenter;if(v.trigger(f.type,f),y){var x={type:"selectchanged",escapeConnect:a,selected:(0,w.getAllSelectedIndices)(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(x.type,x)}}},st=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();ot.call(this,n,t)}},lt=function(t){!t&&this.trigger("updated")},ut=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e.__pendingUpdate||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},ct=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=(0,V.findEventDispatcher)(n,w.isHighDownDispatcher);i&&((0,w.handleGlobalMouseOverForHighDown)(i,t,e._api),yt(e))})).on("mouseout",(function(t){var n=t.target,i=(0,V.findEventDispatcher)(n,w.isHighDownDispatcher);i&&((0,w.handleGlobalMouseOutForHighDown)(i,t,e._api),yt(e))})).on("click",(function(t){var n=t.target,i=(0,V.findEventDispatcher)(n,(function(t){return null!=(0,C.getECData)(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",a=(0,C.getECData)(i);e._api.dispatchAction({type:r,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},ht=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var a=r.get("zlevel")||0,o=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:a,z:o,idx:r.componentIndex,type:t,key:s})})),i){var r,a,s=e.concat(n);(0,l.default)(s,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),(0,o.each)(s,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}(e),dt(t,e,n,i,r),(0,o.each)(t._chartsViews,(function(t){t.__alive=!1})),pt(t,e,n,i,r),(0,o.each)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},dt=function(t,e,i,r,s,l){(0,o.each)(l||t._componentsViews,(function(t){var o=t.__model;a(0,t),t.render(o,e,i,r),n(o,t),u(o,t)}))},pt=function(t,e,i,r,l,c){var h=t._scheduler;l=(0,o.extend)(l||{},{updatedSeries:e.getSeries()}),G.default.trigger("series:beforeupdate",e,i,l);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,r),a(0,n),c&&c.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(d=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),(0,w.updateSeriesElementSelection)(e)})),h.unfinished=d||h.unfinished,G.default.trigger("series:layoutlabels",e,i,l),G.default.trigger("series:transition",e,i,l),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),u(e,i)})),function(t,e){var n=t._zr.storage,i=0;n.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!s.default.node&&!s.default.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),G.default.trigger("series:afterupdate",e,i,l)},yt=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},mt=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){S.isElementRemoved(t)||e(t)})),t.__needsUpdateStatus=!1)},ft=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){(0,w.enterEmphasis)(e,n),yt(t)},n.prototype.leaveEmphasis=function(e,n){(0,w.leaveEmphasis)(e,n),yt(t)},n.prototype.enterBlur=function(e){(0,w.enterBlur)(e),yt(t)},n.prototype.leaveBlur=function(e){(0,w.leaveBlur)(e),yt(t)},n.prototype.enterSelect=function(e){(0,w.enterSelect)(e),yt(t)},n.prototype.leaveSelect=function(e){(0,w.leaveSelect)(e),yt(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(h.default))(t)},gt=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n].__connectUpdateStatus=e}(0,o.each)(wt,(function(n,i){t._messageCenter.on(i,(function(n){if(kt[t.group]&&0!==t.__connectUpdateStatus){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];(0,o.each)(Lt,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),(0,o.each)(r,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(u.default),bt=_t.prototype;bt.on=J("on"),bt.off=J("off"),bt.one=function(t,e,n){var i=this;(0,N.deprecateLog)("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var St=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Ct={},wt={},Mt=[],It=[],Tt=[],At={},Dt={},Lt={},kt={},Ot=+new Date-0,Pt=+new Date-0,Et="_echarts_instance_";function Rt(t,e,n){var i=!(n&&n.ssr);if(i){var r=Vt(t);if(r)return r}var a=new _t(t,e,n);return a.id="ec_"+Ot++,Lt[a.id]=a,i&&M.setAttribute(t,Et,a.id),gt(a),G.default.trigger("afterinit",a),a}function Nt(t){if((0,o.isArray)(t)){var e=t;t=null,(0,o.each)(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Pt++,(0,o.each)(e,(function(e){e.group=t}))}return kt[t]=!0,t}function Bt(t){kt[t]=!1}var Ft=Bt;function zt(t){(0,o.isString)(t)?t=Lt[t]:t instanceof _t||(t=Vt(t)),t instanceof _t&&!t.isDisposed()&&t.dispose()}function Vt(t){return Lt[M.getAttribute(t,Et)]}function Wt(t){return Lt[t]}function Gt(t,e){At[t]=e}function Ht(t){(0,o.indexOf)(It,t)<0&&It.push(t)}function jt(t,e){te(Mt,t,e,2e3)}function Ut(t){Kt("afterinit",t)}function Yt(t){Kt("afterupdate",t)}function Kt(t,e){G.default.on(t,e)}function Xt(t,e,n){(0,o.isFunction)(e)&&(n=e,e="");var i=(0,o.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,wt[e]||((0,o.assert)(q.test(i)&&q.test(e)),Ct[i]||(Ct[i]={action:n,actionInfo:t}),wt[e]=i)}function Zt(t,e){d.default.register(t,e)}function qt(t){var e=d.default.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Jt(t,e){te(Tt,t,e,1e3,"layout")}function Qt(t,e){te(Tt,t,e,3e3,"visual")}var $t=[];function te(t,e,n,i,r){if(((0,o.isFunction)(e)||(0,o.isObject)(e))&&(n=e,e=i),!((0,o.indexOf)($t,n)>=0)){$t.push(n);var a=D.default.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function ee(t,e){Dt[t]=e}function ne(t){(0,H.setPlatformAPI)({createCanvas:t})}function ie(t,e,n){var i=(0,j.getImpl)("registerMap");i&&i(t,e,n)}function re(t){var e=(0,j.getImpl)("getMap");return e&&e(t)}var ae=F.registerExternalTransform;Qt(K,T.seriesStyleTask),Qt(X,T.dataStyleTask),Qt(X,T.dataColorPaletteTask),Qt(K,E.seriesSymbolTask),Qt(X,E.dataSymbolTask),Qt(7e3,W.default),Ht(f.default),jt(900,g.default),ee("default",A.default),Xt({type:w.HIGHLIGHT_ACTION_TYPE,event:w.HIGHLIGHT_ACTION_TYPE,update:w.HIGHLIGHT_ACTION_TYPE},o.noop),Xt({type:w.DOWNPLAY_ACTION_TYPE,event:w.DOWNPLAY_ACTION_TYPE,update:w.DOWNPLAY_ACTION_TYPE},o.noop),Xt({type:w.SELECT_ACTION_TYPE,event:w.SELECT_ACTION_TYPE,update:w.SELECT_ACTION_TYPE},o.noop),Xt({type:w.UNSELECT_ACTION_TYPE,event:w.UNSELECT_ACTION_TYPE,update:w.UNSELECT_ACTION_TYPE},o.noop),Xt({type:w.TOGGLE_SELECT_ACTION_TYPE,event:w.TOGGLE_SELECT_ACTION_TYPE,update:w.TOGGLE_SELECT_ACTION_TYPE},o.noop),Gt("light",L.default),Gt("dark",k.default);var oe={}})),a.register("lCvKW",(function(e,n){t(e.exports,"__extends",(()=>r));
|
|
10
|
-
/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation.
|
|
12
|
-
|
|
13
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
-
purpose with or without fee is hereby granted.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
17
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
18
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
-
***************************************************************************** */
|
|
24
|
-
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create})),a.register("deUmu",(function(e,n){t(e.exports,"init",(()=>m)),t(e.exports,"dispose",(()=>v)),t(e.exports,"disposeAll",(()=>x)),t(e.exports,"getInstance",(()=>_)),t(e.exports,"registerPainter",(()=>b)),t(e.exports,"getElementSSRData",(()=>S)),t(e.exports,"registerSSRDataGetter",(()=>C)),t(e.exports,"version",(()=>w));
|
|
25
|
-
/*!
|
|
26
|
-
* ZRender, a high performance 2d drawing library.
|
|
27
|
-
*
|
|
28
|
-
* Copyright (c) 2013, Baidu Inc.
|
|
29
|
-
* All rights reserved.
|
|
30
|
-
*
|
|
31
|
-
* LICENSE
|
|
32
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
33
|
-
*/
|
|
34
|
-
var i,r=a("6rpCZ"),o=a("2FIaD"),s=a("3G9WQ"),l=a("2Pm9x"),u=a("4unF1"),c=a("c5mOZ"),h=a("l3Be0"),d=a("7tJ16"),p=a("2IUoL"),f={},g={},y=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new(0,l.default),h=n.renderer||"canvas";f[h]||(h=o.keys(f)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var d=new f[h](e,a,n,t),p=n.ssr||d.ssrOnly;this.storage=a,this.painter=d;var g,y=r.default.node||r.default.worker||p?null:new(0,c.default)(d.getViewportRoot(),d.root),m=n.useCoarsePointer;(null==m||"auto"===m?r.default.touchEventsSupported:!!m)&&(g=o.retrieve2(n.pointerSize,44)),this.handler=new(0,s.default)(a,d,y,d.root,g),this.animation=new(0,u.default)({stage:{update:p?null:function(){return i._flush(!0)}}}),p||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,h.lum)(t,1)<d.DARK_MODE_THRESHOLD;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=(0,h.lum)(e[r].color,1);return(n/=i)<d.DARK_MODE_THRESHOLD}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=(0,u.getTime)();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=(0,u.getTime)();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof p.default&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete g[t])},t}();function m(t,e){var n=new y(o.guid(),t,e);return g[n.id]=n,n}function v(t){t.dispose()}function x(){for(var t in g)g.hasOwnProperty(t)&&g[t].dispose();g={}}function _(t){return g[t]}function b(t,e){f[t]=e}function S(t){if("function"==typeof i)return i(t)}function C(t){i=t}var w="5.5.0"})),a.register("6rpCZ",(function(e,n){t(e.exports,"default",(()=>a));var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,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?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);var a=r})),a.register("2FIaD",(function(e,n){t(e.exports,"reduce",(()=>k)),t(e.exports,"guid",(()=>m)),t(e.exports,"logError",(()=>v)),t(e.exports,"clone",(()=>x)),t(e.exports,"isPrimitive",(()=>rt)),t(e.exports,"isDom",(()=>U)),t(e.exports,"merge",(()=>_)),t(e.exports,"isObject",(()=>G)),t(e.exports,"isArray",(()=>B)),t(e.exports,"isBuiltInObject",(()=>H)),t(e.exports,"mergeAll",(()=>b)),t(e.exports,"extend",(()=>S)),t(e.exports,"defaults",(()=>C)),t(e.exports,"keys",(()=>E)),t(e.exports,"createCanvas",(()=>w)),t(e.exports,"indexOf",(()=>M)),t(e.exports,"inherits",(()=>I)),t(e.exports,"mixin",(()=>T)),t(e.exports,"isArrayLike",(()=>A)),t(e.exports,"each",(()=>D)),t(e.exports,"map",(()=>L)),t(e.exports,"slice",(()=>$)),t(e.exports,"filter",(()=>O)),t(e.exports,"find",(()=>P)),t(e.exports,"bind",(()=>R)),t(e.exports,"isFunction",(()=>F)),t(e.exports,"curry",(()=>N)),t(e.exports,"isString",(()=>z)),t(e.exports,"isStringSafe",(()=>V)),t(e.exports,"isNumber",(()=>W)),t(e.exports,"isTypedArray",(()=>j)),t(e.exports,"isGradientObject",(()=>Y)),t(e.exports,"isImagePatternObject",(()=>K)),t(e.exports,"isRegExp",(()=>X)),t(e.exports,"eqNaN",(()=>Z)),t(e.exports,"retrieve",(()=>q)),t(e.exports,"retrieve2",(()=>J)),t(e.exports,"retrieve3",(()=>Q)),t(e.exports,"normalizeCssArray",(()=>tt)),t(e.exports,"assert",(()=>et)),t(e.exports,"trim",(()=>nt)),t(e.exports,"setAsPrimitive",(()=>it)),t(e.exports,"HashMap",(()=>st)),t(e.exports,"createHashMap",(()=>lt)),t(e.exports,"concatArray",(()=>ut)),t(e.exports,"createObject",(()=>ct)),t(e.exports,"disableUserSelect",(()=>ht)),t(e.exports,"hasOwn",(()=>dt)),t(e.exports,"noop",(()=>pt)),t(e.exports,"RADIAN_TO_DEGREE",(()=>ft));var i=a("2JyUO"),r=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),s=Object.prototype.toString,l=Array.prototype,u=l.forEach,c=l.filter,h=l.slice,d=l.map,p=function(){}.constructor,f=p?p.prototype:null,g="__proto__",y=2311;function m(){return y++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function x(t){if(null==t||"object"!=typeof t)return t;var e=t,n=s.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,a=t.length;i<a;i++)e[i]=x(t[i])}}else if(o[n]){if(!rt(t)){var l=t.constructor;if(l.from)e=l.from(t);else for(e=new l(t.length),i=0,a=t.length;i<a;i++)e[i]=t[i]}}else if(!r[n]&&!rt(t)&&!U(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==g&&(e[u]=x(t[u]));return e}function _(t,e,n){if(!G(e)||!G(t))return n?x(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==g){var r=t[i],a=e[i];!G(a)||!G(r)||B(a)||B(r)||U(a)||U(r)||H(a)||H(r)||rt(a)||rt(r)?!n&&i in t||(t[i]=x(e[i])):_(r,a,n)}return t}function b(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=_(n,t[i],e);return n}function S(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==g&&(t[n]=e[n]);return t}function C(t,e,n){for(var i=E(e),r=0;r<i.length;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var w=i.platformApi.createCanvas;function M(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function I(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function T(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var a=i[r];"constructor"!==a&&(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}else C(t,e,n)}function A(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function D(t,e,n){if(t&&e)if(t.forEach&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function L(t,e,n){if(!t)return[];if(!e)return $(t);if(t.map&&t.map===d)return t.map(e,n);for(var i=[],r=0,a=t.length;r<a;r++)i.push(e.call(n,t[r],r,t));return i}function k(t,e,n,i){if(t&&e){for(var r=0,a=t.length;r<a;r++)n=e.call(i,n,t[r],r,t);return n}}function O(t,e,n){if(!t)return[];if(!e)return $(t);if(t.filter&&t.filter===c)return t.filter(e,n);for(var i=[],r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function P(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function E(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var R=f&&F(f.bind)?f.call.bind(f.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(h.call(arguments)))}};function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(h.call(arguments)))}}function B(t){return Array.isArray?Array.isArray(t):"[object Array]"===s.call(t)}function F(t){return"function"==typeof t}function z(t){return"string"==typeof t}function V(t){return"[object String]"===s.call(t)}function W(t){return"number"==typeof t}function G(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function H(t){return!!r[s.call(t)]}function j(t){return!!o[s.call(t)]}function U(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Y(t){return null!=t.colorStops}function K(t){return null!=t.image}function X(t){return"[object RegExp]"===s.call(t)}function Z(t){return t!=t}function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function J(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function $(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return h.apply(t,e)}function tt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function et(t,e){if(!t)throw new Error(e)}function nt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function it(t){t.__ec_primitive__=!0}function rt(t){return t.__ec_primitive__}var at=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return E(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ot="function"==typeof Map,st=function(){function t(e){var n=B(e);this.data=ot?new Map:new at;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&D(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return ot?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function lt(t){return new st(t)}function ut(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function ct(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&S(n,e),n}function ht(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(t,e){return t.hasOwnProperty(e)}function pt(){}var ft=180/Math.PI})),a.register("2JyUO",(function(e,n){t(e.exports,"DEFAULT_FONT_SIZE",(()=>a)),t(e.exports,"DEFAULT_FONT_FAMILY",(()=>o)),t(e.exports,"DEFAULT_FONT",(()=>s)),t(e.exports,"platformApi",(()=>u)),t(e.exports,"setPlatformAPI",(()=>c));var i,r,a=12,o="sans-serif",s=a+"px "+o,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!i){var n=u.createCanvas();i=n&&n.getContext("2d")}if(i)return r!==e&&(r=i.font=e||s),i.measureText(t);t=t||"";var o=/(\d+)px/.exec(e=e||s),c=o&&+o[1]||a,h=0;if(e.indexOf("mono")>=0)h=c*t.length;else for(var d=0;d<t.length;d++){var p=l[t[d]];h+=null==p?c:p*c}return{width:h}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function c(t){for(var e in u)t[e]&&(u[e]=t[e])}})),a.register("3G9WQ",(function(e,n){t(e.exports,"default",(()=>S));var i=a("lCvKW"),r=a("2FIaD"),o=a("jkyg0"),s=a("hlMpt"),l=a("gqWkF"),u=a("1DnBg"),c=a("kHaQw"),h=a("lV62k"),d="silent";function p(){u.stop(this.event)}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,i.__extends)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(l.default),g=function(t,e){this.x=t,this.y=e},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],m=new(0,h.default)(0,0,0,0),v=function(t){function e(e,n,i,r,a){var o=t.call(this)||this;return o._hovered=new g(0,0),o.storage=e,o.painter=n,o.painterRoot=r,o._pointerSize=a,i=i||new f,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new(0,s.default)(o),o}return(0,i.__extends)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(y,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=b(this,e,n),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=i?new g(e,n):this.findHover(e,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new g(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,a=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:p}}(e,t,n);i&&(i[r]&&(a.cancelBubble=!!i[r].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new g(t,e);if(_(i,r,t,e,n),this._pointerSize&&!r.target){for(var a=[],o=this._pointerSize,s=o/2,l=new(0,h.default)(t-s,e-s,o,o),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(m.copy(c.getBoundingRect()),c.transform&&m.applyTransform(c.transform),m.intersect(l)&&a.push(c))}if(a.length)for(var d=Math.PI/12,p=2*Math.PI,f=0;f<s;f+=4)for(var y=0;y<p;y+=d)if(_(a,r,t+f*Math.cos(y),e+f*Math.sin(y),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new(0,c.GestureMgr));var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var a=new g;a.target=i.target,this.dispatchToElement(a,r,i.event)}},e}(l.default);function x(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||d}return!1}function _(t,e,n,i,r){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==r&&!o.ignore&&(s=x(o,n,i))&&(!e.topTarget&&(e.topTarget=o),s!==d)){e.target=o;break}}}function b(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){v.prototype[t]=function(e){var n,i,r=e.zrX,a=e.zrY,s=b(this,r,a);if("mouseup"===t&&s||(i=(n=this.findHover(r,a)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||o.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var S=v})),a.register("jkyg0",(function(e,n){function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function a(t){return[t[0],t[1]]}function o(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}t(e.exports,"create",(()=>i)),t(e.exports,"copy",(()=>r)),t(e.exports,"clone",(()=>a)),t(e.exports,"set",(()=>o)),t(e.exports,"add",(()=>s)),t(e.exports,"scaleAndAdd",(()=>l)),t(e.exports,"sub",(()=>u)),t(e.exports,"len",(()=>c)),t(e.exports,"lenSquare",(()=>d)),t(e.exports,"length",(()=>h)),t(e.exports,"lengthSquare",(()=>p)),t(e.exports,"mul",(()=>f)),t(e.exports,"div",(()=>g)),t(e.exports,"dot",(()=>y)),t(e.exports,"scale",(()=>m)),t(e.exports,"normalize",(()=>v)),t(e.exports,"distance",(()=>x)),t(e.exports,"dist",(()=>_)),t(e.exports,"distanceSquare",(()=>b)),t(e.exports,"distSquare",(()=>S)),t(e.exports,"negate",(()=>C)),t(e.exports,"lerp",(()=>w)),t(e.exports,"applyTransform",(()=>M)),t(e.exports,"min",(()=>I)),t(e.exports,"max",(()=>T));var h=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function y(t,e){return t[0]*e[0]+t[1]*e[1]}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function v(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function x(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=x;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var S=b;function C(t,e){return t[0]=-e[0],t[1]=-e[1],t}function w(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function I(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}})),a.register("hlMpt",(function(e,n){t(e.exports,"default",(()=>r));var i=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},r=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new i(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,a=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(a,o,t),this.handler.dispatchToElement(new i(e,t),"drag",t.event);var s=this.handler.findHover(n,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new i(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new i(s,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new i(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new i(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}()})),a.register("gqWkF",(function(e,n){t(e.exports,"default",(()=>r));var i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),r[t]||(r[t]=[]);for(var o=0;o<r[t].length;o++)if(r[t][o].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t].length;r<a;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var a=e.length,o=i.length,s=0;s<o;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var a=e.length,o=e[a-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(a){case 0:u.h.call(o);break;case 1:u.h.call(o,e[0]);break;case 2:u.h.call(o,e[0],e[1]);break;default:u.h.apply(o,e.slice(1,a-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),r=i})),a.register("1DnBg",(function(e,n){t(e.exports,"clientToLocal",(()=>u)),t(e.exports,"getNativeEvent",(()=>h)),t(e.exports,"normalizeEvent",(()=>d)),t(e.exports,"addEventListener",(()=>p)),t(e.exports,"removeEventListener",(()=>f)),t(e.exports,"stop",(()=>g)),t(e.exports,"isMiddleOrRightButtonOnMouseUpDown",(()=>y));var i=a("6rpCZ"),r=a("i1s7L"),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[],l=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function u(t,e,n,i){return n=n||{},i?c(t,e,n):l&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):c(t,e,n),n}function c(t,e,n){if(i.default.domSupported&&t.getBoundingClientRect){var a=e.clientX,o=e.clientY;if((0,r.isCanvasEl)(t)){var l=t.getBoundingClientRect();return n.zrX=a-l.left,void(n.zrY=o-l.top)}if((0,r.transformCoordWithViewport)(s,t,a,o))return n.zrX=s[0],void(n.zrY=s[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function d(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&u(t,r,e,n)}else{u(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function p(t,e,n,i){t.addEventListener(e,n,i)}function f(t,e,n,i){t.removeEventListener(e,n,i)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function y(t){return 2===t.which||3===t.which}})),a.register("i1s7L",(function(e,n){t(e.exports,"transformLocalCoord",(()=>s)),t(e.exports,"transformCoordWithViewport",(()=>l)),t(e.exports,"isCanvasEl",(()=>u)),t(e.exports,"encodeHTML",(()=>d));var i=a("6rpCZ"),r=a("2Wm5n"),o=[];function s(t,e,n,i,r){return l(o,e,i,r,!0)&&l(t,n,o[0],o[1])}function l(t,e,n,a,o){if(e.getBoundingClientRect&&i.default.domSupported&&!u(e)){var s=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),l=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,l=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}(e,s),c=function(t,e,n){for(var i=n?"invTrans":"trans",a=e[i],o=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,p=h.left,f=h.top;s.push(p,f),u=u&&o&&p===o[d]&&f===o[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&a?a:(e.srcCoords=s,e[i]=n?(0,r.buildTransformer)(l,s):(0,r.buildTransformer)(s,l))}(l,s,o);if(c)return c(t,n,a),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var c=/([&<>"'])/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(t){return null==t?"":(t+"").replace(c,(function(t,e){return h[e]}))}})),a.register("2Wm5n",(function(e,n){t(e.exports,"buildTransformer",(()=>a));var i=Math.log(2);function r(t,e,n,a,o,s){var l=a+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~o)/i);return t[n][c]}for(var h=a|1<<n,d=n+1;a&1<<d;)d++;for(var p=0,f=0,g=0;f<u;f++){var y=1<<f;y&o||(p+=(g%2?-1:1)*t[n][f]*r(t,e-1,d,h,o|y,s),g++)}return s[l]=p,p}function a(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},a=r(n,8,0,0,0,i);if(0!==a){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*r(n,7,0===s?1:0,1<<s,1<<l,i)/a*e[s];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}})),a.register("kHaQw",(function(e,n){t(e.exports,"GestureMgr",(()=>r));var i=a("1DnBg"),r=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o<s;o++){var l=r[o],u=i.clientToLocal(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(t){for(var e in s)if(s.hasOwnProperty(e)){var n=s[e](this._track,t);if(n)return n}},t}();function o(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var s={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var s=o(r)/o(a);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}}})),a.register("lV62k",(function(e,n){t(e.exports,"default",(()=>f));var i=a("0445l"),r=a("NBRFu"),o=Math.min,s=Math.max,l=new(0,r.default),u=new(0,r.default),c=new(0,r.default),h=new(0,r.default),d=new(0,r.default),p=new(0,r.default),f=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,a=i.create();return i.translate(a,a,[-e.x,-e.y]),i.scale(a,a,[n,r]),i.translate(a,a,[t.x,t.y]),a},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,a=i.x,o=i.x+i.width,s=i.y,l=i.y+i.height,u=e.x,c=e.x+e.width,h=e.y,f=e.y+e.height,g=!(o<u||c<a||l<h||f<s);if(n){var y=1/0,m=0,v=Math.abs(o-u),x=Math.abs(c-a),_=Math.abs(l-h),b=Math.abs(f-s),S=Math.min(v,x),C=Math.min(_,b);o<u||c<a?S>m&&(m=S,v<x?r.default.set(p,-v,0):r.default.set(p,x,0)):S<y&&(y=S,v<x?r.default.set(d,v,0):r.default.set(d,-x,0)),l<h||f<s?C>m&&(m=C,_<b?r.default.set(p,0,-_):r.default.set(p,0,b)):S<y&&(y=S,_<b?r.default.set(d,0,_):r.default.set(d,0,-b))}return n&&r.default.copy(n,g?d:p),g},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],a=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*a+p,e.width=n.width*r,e.height=n.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}l.x=c.x=n.x,l.y=h.y=n.y,u.x=h.x=n.x+n.width,u.y=c.y=n.y+n.height,l.transform(i),h.transform(i),u.transform(i),c.transform(i),e.x=o(l.x,u.x,c.x,h.x),e.y=o(l.y,u.y,c.y,h.y);var f=s(l.x,u.x,c.x,h.x),g=s(l.y,u.y,c.y,h.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()})),a.register("0445l",(function(e,n){function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=a*h+l*c,t[3]=-a*c+h*l,t[4]=h*(o-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(o-i[0])+i[1],t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function c(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null}function h(t){var e=[1,0,0,1,0,0];return a(e,t),e}t(e.exports,"create",(()=>i)),t(e.exports,"identity",(()=>r)),t(e.exports,"copy",(()=>a)),t(e.exports,"mul",(()=>o)),t(e.exports,"translate",(()=>s)),t(e.exports,"rotate",(()=>l)),t(e.exports,"scale",(()=>u)),t(e.exports,"invert",(()=>c)),t(e.exports,"clone",(()=>h))})),a.register("NBRFu",(function(e,n){t(e.exports,"default",(()=>i));var i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()})),a.register("2Pm9x",(function(e,n){t(e.exports,"default",(()=>c));var i=a("2FIaD"),r=a("eIC9n"),o=a("fIYrT"),s=!1;function l(){s||(s=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function u(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var c=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=u}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,(0,r.default)(n,u)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,a=t;r;)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var c=s[u];t.__dirty&&(c.__dirty|=o.REDRAW_BIT),this._updateAndAddDisplayable(c,e,n)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(l(),h.z=0),isNaN(h.z2)&&(l(),h.z2=0),isNaN(h.zlevel)&&(l(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,e,n);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=i.indexOf(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}()})),a.register("eIC9n",(function(e,n){function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var a,o=t[i],s=e,l=i;s<l;)r(o,t[a=s+l>>>1])<0?l=a:s=a+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function a(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){for(s=i-r;l<s&&a(t,e[n+r+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&a(t,e[n+r-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[n+c])>0?o=c+1:l=c}return l}function o(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){for(s=r+1;l<s&&a(t,e[n+r-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l<s&&a(t,e[n+r+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[n+c])<0?l=c:o=c+1}return l}function s(t,e){var n,i,r=7,s=0,l=[];function u(u){var c=n[u],h=i[u],d=n[u+1],p=i[u+1];i[u]=h+p,u===s-3&&(n[u+1]=n[u+2],i[u+1]=i[u+2]),s--;var f=o(t[d],t,c,h,0,e);c+=f,0!=(h-=f)&&0!==(p=a(t[c+h-1],t,d,p,p-1,e))&&(h<=p?function(n,i,s,u){var c=0;for(c=0;c<i;c++)l[c]=t[n+c];var h=0,d=s,p=n;if(t[p++]=t[d++],0!=--u)if(1!==i){for(var f,g,y,m=r;;){f=0,g=0,y=!1;do{if(e(t[d],l[h])<0){if(t[p++]=t[d++],g++,f=0,0==--u){y=!0;break}}else if(t[p++]=l[h++],f++,g=0,1==--i){y=!0;break}}while((f|g)<m);if(y)break;do{if(0!==(f=o(t[d],l,h,i,0,e))){for(c=0;c<f;c++)t[p+c]=l[h+c];if(p+=f,h+=f,(i-=f)<=1){y=!0;break}}if(t[p++]=t[d++],0==--u){y=!0;break}if(0!==(g=a(l[h],t,d,u,0,e))){for(c=0;c<g;c++)t[p+c]=t[d+c];if(p+=g,d+=g,0==(u-=g)){y=!0;break}}if(t[p++]=l[h++],1==--i){y=!0;break}m--}while(f>=7||g>=7);if(y)break;m<0&&(m=0),m+=2}if((r=m)<1&&(r=1),1===i){for(c=0;c<u;c++)t[p+c]=t[d+c];t[p+u]=l[h]}else{if(0===i)throw new Error;for(c=0;c<i;c++)t[p+c]=l[h+c]}}else{for(c=0;c<u;c++)t[p+c]=t[d+c];t[p+u]=l[h]}else for(c=0;c<i;c++)t[p+c]=l[h+c]}(c,h,d,p):function(n,i,s,u){var c=0;for(c=0;c<u;c++)l[c]=t[s+c];var h=n+i-1,d=u-1,p=s+u-1,f=0,g=0;if(t[p--]=t[h--],0!=--i)if(1!==u){for(var y=r;;){var m=0,v=0,x=!1;do{if(e(l[d],t[h])<0){if(t[p--]=t[h--],m++,v=0,0==--i){x=!0;break}}else if(t[p--]=l[d--],v++,m=0,1==--u){x=!0;break}}while((m|v)<y);if(x)break;do{if(0!=(m=i-o(l[d],t,n,i,i-1,e))){for(i-=m,g=1+(p-=m),f=1+(h-=m),c=m-1;c>=0;c--)t[g+c]=t[f+c];if(0===i){x=!0;break}}if(t[p--]=l[d--],1==--u){x=!0;break}if(0!=(v=u-a(t[h],l,0,u,u-1,e))){for(u-=v,g=1+(p-=v),f=1+(d-=v),c=0;c<v;c++)t[g+c]=l[f+c];if(u<=1){x=!0;break}}if(t[p--]=t[h--],0==--i){x=!0;break}y--}while(m>=7||v>=7);if(x)break;y<0&&(y=0),y+=2}if((r=y)<1&&(r=1),1===u){for(g=1+(p-=i),f=1+(h-=i),c=i-1;c>=0;c--)t[g+c]=t[f+c];t[p]=l[d]}else{if(0===u)throw new Error;for(f=p-(u-1),c=0;c<u;c++)t[f+c]=l[c]}}else{for(g=1+(p-=i),f=1+(h-=i),c=i-1;c>=0;c--)t[g+c]=t[f+c];t[p]=l[d]}else for(f=p-(u-1),c=0;c<u;c++)t[f+c]=l[c]}(c,h,d,p))}return n=[],i=[],{mergeRuns:function(){for(;s>1;){var t=s-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;u(t)}},forceMergeRuns:function(){for(;s>1;){var t=s-2;t>0&&i[t-1]<i[t+1]&&t--,u(t)}},pushRun:function(t,e){n[s]=t,i[s]=e,s+=1}}}function l(t,e,n,a){n||(n=0),a||(a=t.length);var o=a-n;if(!(o<2)){var l=0;if(o<32)r(t,n,a,n+(l=i(t,n,a,e)),e);else{var u=s(t,e),c=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(o);do{if((l=i(t,n,a,e))<c){var h=o;h>c&&(h=c),r(t,n,n+h,n+l,e),l=h}u.pushRun(n,l),u.mergeRuns(),o-=l,n+=l}while(0!==o);u.forceMergeRuns()}}}t(e.exports,"default",(()=>l))})),a.register("fIYrT",(function(e,n){t(e.exports,"REDRAW_BIT",(()=>i)),t(e.exports,"STYLE_CHANGED_BIT",(()=>r)),t(e.exports,"SHAPE_CHANGED_BIT",(()=>a));var i=1,r=2,a=4})),a.register("4unF1",(function(e,n){t(e.exports,"getTime",(()=>l)),t(e.exports,"default",(()=>u));var i=a("lCvKW"),r=a("gqWkF"),o=a("618oX"),s=a("8S9Jc");function l(){return(new Date).getTime()}var u=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,i.__extends)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=l()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,o.default)((function e(){t._running&&((0,o.default)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=l(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=l(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=l()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new(0,s.default)(t,e.loop);return this.addAnimator(n),n},e}(r.default)})),a.register("618oX",(function(e,n){t(e.exports,"default",(()=>i));var i=a("6rpCZ").default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}})),a.register("8S9Jc",(function(e,n){t(e.exports,"cloneValue",(()=>m)),t(e.exports,"default",(()=>C));var i=a("5RiO8"),r=a("l3Be0"),o=a("2FIaD"),s=a("jpuJx"),l=a("gWJlw"),u=a("bA7iH"),c=Array.prototype.slice;function h(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,a=0;a<r;a++)t[a]=h(e[a],n[a],i);return t}function p(t,e,n,i){for(var r=e.length,a=0;a<r;a++)t[a]=e[a]+n[a]*i;return t}function f(t,e,n,i){for(var r=e.length,a=r&&e[0].length,o=0;o<r;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+n[o][s]*i}return t}function g(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,a=Math.min(n,i),o=r[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,i);s++)r.push({offset:o.offset,color:o.color.slice()})}function y(t,e,n){var i=t,r=e;if(i.push&&r.push){var a=i.length,o=r.length;if(a!==o)if(a>o)i.length=o;else for(var s=a;s<o;s++)i.push(1===n?r[s]:c.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function m(t){if((0,o.isArrayLike)(t)){var e=t.length;if((0,o.isArrayLike)(t[0])){for(var n=[],i=0;i<e;i++)n.push(c.call(t[i]));return n}return c.call(t)}return t}function v(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function x(t){return 4===t||5===t}function _(t){return 1===t||2===t}var b=[0,0,0,0],S=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,c=!1,h=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);h=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(c=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))h=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=r.parse(e);f&&(d=f,h=3)}else h=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:r.parse(t.color)}})),(0,u.isLinearGradient)(e)?h=4:(0,u.isRadialGradient)(e)&&(h=5),d=g}0===a?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var y={time:t,value:d,rawValue:e,percent:0};return n&&(y.easing=n,y.easingFunc=(0,o.isFunction)(n)?n:s.default[n]||(0,l.createCubicEasingFunc)(n)),i.push(y),y},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,a=n[r-1],o=this.discrete,s=_(i),l=x(i),u=0;u<r;u++){var c=n[u],h=c.value,d=a.value;c.percent=c.time/t,o||(s&&u!==r-1?y(h,d,i):l&&g(h.colorStops,d.colorStops))}if(!o&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var m=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-m:3===i?n[u].additiveValue=p([],n[u].value,m,-1):_(i)&&(n[u].additiveValue=1===i?p([],n[u].value,m,-1):f([],n[u].value,m,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,p=this.propName,f=3===l,g=this._lastFr,y=Math.min;if(1===c)i=r=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=y(g+1,c-1);n>=0&&!(u[n].percent<=e);n--);n=y(n,c-2)}else{for(n=g;n<c&&!(u[n].percent>e);n++);n=y(n-1,c-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var m=r.percent-i.percent,S=0===m?1:y((e-i.percent)/m,1);r.easingFunc&&(S=r.easingFunc(S));var C=a?this._additiveValue:f?b:t[p];if(!_(l)&&!f||C||(C=this._additiveValue=[]),this.discrete)t[p]=S<1?i.rawValue:r.rawValue;else if(_(l))1===l?d(C,i[s],r[s],S):function(t,e,n,i){for(var r=e.length,a=r&&e[0].length,o=0;o<r;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=h(e[o][s],n[o][s],i)}}(C,i[s],r[s],S);else if(x(l)){var w=i[s],M=r[s],I=4===l;t[p]={type:I?"linear":"radial",x:h(w.x,M.x,S),y:h(w.y,M.y,S),colorStops:(0,o.map)(w.colorStops,(function(t,e){var n=M.colorStops[e];return{offset:h(t.offset,n.offset,S),color:v(d([],t.color,n.color,S))}})),global:M.global},I?(t[p].x2=h(w.x2,M.x2,S),t[p].y2=h(w.y2,M.y2,S)):t[p].r=h(w.r,M.r,S)}else if(f)d(C,i[s],r[s],S),a||(t[p]=v(C));else{var T=h(i[s],r[s],S);a?this._additiveValue=T:t[p]=T}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(r.parse(t[n],b),p(b,b,i,1),t[n]=v(b)):1===e?p(t[n],t[n],i,1):2===e&&f(t[n],t[n],i,1)},t}(),C=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?(0,o.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,(0,o.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,a=0;a<n.length;a++){var o=n[a],s=r[o];if(!s){s=r[o]=new S(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=v(l))}else l=this._target[o];if(null==l)continue;t>0&&s.addKeyframe(0,m(l),i),this._trackKeys.push(o)}s.addKeyframe(t,m(e[o]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new(0,i.default)({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,a=0;a<i.length;a++)if(i[a]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(e._target,t);var o=e._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return(0,o.map)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var a=n[t[r]];a&&!a.isFinished()&&(e?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],a=this._tracks[r];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(t[r]=m(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,o.keys)(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()})),a.register("5RiO8",(function(e,n){t(e.exports,"default",(()=>s));var i=a("jpuJx"),r=a("2FIaD"),o=a("gWJlw"),s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||r.noop,this.ondestroy=t.ondestroy||r.noop,this.onrestart=t.onrestart||r.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,o=a?a(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,r.isFunction)(t)?t:i.default[t]||(0,o.createCubicEasingFunc)(t)},t}()})),a.register("jpuJx",(function(e,n){t(e.exports,"default",(()=>r));var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}},r=i})),a.register("gWJlw",(function(e,n){t(e.exports,"createCubicEasingFunc",(()=>s));var i=a("ibBA5"),r=a("2FIaD"),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function s(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),u=+(0,r.trim)(n[3]);if(isNaN(a+s+l+u))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,i.cubicRootAt)(0,a,l,1,t,c)&&(0,i.cubicAt)(0,s,u,1,c[0])}}}})),a.register("ibBA5",(function(e,n){t(e.exports,"cubicAt",(()=>y)),t(e.exports,"cubicDerivativeAt",(()=>m)),t(e.exports,"cubicRootAt",(()=>v)),t(e.exports,"cubicExtrema",(()=>x)),t(e.exports,"cubicSubdivide",(()=>_)),t(e.exports,"cubicProjectPoint",(()=>b)),t(e.exports,"cubicLength",(()=>S)),t(e.exports,"quadraticAt",(()=>C)),t(e.exports,"quadraticDerivativeAt",(()=>w)),t(e.exports,"quadraticRootAt",(()=>M)),t(e.exports,"quadraticExtremum",(()=>I)),t(e.exports,"quadraticSubdivide",(()=>T)),t(e.exports,"quadraticProjectPoint",(()=>A)),t(e.exports,"quadraticLength",(()=>D));var i=a("jkyg0"),r=Math.pow,o=Math.sqrt,s=1e-8,l=1e-4,u=o(3),c=1/3,h=(0,i.create)(),d=(0,i.create)(),p=(0,i.create)();function f(t){return t>-1e-8&&t<s}function g(t){return t>s||t<-1e-8}function y(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function m(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function v(t,e,n,i,a,s){var l=i+3*(e-n)-t,h=3*(n-2*e+t),d=3*(e-t),p=t-a,g=h*h-3*l*d,y=h*d-9*l*p,m=d*d-3*h*p,v=0;if(f(g)&&f(y))f(h)?s[0]=0:(D=-d/h)>=0&&D<=1&&(s[v++]=D);else{var x=y*y-4*g*m;if(f(x)){var _=y/g,b=-_/2;(D=-h/l+_)>=0&&D<=1&&(s[v++]=D),b>=0&&b<=1&&(s[v++]=b)}else if(x>0){var S=o(x),C=g*h+1.5*l*(-y+S),w=g*h+1.5*l*(-y-S);(D=(-h-((C=C<0?-r(-C,c):r(C,c))+(w=w<0?-r(-w,c):r(w,c))))/(3*l))>=0&&D<=1&&(s[v++]=D)}else{var M=(2*g*h-3*l*y)/(2*o(g*g*g)),I=Math.acos(M)/3,T=o(g),A=Math.cos(I),D=(-h-2*T*A)/(3*l),L=(b=(-h+T*(A+u*Math.sin(I)))/(3*l),(-h+T*(A-u*Math.sin(I)))/(3*l));D>=0&&D<=1&&(s[v++]=D),b>=0&&b<=1&&(s[v++]=b),L>=0&&L<=1&&(s[v++]=L)}}return v}function x(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(f(s))g(a)&&(h=-l/a)>=0&&h<=1&&(r[u++]=h);else{var c=a*a-4*s*l;if(f(c))r[0]=-a/(2*s);else if(c>0){var h,d=o(c),p=(-a-d)/(2*s);(h=(-a+d)/(2*s))>=0&&h<=1&&(r[u++]=h),p>=0&&p<=1&&(r[u++]=p)}}return u}function _(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=i}function b(t,e,n,r,a,s,u,c,f,g,m){var v,x,_,b,S,C=.005,w=1/0;h[0]=f,h[1]=g;for(var M=0;M<1;M+=.05)d[0]=y(t,n,a,u,M),d[1]=y(e,r,s,c,M),(b=(0,i.distSquare)(h,d))<w&&(v=M,w=b);w=1/0;for(var I=0;I<32&&!(C<l);I++)x=v-C,_=v+C,d[0]=y(t,n,a,u,x),d[1]=y(e,r,s,c,x),b=(0,i.distSquare)(d,h),x>=0&&b<w?(v=x,w=b):(p[0]=y(t,n,a,u,_),p[1]=y(e,r,s,c,_),S=(0,i.distSquare)(p,h),_<=1&&S<w?(v=_,w=S):C*=.5);return m&&(m[0]=y(t,n,a,u,v),m[1]=y(e,r,s,c,v)),o(w)}function S(t,e,n,i,r,a,o,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=y(t,n,r,o,f),m=y(e,i,a,s,f),v=g-u,x=m-c;h+=Math.sqrt(v*v+x*x),u=g,c=m}return h}function C(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function w(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function M(t,e,n,i,r){var a=t-2*e+n,s=2*(e-t),l=t-i,u=0;if(f(a))g(s)&&(h=-l/s)>=0&&h<=1&&(r[u++]=h);else{var c=s*s-4*a*l;if(f(c))(h=-s/(2*a))>=0&&h<=1&&(r[u++]=h);else if(c>0){var h,d=o(c),p=(-s-d)/(2*a);(h=(-s+d)/(2*a))>=0&&h<=1&&(r[u++]=h),p>=0&&p<=1&&(r[u++]=p)}}return u}function I(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function T(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function A(t,e,n,r,a,s,u,c,f){var g,y=.005,m=1/0;h[0]=u,h[1]=c;for(var v=0;v<1;v+=.05)d[0]=C(t,n,a,v),d[1]=C(e,r,s,v),(S=(0,i.distSquare)(h,d))<m&&(g=v,m=S);m=1/0;for(var x=0;x<32&&!(y<l);x++){var _=g-y,b=g+y;d[0]=C(t,n,a,_),d[1]=C(e,r,s,_);var S=(0,i.distSquare)(d,h);if(_>=0&&S<m)g=_,m=S;else{p[0]=C(t,n,a,b),p[1]=C(e,r,s,b);var w=(0,i.distSquare)(p,h);b<=1&&w<m?(g=b,m=w):y*=.5}}return f&&(f[0]=C(t,n,a,g),f[1]=C(e,r,s,g)),o(m)}function D(t,e,n,i,r,a,o){for(var s=t,l=e,u=0,c=1/o,h=1;h<=o;h++){var d=h*c,p=C(t,n,r,d),f=C(e,i,a,d),g=p-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=p,l=f}return u}})),a.register("l3Be0",(function(e,n){t(e.exports,"parse",(()=>v)),t(e.exports,"lift",(()=>_)),t(e.exports,"stringify",(()=>A)),t(e.exports,"toHex",(()=>b)),t(e.exports,"fastLerp",(()=>S)),t(e.exports,"fastMapToColor",(()=>C)),t(e.exports,"lerp",(()=>w)),t(e.exports,"mapToColor",(()=>M)),t(e.exports,"modifyHSL",(()=>I)),t(e.exports,"modifyAlpha",(()=>T)),t(e.exports,"lum",(()=>D)),t(e.exports,"random",(()=>L)),t(e.exports,"liftColor",(()=>O));var i=a("8uFR3"),r=a("2FIaD"),o={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 s(t){return(t=Math.round(t))<0?0:t>255?255:t}function l(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100*255):s(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?l(parseFloat(e)/100):l(parseFloat(e))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function d(t,e,n){return t+(e-t)*n}function p(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new(0,i.default)(20),y=null;function m(t,e){y&&f(y,e),y=g.put(t,y||e.slice())}function v(t,e){if(t){e=e||[];var n=g.get(t);if(n)return f(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in o)return f(e,o[i]),m(t,e),e;var r,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(p(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===a?parseInt(i.slice(4),16)/15:1),m(t,e),e):void p(e,0,0,0,1):7===a||9===a?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(p(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===a?parseInt(i.slice(7),16)/255:1),m(t,e),e):void p(e,0,0,0,1):void 0;var s=i.indexOf("("),l=i.indexOf(")");if(-1!==s&&l+1===a){var h=i.substr(0,s),d=i.substr(s+1,l-(s+1)).split(","),y=1;switch(h){case"rgba":if(4!==d.length)return 3===d.length?p(e,+d[0],+d[1],+d[2],1):p(e,0,0,0,1);y=c(d.pop());case"rgb":return d.length>=3?(p(e,u(d[0]),u(d[1]),u(d[2]),3===d.length?y:c(d[3])),m(t,e),e):void p(e,0,0,0,1);case"hsla":return 4!==d.length?void p(e,0,0,0,1):(d[3]=c(d[3]),x(d,e),m(t,e),e);case"hsl":return 3!==d.length?void p(e,0,0,0,1):(x(d,e),m(t,e),e);default:return}}p(e,0,0,0,1)}}function x(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),a=r<=.5?r*(i+1):r+i-r*i,o=2*r-a;return p(e=e||[],s(255*h(o,a,n+1/3)),s(255*h(o,a,n)),s(255*h(o,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return A(n,4===n.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return(16777216+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=e[r],u=e[a],c=i-r;return n[0]=s(d(o[0],u[0],c)),n[1]=s(d(o[1],u[1],c)),n[2]=s(d(o[2],u[2],c)),n[3]=l(d(o[3],u[3],c)),n}}var C=S;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=v(e[r]),u=v(e[a]),c=i-r,h=A([s(d(o[0],u[0],c)),s(d(o[1],u[1],c)),s(d(o[2],u[2],c)),l(d(o[3],u[3],c))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}var M=w;function I(t,e,n,i){var r,a=v(t);if(t)return a=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(a),null!=e&&(a[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(a[1]=c(n)),null!=i&&(a[2]=c(i)),A(x(a),"rgba")}function T(t,e){var n=v(t);if(n&&null!=e)return n[3]=l(e),A(n,"rgba")}function A(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function D(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function L(){return A([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var k=new(0,i.default)(100);function O(t){if((0,r.isString)(t)){var e=k.get(t);return e||(e=_(t,-.1),k.put(t,e)),e}if((0,r.isGradientObject)(t)){var n=(0,r.extend)({},t);return n.colorStops=(0,r.map)(t.colorStops,(function(t){return{offset:t.offset,color:_(t.color,-.1)}})),n}return t}})),a.register("8uFR3",(function(e,n){t(e.exports,"default",(()=>a));var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),a=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()})),a.register("bA7iH",(function(e,n){t(e.exports,"normalizeColor",(()=>u)),t(e.exports,"isAroundZero",(()=>h)),t(e.exports,"round4",(()=>p)),t(e.exports,"getMatrixStr",(()=>f)),t(e.exports,"TEXT_ALIGN_TO_ANCHOR",(()=>g)),t(e.exports,"adjustTextY",(()=>y)),t(e.exports,"hasShadow",(()=>m)),t(e.exports,"getShadowKey",(()=>v)),t(e.exports,"isImagePattern",(()=>x)),t(e.exports,"isPattern",(()=>_)),t(e.exports,"isLinearGradient",(()=>b)),t(e.exports,"isRadialGradient",(()=>S)),t(e.exports,"isGradient",(()=>C)),t(e.exports,"getIdURL",(()=>w)),t(e.exports,"getPathPrecision",(()=>M)),t(e.exports,"getSRTTransformString",(()=>I)),t(e.exports,"encodeBase64",(()=>T));var i=a("2FIaD"),r=a("l3Be0"),o=a("6rpCZ"),s=a("laHbQ").Buffer,l=Math.round;function u(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var c=1e-4;function h(t){return t<c&&t>-1e-4}function d(t){return l(1e3*t)/1e3}function p(t){return l(1e4*t)/1e4}function f(t){return"matrix("+d(t[0])+","+d(t[1])+","+d(t[2])+","+d(t[3])+","+p(t[4])+","+p(t[5])+")"}var g={left:"start",right:"end",center:"middle",middle:"middle"};function y(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function m(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function x(t){return t&&!!t.image}function _(t){return x(t)||function(t){return t&&!!t.svgElement}(t)}function b(t){return"linear"===t.type}function S(t){return"radial"===t.type}function C(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function M(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function I(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,a=(0,i.retrieve2)(t.scaleX,1),o=(0,i.retrieve2)(t.scaleY,1),s=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===a&&1===o||c.push("scale("+a+","+o+")"),(s||u)&&c.push("skew("+l(s*i.RADIAN_TO_DEGREE)+"deg, "+l(u*i.RADIAN_TO_DEGREE)+"deg)"),c.join(" ")}var T=o.default.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==s?function(t){return s.from(t).toString("base64")}:function(t){return null}})),a.register("c5mOZ",(function(e,n){t(e.exports,"default",(()=>M));var i,r,o=a("lCvKW"),s=a("1DnBg"),l=a("2FIaD"),u=a("gqWkF"),c=a("6rpCZ"),h=c.default.domSupported,d=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:i=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:l.map(i,(function(t){var e=t.replace("mouse","pointer");return r.hasOwnProperty(e)?e:t}))}),p=["mousemove","mouseup"],f=["pointermove","pointerup"],g=!1;function y(t){var e=t.pointerType;return"pen"===e||"touch"===e}function m(t){t&&(t.zrByTouch=!0)}function v(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var x=function(t,e){this.stopPropagation=l.noop,this.stopImmediatePropagation=l.noop,this.preventDefault=l.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},_={mousedown:function(t){t=(0,s.normalizeEvent)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,s.normalizeEvent)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,s.normalizeEvent)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){v(this,(t=(0,s.normalizeEvent)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){g=!0,t=(0,s.normalizeEvent)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){g||(t=(0,s.normalizeEvent)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){m(t=(0,s.normalizeEvent)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),_.mousemove.call(this,t),_.mousedown.call(this,t)},touchmove:function(t){m(t=(0,s.normalizeEvent)(this.dom,t)),this.handler.processGesture(t,"change"),_.mousemove.call(this,t)},touchend:function(t){m(t=(0,s.normalizeEvent)(this.dom,t)),this.handler.processGesture(t,"end"),_.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&_.click.call(this,t)},pointerdown:function(t){_.mousedown.call(this,t)},pointermove:function(t){y(t)||_.mousemove.call(this,t)},pointerup:function(t){_.mouseup.call(this,t)},pointerout:function(t){y(t)||_.mouseout.call(this,t)}};l.each(["click","dblclick","contextmenu"],(function(t){_[t]=function(e){e=(0,s.normalizeEvent)(this.dom,e),this.trigger(t,e)}}));var b={pointermove:function(t){y(t)||b.mousemove.call(this,t)},pointerup:function(t){b.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function S(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,s.addEventListener)(t.domTarget,e,n,i)}function C(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,s.removeEventListener)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var w=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},M=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new w(e,_),h&&(i._globalHandlerScope=new w(document,b)),function(t,e){var n=e.domHandlers;c.default.pointerEventsSupported?l.each(d.pointer,(function(i){S(e,i,(function(e){n[i].call(t,e)}))})):(c.default.touchEventsSupported&&l.each(d.touch,(function(i){S(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),l.each(d.mouse,(function(i){S(e,i,(function(r){r=(0,s.getNativeEvent)(r),e.touching||n[i].call(t,r)}))})))}(i,i._localHandlerScope),i}return(0,o.__extends)(e,t),e.prototype.dispose=function(){C(this._localHandlerScope),h&&C(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,h&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){S(e,n,(function(i){i=(0,s.getNativeEvent)(i),v(t,i.target)||(i=function(t,e){return(0,s.normalizeEvent)(t.dom,new x(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}c.default.pointerEventsSupported?l.each(f,n):c.default.touchEventsSupported||l.each(p,n)}(this,e):C(e)}},e}(u.default)})),a.register("7tJ16",(function(e,n){t(e.exports,"devicePixelRatio",(()=>r)),t(e.exports,"DARK_MODE_THRESHOLD",(()=>o)),t(e.exports,"DARK_LABEL_COLOR",(()=>s)),t(e.exports,"LIGHT_LABEL_COLOR",(()=>l)),t(e.exports,"LIGHTER_LABEL_COLOR",(()=>u));var i=1;a("6rpCZ").default.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,s="#333",l="#ccc",u="#eee"})),a.register("2IUoL",(function(e,n){t(e.exports,"default",(()=>u));var i=a("lCvKW"),r=a("2FIaD"),o=a("6AJsI"),s=a("lV62k"),l=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new(0,s.default)(0,0,0,0),n=t||this._children,i=[],r=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var l=o.getBoundingRect(),u=o.getLocalTransform(i);u?(s.default.applyTransform(e,l,u),(r=r||e.clone()).union(e)):(r=r||l.clone()).union(l)}}return r||e},e}(o.default);l.prototype.type="group";var u=l})),a.register("6AJsI",(function(e,n){t(e.exports,"default",(()=>C));var i=a("lnAL9"),r=a("8S9Jc"),o=a("lV62k"),s=a("gqWkF"),l=a("bv5ZD"),u=a("2FIaD"),c=a("7tJ16"),h=a("l3Be0"),d=a("fIYrT"),p="__zr_normal__",f=i.TRANSFORMABLE_PROPS.concat(["ignore"]),g=(0,u.reduce)(i.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=!0,t}),{ignore:!1}),y={},m=new(0,o.default)(0,0,0,0),v=function(){function t(t){this.id=(0,u.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,a=void 0,o=void 0,s=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(y,n,c):(0,l.calculateTextPosition)(y,n,c),r.x=y.x,r.y=y.y,a=y.align,o=y.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var p=void 0,f=void 0;"center"===h?(p=.5*c.width,f=.5*c.height):(p=(0,l.parsePercent)(h[0],c.width),f=(0,l.parsePercent)(h[1],c.height)),u=!0,r.originX=-r.x+p+(i?0:c.x),r.originY=-r.y+f+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],u||(r.originX=-g[0],r.originY=-g[1]));var v=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,b=void 0,S=void 0;v&&this.canBeInsideText()?(_=n.insideFill,b=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(_),S=!0)):(_=n.outsideFill,b=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(_),S=!0)),(_=_||"#000")===x.fill&&b===x.stroke&&S===x.autoStroke&&a===x.align&&o===x.verticalAlign||(s=!0,x.fill=_,x.stroke=b,x.autoStroke=S,x.align=a,x.verticalAlign=o,e.setDefaultTextStyle(x)),e.__dirty|=d.REDRAW_BIT,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c.LIGHT_LABEL_COLOR:c.DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+(r?0:255)*(1-i);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,u.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,u.isObject)(t))for(var n=t,i=(0,u.keys)(n),r=0;r<i.length;r++){var a=i[r];this.attrKV(a,t[a])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==p)){var a=i.targetName,o=a?e[a]:e;i.saveTo(o)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,f)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(p,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===p;if(this.hasState()||!r){var a=this.currentStates,o=this.stateTransition;if(!((0,u.indexOf)(a,t)>=0)||!e&&1!==a.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&o&&o.duration>0,o);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d.REDRAW_BIT),s}(0,u.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,a=t.length,o=a===r.length;if(o)for(var s=0;s<a;s++)if(t[s]!==r[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[a-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,e,h),y&&y.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d.REDRAW_BIT)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,u.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,u.indexOf)(i,t),a=(0,u.indexOf)(i,e)>=0;r>=0?a?i.splice(r,1):i[r]=e:n&&!a&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];(0,u.extend)(n,r),r.textConfig&&(e=e||{},(0,u.extend)(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,a){var o=!(e&&i);e&&e.textConfig?(this.textConfig=(0,u.extend)({},i?this.textConfig:n.textConfig),(0,u.extend)(this.textConfig,e.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<f.length;c++){var h=f[c],d=r&&g[h];e&&null!=e[h]?d?(l=!0,s[h]=e[h]):this[h]=e[h]:o&&null!=n[h]&&(d?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(c=0;c<this.animators.length;c++){var p=this.animators[c],y=p.targetName;p.getLoop()||p.__changeFinalValue(y?(e||n)[y]:e||n)}l&&this._transitionState(t,s,a)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new(0,i.default),this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,u.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=d.REDRAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new(0,r.default)(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=(0,u.indexOf)(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],a=0;a<i;a++){var o=n[a];t&&t!==o.scope?r.push(o):o.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){x(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){x(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=x(this,e,n,i),a=0;a<r.length;a++)r[a].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||a(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,a(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=d.REDRAW_BIT,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function x(t,e,n,i,r){var a=[];S(t,"",t,e,n=n||{},i,a,r);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},h=function(){--o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&n.during&&a[0].during((function(t,e){n.during(e)}));for(var d=0;d<a.length;d++){var p=a[d];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function _(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function b(t,e,n){if((0,u.isArrayLike)(e[n]))if((0,u.isArrayLike)(t[n])||(t[n]=[]),(0,u.isTypedArray)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),_(t[n],e[n],i))}else{var r=e[n],a=t[n],o=r.length;if(c=r,(0,u.isArrayLike)(c[0]))for(var s=r[0].length,l=0;l<o;l++)a[l]?_(a[l],r[l],s):a[l]=Array.prototype.slice.call(r[l]);else _(a,r,o);a.length=r.length}else t[n]=e[n];var c}function S(t,e,n,i,a,o,s,l){for(var c=(0,u.keys)(i),h=a.duration,d=a.delay,p=a.additive,f=a.setToFinal,g=!(0,u.isObject)(o),y=t.animators,m=[],v=0;v<c.length;v++){var x=c[v],_=i[x];if(null!=_&&null!=n[x]&&(g||o[x]))if(!(0,u.isObject)(_)||(0,u.isArrayLike)(_)||(0,u.isGradientObject)(_))m.push(x);else{if(e){l||(n[x]=_,t.updateDuringAnimation(e));continue}S(t,x,n[x],_,a,o&&o[x],s,l)}else l||(n[x]=_,t.updateDuringAnimation(e),m.push(x))}var C=m.length;if(!p&&C)for(var w=0;w<y.length;w++)if((I=y[w]).targetName===e&&I.stopTracks(m)){var M=(0,u.indexOf)(y,I);y.splice(M,1)}if(a.force||(m=(0,u.filter)(m,(function(t){return!((e=i[t])===(r=n[t])||(0,u.isArrayLike)(e)&&(0,u.isArrayLike)(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),C=m.length),C>0||a.force&&!s.length){var I,T=void 0,A=void 0,D=void 0;if(l)for(A={},f&&(T={}),w=0;w<C;w++)A[x=m[w]]=n[x],f?T[x]=i[x]:n[x]=i[x];else if(f)for(D={},w=0;w<C;w++)D[x=m[w]]=(0,r.cloneValue)(n[x]),b(n,i,x);(I=new(0,r.default)(n,!1,!1,p?(0,u.filter)(y,(function(t){return t.targetName===e})):null)).targetName=e,a.scope&&(I.scope=a.scope),f&&T&&I.whenWithKeys(0,T,m),D&&I.whenWithKeys(0,D,m),I.whenWithKeys(null==h?500:h,l?A:i,m).delay(d||0),t.addAnimator(I,e),s.push(I)}}(0,u.mixin)(v,s.default),(0,u.mixin)(v,i.default);var C=v})),a.register("lnAL9",(function(e,n){t(e.exports,"copyTransform",(()=>g)),t(e.exports,"TRANSFORMABLE_PROPS",(()=>f)),t(e.exports,"default",(()=>y));var i=a("0445l"),r=a("jkyg0"),o=i.identity,s=5e-5;function l(t){return t>s||t<-5e-5}var u=[],c=[],h=i.create(),d=Math.abs,p=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return l(this.rotation)||l(this.x)||l(this.y)||l(this.scaleX-1)||l(this.scaleY-1)||l(this.skewX)||l(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(u);var n=u[0]<0?-1:1,r=u[1]<0?-1:1,a=((u[0]-n)*e+n)/u[0]||0,o=((u[1]-r)*e+r)/u[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||i.create(),i.mul(c,t.invTransform,e),e=c);var n=this.originX,r=this.originY;(n||r)&&(h[4]=n,h[5]=r,i.mul(c,e,h),c[4]-=n,c[5]-=r,e=c),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&d(t[0]-1)>1e-10&&d(t[3]-1)>1e-10?Math.sqrt(d(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){g(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*a-d*g*o,e[5]=-g*o-p*f*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=p*a,e[2]=d*o,u&&i.rotate(e,e,u),e[4]+=n+c,e[5]+=r+h,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function g(t,e){for(var n=0;n<f.length;n++){var i=f[n];t[i]=e[i]}}var y=p})),a.register("bv5ZD",(function(e,n){t(e.exports,"getWidth",(()=>l)),t(e.exports,"getLineHeight",(()=>p)),t(e.exports,"adjustTextX",(()=>h)),t(e.exports,"adjustTextY",(()=>d)),t(e.exports,"getBoundingRect",(()=>c)),t(e.exports,"parsePercent",(()=>f)),t(e.exports,"calculateTextPosition",(()=>g));var i=a("lV62k"),r=a("8uFR3"),o=a("2JyUO"),s={};function l(t,e){e=e||o.DEFAULT_FONT;var n=s[e];n||(n=s[e]=new(0,r.default)(500));var i=n.get(t);return null==i&&(i=o.platformApi.measureText(t,e).width,n.put(t,i)),i}function u(t,e,n,r){var a=l(t,e),o=p(e),s=h(0,a,n),u=d(0,o,r);return new(0,i.default)(s,u,a,o)}function c(t,e,n,r){var a=((t||"")+"").split("\n");if(1===a.length)return u(a[0],e,n,r);for(var o=new(0,i.default)(0,0,0,0),s=0;s<a.length;s++){var l=u(a[s],e,n,r);0===s?o.copy(l):o.union(l)}return o}function h(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function d(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function p(t){return l("国",t)}function f(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function g(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=f(i[0],n.width),u+=f(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+o,u+=s,h="middle";break;case"top":l+=o/2,u-=r,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+r,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=o-r,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=r,c="center";break;case"insideBottom":l+=o/2,u+=a-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=o-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=a-r,h="bottom";break;case"insideBottomRight":l+=o-r,u+=a-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}})),a.register("6St9F",(function(e,n){t(e.exports,"default",(()=>_));var i,r,o,s=a("lCvKW"),l=a("2FIaD"),u=a("2LuwV"),c=a("9xTlQ"),h=a("eWRYv"),d=a("8cnqN"),p=a("39jKu"),f=a("3BAh2"),g=a("l3zxl");a("lgV6V");var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,s.__extends)(e,t),e.prototype.init=function(t,e,n,i,r,a){i=i||{},this.option=null,this._theme=new(0,c.default)(i),this._locale=new(0,c.default)(r),this._optionManager=a},e.prototype.setOption=function(t,e,n){var i=x(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,x(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):o(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&(0,l.each)(s,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,a=this._componentsCount,o=[],s=(0,l.createHashMap)(),c=e&&e.replaceMergeMainTypeMap;(0,p.resetSourceDefaulter)(this),(0,l.each)(t,(function(t,e){null!=t&&(h.default.hasClass(e)?e&&(o.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,l.clone)(t):(0,l.merge)(n[e],t,!0))})),c&&c.each((function(t,e){h.default.hasClass(e)&&!s.get(e)&&(o.push(e),s.set(e,!0))})),h.default.topologicalTravel(o,h.default.getAllClassMainTypes(),(function(e){var o=(0,f.concatInternalOptions)(this,e,u.normalizeToArray(t[e])),s=r.get(e),d=s?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",p=u.mappingToExists(s,o,d);u.setComponentTypeToKeyInfo(p,e,h.default),n[e]=null,r.set(e,null),a.set(e,0);var g,y=[],m=[],v=0;(0,l.each)(p,(function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,o=h.default.getClass(e,t.keyInfo.subType,!a);if(!o)return;if("tooltip"===e){if(g)return;g=!0}if(i&&i.constructor===o)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=(0,l.extend)({componentIndex:n},t.keyInfo);i=new o(r,this,this,s),(0,l.extend)(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(y.push(i.option),m.push(i),v++):(y.push(void 0),m.push(void 0))}),this),n[e]=y,r.set(e,m),a.set(e,v),"series"===e&&i(this)}),this),this._seriesIndices||i(this)},e.prototype.getOption=function(){var t=(0,l.clone)(this.option);return(0,l.each)(t,(function(e,n){if(h.default.hasClass(n)){for(var i=u.normalizeToArray(e),r=i.length,a=!1,o=r-1;o>=0;o--)i[o]&&!u.isComponentIdInternal(i[o])?a=!0:(i[o]=null,!a&&r--);i.length=r,t[n]=i}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,o=this._componentsMap.get(e);return o&&o.length?(null!=i?(n=[],(0,l.each)(u.normalizeToArray(i),(function(t){o[t]&&n.push(o[t])}))):n=null!=r?m("id",r,o):null!=a?m("name",a,o):(0,l.filter)(o,(function(t){return!!t})),v(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,a,o=t.query,s=t.mainType,u=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=o)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),c=u?this.queryComponents(u):(0,l.filter)(this._componentsMap.get(s),(function(t){return!!t}));return a=v(c,t),t.filter?(0,l.filter)(a,t.filter):a},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,l.isFunction)(t)){var r=e,a=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(r,e,i,i.componentIndex)}}))}else for(var o=(0,l.isString)(t)?i.get(t):(0,l.isObject)(t)?this.findComponents(t):null,s=0;o&&s<o.length;s++){var u=o[s];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u.convertOptionIdName(t,null);return(0,l.filter)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return(0,l.filter)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return(0,l.filter)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){r(this),(0,l.each)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){(0,l.each)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){r(this),(0,l.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,l.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return r(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){r(this);var n=[];(0,l.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,l.createHashMap)(n)},e.prototype.restoreData=function(t){i(this);var e=this._componentsMap,n=[];e.each((function(t,e){h.default.hasClass(e)&&n.push(e)})),h.default.topologicalTravel(n,h.default.getAllClassMainTypes(),(function(n){(0,l.each)(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(i=function(t){var e=t._seriesIndices=[];(0,l.each)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=(0,l.createHashMap)(e)},r=function(t){},void(o=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=(0,l.createHashMap)({series:[]}),t._componentsCount=(0,l.createHashMap)();var n,i,r,a=e.aria;(0,l.isObject)(a)&&null==a.enabled&&(a.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,(0,l.each)(i,(function(t,e){"colorLayer"===e&&r||h.default.hasClass(e)||("object"==typeof t?n[e]=n[e]?(0,l.merge)(n[e],t,!1):(0,l.clone)(t):null==n[e]&&(n[e]=t))})),(0,l.merge)(e,d.default,!1),t._mergeOption(e,null)})),e}(c.default);function m(t,e,n){if((0,l.isArray)(e)){var i=(0,l.createHashMap)();return(0,l.each)(e,(function(t){null!=t&&null!=u.convertOptionIdName(t,null)&&i.set(t,!0)})),(0,l.filter)(n,(function(e){return e&&i.get(e[t])}))}var r=u.convertOptionIdName(e,null);return(0,l.filter)(n,(function(e){return e&&null!=r&&e[t]===r}))}function v(t,e){return e.hasOwnProperty("subType")?(0,l.filter)(t,(function(t){return t&&t.subType===e.subType})):t}function x(t){var e=(0,l.createHashMap)();return t&&(0,l.each)(u.normalizeToArray(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}(0,l.mixin)(y,g.PaletteMixin);var _=y})),a.register("2LuwV",(function(e,n){t(e.exports,"normalizeToArray",(()=>c)),t(e.exports,"defaultEmphasis",(()=>h)),t(e.exports,"TEXT_STYLE_OPTIONS",(()=>d)),t(e.exports,"getDataItemValue",(()=>p)),t(e.exports,"isDataItemOption",(()=>f)),t(e.exports,"mappingToExists",(()=>g)),t(e.exports,"isComponentIdInternal",(()=>_)),t(e.exports,"convertOptionIdName",(()=>v)),t(e.exports,"isNameSpecified",(()=>x)),t(e.exports,"makeInternalComponentId",(()=>b)),t(e.exports,"setComponentTypeToKeyInfo",(()=>S)),t(e.exports,"compressBatches",(()=>C)),t(e.exports,"queryDataIndex",(()=>w)),t(e.exports,"makeInner",(()=>M)),t(e.exports,"parseFinder",(()=>T)),t(e.exports,"preParseFinder",(()=>A)),t(e.exports,"queryReferringComponents",(()=>k)),t(e.exports,"SINGLE_REFERRING",(()=>D)),t(e.exports,"MULTIPLE_REFERRING",(()=>L)),t(e.exports,"setAttribute",(()=>O)),t(e.exports,"getAttribute",(()=>P)),t(e.exports,"getTooltipRenderMode",(()=>E)),t(e.exports,"groupData",(()=>R)),t(e.exports,"interpolateRawValues",(()=>N));var i=a("2FIaD"),r=a("6rpCZ"),o=a("lcKsG");function s(t,e,n){return(e-t)*n+t}var l="series\0",u="\0_ec_\0";function c(t){return t instanceof Array?t:null==t?[]:[t]}function h(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var d=["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 p(t){return!(0,i.isObject)(t)||(0,i.isArray)(t)||t instanceof Date?t:t.value}function f(t){return(0,i.isObject)(t)&&!(t instanceof Array)}function g(t,e,n){var r="normalMerge"===n,a="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var s=(0,i.createHashMap)();(0,i.each)(e,(function(t,n){(0,i.isObject)(t)||(e[n]=null)}));var u,c,h=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var a=t[r];a&&null!=a.id&&e.set(a.id,r),i.push({existing:"replaceMerge"===n||_(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}(t,s,n);return(r||a)&&function(t,e,n,r){(0,i.each)(r,(function(a,o){if(a&&null!=a.id){var s=m(a.id),l=n.get(s);if(null!=l){var u=t[l];(0,i.assert)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=a,u.existing=e[l],r[o]=null}}}))}(h,t,s,e),r&&function(t,e){(0,i.each)(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var a=t[r].existing;if(!t[r].newOption&&a&&(null==a.id||null==n.id)&&!_(n)&&!_(a)&&y("name",a,n))return t[r].newOption=n,void(e[i]=null)}}))}(h,e),r||a?function(t,e,n){(0,i.each)(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||_(i.existing)||i.existing&&null!=e.id&&!y("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(h,e,a):o&&function(t,e){(0,i.each)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(h,e),u=h,c=(0,i.createHashMap)(),(0,i.each)(u,(function(t){var e=t.existing;e&&c.set(e.id,t)})),(0,i.each)(u,(function(t){var e=t.newOption;(0,i.assert)(!e||null==e.id||!c.get(e.id)||c.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&c.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),(0,i.each)(u,(function(t,e){var n=t.existing,r=t.newOption,a=t.keyInfo;if((0,i.isObject)(r)){if(a.name=null!=r.name?m(r.name):n?n.name:l+e,n)a.id=m(n.id);else if(null!=r.id)a.id=m(r.id);else{var o=0;do{a.id="\0"+a.name+"\0"+o++}while(c.get(a.id))}c.set(a.id,t)}})),h}function y(t,e,n){var i=v(e[t],null),r=v(n[t],null);return null!=i&&null!=r&&i===r}function m(t){return v(t,"")}function v(t,e){return null==t?e:(0,i.isString)(t)?t:(0,i.isNumber)(t)||(0,i.isStringSafe)(t)?t+"":e}function x(t){var e=t.name;return!(!e||!e.indexOf(l))}function _(t){return t&&null!=t.id&&0===m(t.id).indexOf(u)}function b(t){return u+t}function S(t,e,n){(0,i.each)(t,(function(t){var r=t.newOption;(0,i.isObject)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,r,t.existing,n))}))}function C(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var a=v(t[i].seriesId,null);if(null==a)return;for(var o=c(t[i].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}}function a(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=a(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function w(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,i.isArray)(e.dataIndex)?(0,i.map)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,i.isArray)(e.name)?(0,i.map)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function M(){var t="__ec_inner_"+I++;return function(e){return e[t]||(e[t]={})}}var I=(0,o.getRandomIdBase)();function T(t,e,n){var i=A(e,n),r=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=n?n.defaultMainType:null;return!r&&s&&a.set(s,{}),a.each((function(e,i){var r=k(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[i+"Models"]=r.models,o[i+"Model"]=r.models[0]})),o}function A(t,e){var n;if((0,i.isString)(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=(0,i.createHashMap)(),o={},s=!1;return(0,i.each)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();!l||!u||e&&e.includeMainTypes&&(0,i.indexOf)(e.includeMainTypes,l)<0||(s=s||!!l,(a.get(l)||a.set(l,{}))[u]=t)}else o[n]=t})),{mainTypeSpecified:s,queryOptionMap:a,others:o}}var D={useDefault:!0,enableAll:!1,enableNone:!1},L={useDefault:!1,enableAll:!0,enableNone:!0};function k(t,e,n,r){r=r||D;var a=n.index,o=n.id,s=n.name,l={models:null,specified:null!=a||null!=o||null!=s};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===a||!1===a?((0,i.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===a&&((0,i.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),l.models=t.queryComponents({mainType:e,index:a,id:o,name:s}),l)}function O(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function P(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function E(t){return"auto"===t?r.default.domSupported?"html":"richText":t||"html"}function R(t,e){var n=(0,i.createHashMap)(),r=[];return(0,i.each)(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function N(t,e,n,r,a){var l=null==e||"auto"===e;if(null==r)return r;if((0,i.isNumber)(r)){var u=s(n||0,r,a);return(0,o.round)(u,l?Math.max((0,o.getPrecision)(n||0),(0,o.getPrecision)(r)):e)}if((0,i.isString)(r))return a<1?n:r;for(var c=[],h=n,d=r,p=Math.max(h?h.length:0,d.length),f=0;f<p;++f){var g=t.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(a<1&&h?h:d)[f];else{var y=h&&h[f]?h[f]:0,m=d[f];u=s(y,m,a),c[f]=(0,o.round)(u,l?Math.max((0,o.getPrecision)(y),(0,o.getPrecision)(m)):e)}}return c}})),a.register("lcKsG",(function(e,n){t(e.exports,"linearMap",(()=>o)),t(e.exports,"parsePercent",(()=>s)),t(e.exports,"round",(()=>l)),t(e.exports,"asc",(()=>u)),t(e.exports,"getPrecision",(()=>c)),t(e.exports,"getPrecisionSafe",(()=>h)),t(e.exports,"getPixelPrecision",(()=>d)),t(e.exports,"getPercentWithPrecision",(()=>p)),t(e.exports,"getPercentSeats",(()=>f)),t(e.exports,"addSafe",(()=>g)),t(e.exports,"MAX_SAFE_INTEGER",(()=>y)),t(e.exports,"remRadian",(()=>m)),t(e.exports,"isRadianAroundZero",(()=>v)),t(e.exports,"parseDate",(()=>_)),t(e.exports,"quantity",(()=>b)),t(e.exports,"quantityExponent",(()=>S)),t(e.exports,"nice",(()=>C)),t(e.exports,"quantile",(()=>w)),t(e.exports,"reformIntervals",(()=>M)),t(e.exports,"numericToNumber",(()=>I)),t(e.exports,"isNumeric",(()=>T)),t(e.exports,"getRandomIdBase",(()=>A)),t(e.exports,"getLeastCommonMultiple",(()=>L));var i=a("2FIaD"),r=1e-4;function o(t,e,n,i){var r=e[0],a=e[1],o=n[0],s=n[1],l=a-r,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(i)if(l>0){if(t<=r)return o;if(t>=a)return s}else{if(t>=r)return o;if(t<=a)return s}else{if(t===r)return o;if(t===a)return s}return(t-r)/l*u+o}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return i.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function u(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return h(t)}function h(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:r-1-a;return Math.max(0,o-i)}function d(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function p(t,e,n){return t[e]&&f(t,n)[e]||0}function f(t,e){var n=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),a=i.map(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,s=i.map(a,(function(t){return Math.floor(t)})),l=i.reduce(s,(function(t,e){return t+e}),0),u=i.map(a,(function(t,e){return t-s[e]}));l<o;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return i.map(s,(function(t){return t/r}))}function g(t,e){var n=Math.max(c(t),c(e)),i=t+e;return n>20?i:l(i,n)}var y=9007199254740991;function m(t){var e=2*Math.PI;return(t%e+e)%e}function v(t){return t>-1e-4&&t<r}var x=/^(?:(\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 _(t){if(t instanceof Date)return t;if(i.isString(t)){var e=x.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function b(t){return Math.pow(10,S(t))}function S(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function C(t,e){var n=S(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function w(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function M(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,a=t[i].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-n),e=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function I(t){var e=parseFloat(t);return e==t&&(0!==e||!i.isString(t)||t.indexOf("x")<=0)?e:NaN}function T(t){return!isNaN(I(t))}function A(){return Math.round(9*Math.random())}function D(t,e){return 0===e?t:D(e,t%e)}function L(t,e){return null==t?e:null==e?t:t*e/D(t,e)}})),a.register("9xTlQ",(function(e,n){t(e.exports,"default",(()=>d));var i=a("6rpCZ"),r=a("fN7Ut"),o=a("6Nhfg"),s=a("lzmW0"),l=a("gncYE"),u=a("gMpFD"),c=a("2FIaD"),h=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){(0,c.merge)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)((0,c.clone)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!i.default.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,r.enableClassExtend)(h),(0,r.enableClassCheck)(h),(0,c.mixin)(h,l.LineStyleMixin),(0,c.mixin)(h,u.ItemStyleMixin),(0,c.mixin)(h,o.AreaStyleMixin),(0,c.mixin)(h,s.default);var d=h})),a.register("fN7Ut",(function(e,n){t(e.exports,"parseClassType",(()=>s)),t(e.exports,"isExtendedClass",(()=>l)),t(e.exports,"enableClassExtend",(()=>u)),t(e.exports,"mountExtend",(()=>c)),t(e.exports,"enableClassCheck",(()=>d)),t(e.exports,"enableClassManagement",(()=>g));var i=a("lCvKW"),r=a("2FIaD"),o="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function l(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,a=this;return n=a,r.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e}(a):(e=function(){(t.$constructor||a).apply(this,arguments)},r.inherits(e,this)),r.extend(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=p,e.superApply=f,e.superClass=a,e}}function c(t,e){t.extend=e.extend}var h=Math.round(10*Math.random());function d(t){var e=["__\0is_clz",h++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function p(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function g(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){n=i,r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=i;var a=s(i);if(a.sub){if(a.sub!==o){var l=function(t){var n=e[t.main];return n&&n.___EC__COMPONENT__CONTAINER___||((n=e[t.main]={}).___EC__COMPONENT__CONTAINER___=!0),n}(a);l[a.sub]=t}}else e[a.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r.___EC__COMPONENT__CONTAINER___&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=s(t),i=[],a=e[n.main];return a&&a.___EC__COMPONENT__CONTAINER___?r.each(a,(function(t,e){e!==o&&i.push(t)})):i.push(a),i},t.hasClass=function(t){var n=s(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=s(t),i=e[n.main];return i&&i.___EC__COMPONENT__CONTAINER___}}})),a.register("6Nhfg",(function(e,n){t(e.exports,"AreaStyleMixin",(()=>r));var i=(0,a("5ESKT").default)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return i(this,t,e)},t}()})),a.register("5ESKT",(function(e,n){t(e.exports,"default",(()=>r));var i=a("2FIaD");function r(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i.indexOf(r,l)>=0||a&&i.indexOf(a,l)<0)){var u=n.getShallow(l,e);null!=u&&(o[t[s][0]]=u)}}return o}}})),a.register("lzmW0",(function(e,n){t(e.exports,"default",(()=>u));var i=a("c3Bep"),r=a("jud7h"),o=["textStyle","color"],s=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],l=new(0,r.default),u=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(o):null)},t.prototype.getFont=function(){return(0,i.getFont)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<s.length;n++)e[s[n]]=this.getShallow(s[n]);return l.useStyle(e),l.update(),l.getBoundingRect()},t}()})),a.register("c3Bep",(function(e,n){t(e.exports,"setLabelStyle",(()=>d)),t(e.exports,"createTextStyle",(()=>f)),t(e.exports,"createTextConfig",(()=>g)),t(e.exports,"labelInner",(()=>b)),t(e.exports,"getLabelStatesModels",(()=>p)),t(e.exports,"getFont",(()=>_)),t(e.exports,"setLabelValueAnimation",(()=>S)),t(e.exports,"animateLabelValue",(()=>C));var i=a("jud7h"),r=a("2FIaD"),o=a("4lzC1"),s=a("2LuwV"),l=a("kJ7of");a("dXBoT"),l=a("kJ7of");var u={};function c(t,e){for(var n=0;n<o.SPECIAL_STATES.length;n++){var i=o.SPECIAL_STATES[n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function h(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.isFunction)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},h=0;h<o.SPECIAL_STATES.length;h++){var d=o.SPECIAL_STATES[h],p=e[d];c[d]=(0,r.retrieve2)(a?a.getFormattedLabel(s,d,null,l,p&&p.get("formatter")):null,i)}return c}function d(t,e,n,a){n=n||u;for(var s=t instanceof i.default,l=!1,d=0;d<o.DISPLAY_STATES.length;d++)if((_=e[o.DISPLAY_STATES[d]])&&_.getShallow("show")){l=!0;break}var p=s?t:t.getTextContent();if(l){s||(p||(p=new(0,i.default),t.setTextContent(p)),t.stateProxy&&(p.stateProxy=t.stateProxy));var y=h(n,e),m=e.normal,v=!!m.getShallow("show"),x=f(m,a&&a.normal,n,!1,!s);for(x.text=y.normal,s||t.setTextConfig(g(m,n,!1)),d=0;d<o.SPECIAL_STATES.length;d++){var _,S=o.SPECIAL_STATES[d];if(_=e[S]){var C=p.ensureState(S),w=!!(0,r.retrieve2)(_.getShallow("show"),v);w!==v&&(C.ignore=!w),C.style=f(_,a&&a[S],n,!0,!s),C.style.text=y[S],s||(t.ensureState(S).textConfig=g(_,n,!0))}}p.silent=!!m.getShallow("silent"),null!=p.style.x&&(x.x=p.style.x),null!=p.style.y&&(x.y=p.style.y),p.ignore=!v,p.useStyle(x),p.dirty(),n.enableTextSetter&&(b(p).setLabelText=function(t){var i=h(n,e,t);c(p,i)})}else p&&(p.ignore=!0);t.dirty()}function p(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<o.SPECIAL_STATES.length;i++){var r=o.SPECIAL_STATES[i];n[r]=t.getModel([r,e])}return n}function f(t,e,n,i,a){var o={};return function(t,e,n,i,a){n=n||u;var o,s=e.ecModel,l=s&&s.option.textStyle,c=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||u).rich;if(n){e=e||{};for(var i=(0,r.keys)(n),a=0;a<i.length;a++)e[i[a]]=1}t=t.parentModel}return e}(e);if(c)for(var h in o={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);x(o[h]={},d,l,n,i,a,!1,!0)}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("minMargin");null!=f&&(t.margin=f),x(t,e,l,n,i,a,!0,!1)}(o,t,n,i,a),e&&(0,r.extend)(o,e),o}function g(t,e,n){e=e||{};var i,a={},o=t.getShallow("rotate"),s=(0,r.retrieve2)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(a.position=i),null!=l&&(a.offset=l),null!=o&&(o*=Math.PI/180,a.rotation=o),null!=s&&(a.distance=s),a.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",a}var y=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function x(t,e,n,i,a,o,s,l){n=!a&&n||u;var c=i&&i.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=(0,r.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),o||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var f=(0,r.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=(0,r.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var x=(0,r.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=x&&(t.lineDashOffset=x),a||null!=p||l||(p=i&&i.defaultOpacity),null!=p&&(t.opacity=p),a||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var _=0;_<y.length;_++){var b=y[_];null!=(C=(0,r.retrieve2)(e.getShallow(b),n[b]))&&(t[b]=C)}for(_=0;_<m.length;_++)b=m[_],null!=(C=e.getShallow(b))&&(t[b]=C);if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!s||!i.disableBox){for(_=0;_<v.length;_++){var C;b=v[_],null!=(C=e.getShallow(b))&&(t[b]=C)}var w=e.getShallow("borderType");null!=w&&(t.borderDash=w),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,r.trim)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var b=(0,s.makeInner)();function S(t,e,n,i){if(t){var r=b(t);r.prevValue=r.value,r.value=n;var a=e.normal;r.valueAnimation=a.get("valueAnimation"),r.valueAnimation&&(r.precision=a.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function C(t,e,n,i,a){var o=b(t);if(o.valueAnimation&&o.prevValue!==o.value){var u=o.defaultInterpolatedText,d=(0,r.retrieve2)(o.interpolatedValue,o.prevValue),p=o.value;t.percent=0,(null==o.prevValue?l.initProps:l.updateProps)(t,{percent:1},i,e,null,(function(i){var r=(0,s.interpolateRawValues)(n,o.precision,d,p,i);o.interpolatedValue=1===i?null:r;var l=h({labelDataIndex:e,labelFetcher:a,defaultText:u?u(r):r+""},o.statesModels,r);c(t,l)}))}}})),a.register("jud7h",(function(e,n){t(e.exports,"hasSeparateFont",(()=>S)),t(e.exports,"parseFontSize",(()=>_)),t(e.exports,"default",(()=>D));var i=a("lCvKW"),r=a("l8RYh"),o=a("eIhqd"),s=a("2FIaD"),l=a("bv5ZD"),u=a("kbAoh"),c=a("jKUgc"),h=a("lV62k"),d=a("77M3u"),p=a("2JyUO"),f={fill:"#000"},g={style:(0,s.defaults)({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},d.DEFAULT_COMMON_ANIMATION_PROPS.style)},y=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(e),n}return(0,i.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,C(t=this.style),(0,s.each)(t.rich,C),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new(0,h.default)(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var a=e[r],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(t.copy(o),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||o.clone()).union(o)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||f},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return(0,s.extend)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=(0,s.keys)(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},(0,s.extend)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return g},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||p.DEFAULT_FONT,n=t.padding,i=T(t),a=(0,r.parsePlainText)(i,t),s=A(t),u=!!t.backgroundColor,c=a.outerHeight,d=a.outerWidth,f=a.contentWidth,g=a.lines,y=a.lineHeight,m=this._defaultStyle,v=t.x||0,x=t.y||0,_=t.align||m.align||"left",S=t.verticalAlign||m.verticalAlign||"top",C=v,D=(0,l.adjustTextY)(x,a.contentHeight,S);if(s||n){var L=(0,l.adjustTextX)(v,d,_),k=(0,l.adjustTextY)(x,c,S);s&&this._renderBackground(t,t,L,k,d,c)}D+=y/2,n&&(C=I(v,_,n),"top"===S?D+=n[0]:"bottom"===S&&(D-=n[2]));for(var O=0,P=!1,E=(M("fill"in t?t.fill:(P=!0,m.fill))),R=(w("stroke"in t?t.stroke:u||m.autoStroke&&!P?null:(O=2,m.stroke))),N=t.textShadowBlur>0,B=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),F=a.calculatedLineHeight,z=0;z<g.length;z++){var V=this._getOrCreateChild(o.default),W=V.createStyle();V.useStyle(W),W.text=g[z],W.x=C,W.y=D,_&&(W.textAlign=_),W.textBaseline="middle",W.opacity=t.opacity,W.strokeFirst=!0,N&&(W.shadowBlur=t.textShadowBlur||0,W.shadowColor=t.textShadowColor||"transparent",W.shadowOffsetX=t.textShadowOffsetX||0,W.shadowOffsetY=t.textShadowOffsetY||0),W.stroke=R,W.fill=E,R&&(W.lineWidth=t.lineWidth||O,W.lineDash=t.lineDash,W.lineDashOffset=t.lineDashOffset||0),W.font=e,b(W,t),D+=y,B&&V.setBoundingRect(new(0,h.default)((0,l.adjustTextX)(W.x,t.width,W.textAlign),(0,l.adjustTextY)(W.y,F,W.textBaseline),f,F))}},e.prototype._updateRichTexts=function(){var t=this.style,e=T(t),n=(0,r.parseRichText)(e,t),i=n.width,a=n.outerWidth,o=n.outerHeight,s=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,d=t.align||h.align,p=t.verticalAlign||h.verticalAlign,f=(0,l.adjustTextX)(u,a,d),g=(0,l.adjustTextY)(c,o,p),y=f,m=g;s&&(y+=s[3],m+=s[0]);var v=y+i;A(t)&&this._renderBackground(t,t,f,g,a,o);for(var x=!!t.backgroundColor,_=0;_<n.lines.length;_++){for(var b=n.lines[_],S=b.tokens,C=S.length,w=b.lineHeight,M=b.width,I=0,D=y,L=v,k=C-1,O=void 0;I<C&&(!(O=S[I]).align||"left"===O.align);)this._placeToken(O,t,w,m,D,"left",x),M-=O.width,D+=O.width,I++;for(;k>=0&&"right"===(O=S[k]).align;)this._placeToken(O,t,w,m,L,"right",x),M-=O.width,L-=O.width,k--;for(D+=(i-(D-y)-(v-L)-M)/2;I<=k;)O=S[I],this._placeToken(O,t,w,m,D+O.width/2,"center",x),D+=O.width,I++;m+=w}},e.prototype._placeToken=function(t,e,n,i,r,a,u){var c=e.rich[t.styleName]||{};c.text=t.text;var d=t.verticalAlign,f=i+n/2;"top"===d?f=i+t.height/2:"bottom"===d&&(f=i+n-t.height/2),!t.isLineHolder&&A(c)&&this._renderBackground(c,e,"right"===a?r-t.width:"center"===a?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,y=t.textPadding;y&&(r=I(r,a,y),f-=t.height/2-y[0]-t.innerHeight/2);var m=this._getOrCreateChild(o.default),v=m.createStyle();m.useStyle(v);var x=this._defaultStyle,_=!1,S=0,C=M("fill"in c?c.fill:"fill"in e?e.fill:(_=!0,x.fill)),T=w("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||x.autoStroke&&!_?null:(S=2,x.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;v.text=t.text,v.x=r,v.y=f,D&&(v.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,v.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",v.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,v.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),v.textAlign=a,v.textBaseline="middle",v.font=t.font||p.DEFAULT_FONT,v.opacity=(0,s.retrieve3)(c.opacity,e.opacity,1),b(v,c),T&&(v.lineWidth=(0,s.retrieve3)(c.lineWidth,e.lineWidth,S),v.lineDash=(0,s.retrieve2)(c.lineDash,e.lineDash),v.lineDashOffset=e.lineDashOffset||0,v.stroke=T),C&&(v.fill=C);var L=t.contentWidth,k=t.contentHeight;m.setBoundingRect(new(0,h.default)((0,l.adjustTextX)(v.x,L,v.textAlign),(0,l.adjustTextY)(v.y,k,v.textBaseline),L,k))},e.prototype._renderBackground=function(t,e,n,i,r,a){var o,l,h,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,y=d&&!g,m=t.borderRadius,v=this;if(y||t.lineHeight||p&&f){(o=this._getOrCreateChild(c.default)).useStyle(o.createStyle()),o.style.fill=null;var x=o.shape;x.x=n,x.y=i,x.width=r,x.height=a,x.r=m,o.dirtyShape()}if(y)(h=o.style).fill=d||null,h.fillOpacity=(0,s.retrieve2)(t.fillOpacity,1);else if(g){(l=this._getOrCreateChild(u.default)).onload=function(){v.dirtyStyle()};var _=l.style;_.image=d.image,_.x=n,_.y=i,_.width=r,_.height=a}p&&f&&((h=o.style).lineWidth=p,h.stroke=f,h.strokeOpacity=(0,s.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var b=(o||l).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,s.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return S(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,s.trim)(e)||t.textFont||t.font},e}(d.default),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},x=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?p.DEFAULT_FONT_SIZE+"px":t+"px":t}function b(t,e){for(var n=0;n<x.length;n++){var i=x[n],r=e[i];null!=r&&(t[i]=r)}}function S(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function C(t){if(t){t.font=y.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||m[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||v[n]?n:"top",t.padding&&(t.padding=(0,s.normalizeCssArray)(t.padding))}}function w(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function M(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function I(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function T(t){var e=t.text;return null!=e&&(e+=""),e}function A(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var D=y})),a.register("l8RYh",(function(e,n){t(e.exports,"truncateText",(()=>l)),t(e.exports,"parsePlainText",(()=>d)),t(e.exports,"parseRichText",(()=>y));var i=a("2aSlr"),r=a("2FIaD"),o=a("bv5ZD"),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=u(e,n,i,r);for(var o=0,s=a.length;o<s;o++)a[o]=c(a[o],r);return a.join("\n")}function u(t,e,n,i){i=i||{};var a=(0,r.extend)({},i);a.font=e,n=(0,r.retrieve2)(n,"..."),a.maxIterations=(0,r.retrieve2)(i.maxIterations,2);var s=a.minChar=(0,r.retrieve2)(i.minChar,0);a.cnCharWidth=(0,o.getWidth)("国",e);var l=a.ascCharWidth=(0,o.getWidth)("a",e);a.placeholder=(0,r.retrieve2)(i.placeholder,"");for(var u=t=Math.max(0,t-1),c=0;c<s&&u>=l;c++)u-=l;var h=(0,o.getWidth)(n,e);return h>u&&(n="",h=0),u=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=u,a.containerWidth=t,a}function c(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.getWidth)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?h(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.getWidth)(t,i)}return""===t&&(t=e.placeholder),t}function h(t,e,n,i){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}function d(t,e){null!=t&&(t+="");var n,i=e.overflow,a=e.padding,s=e.font,l="truncate"===i,h=(0,o.getLineHeight)(s),d=(0,r.retrieve2)(e.lineHeight,h),p=!!e.backgroundColor,f="truncate"===e.lineOverflow,g=e.width,y=(n=null==g||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?_(t,e.font,g,"breakAll"===i,0).lines:[]).length*d,m=(0,r.retrieve2)(e.height,y);if(y>m&&f){var v=Math.floor(m/d);n=n.slice(0,v)}if(t&&l&&null!=g)for(var x=u(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;b<n.length;b++)n[b]=c(n[b],x);var S=m,C=0;for(b=0;b<n.length;b++)C=Math.max((0,o.getWidth)(n[b],s),C);null==g&&(g=C);var w=C;return a&&(S+=a[0]+a[2],w+=a[1]+a[3],g+=a[1]+a[3]),p&&(w=g),{lines:n,height:m,outerWidth:w,outerHeight:S,lineHeight:d,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:g}}var p=function(){},f=function(t){this.tokens=[],t&&(this.tokens=t)},g=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function y(t,e){var n=new g;if(null!=t&&(t+=""),!t)return n;for(var a,u=e.width,c=e.height,h=e.overflow,d="break"!==h&&"breakAll"!==h||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===h},p=s.lastIndex=0;null!=(a=s.exec(t));){var f=a.index;f>p&&m(n,t.substring(p,f),e,d),m(n,a[2],e,d,a[1]),p=s.lastIndex}p<t.length&&m(n,t.substring(p,t.length),e,d);var y=[],v=0,x=0,_=e.padding,b="truncate"===h,S="truncate"===e.lineOverflow;function C(t,e,n){t.width=e,t.lineHeight=n,v+=n,x=Math.max(x,e)}t:for(var w=0;w<n.lines.length;w++){for(var M=n.lines[w],I=0,T=0,A=0;A<M.tokens.length;A++){var D=(z=M.tokens[A]).styleName&&e.rich[z.styleName]||{},L=z.textPadding=D.padding,k=L?L[1]+L[3]:0,O=z.font=D.font||e.font;z.contentHeight=(0,o.getLineHeight)(O);var P=(0,r.retrieve2)(D.height,z.contentHeight);if(z.innerHeight=P,L&&(P+=L[0]+L[2]),z.height=P,z.lineHeight=(0,r.retrieve3)(D.lineHeight,e.lineHeight,P),z.align=D&&D.align||e.align,z.verticalAlign=D&&D.verticalAlign||"middle",S&&null!=c&&v+z.lineHeight>c){A>0?(M.tokens=M.tokens.slice(0,A),C(M,T,I),n.lines=n.lines.slice(0,w+1)):n.lines=n.lines.slice(0,w);break t}var E=D.width,R=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))z.percentWidth=E,y.push(z),z.contentWidth=(0,o.getWidth)(z.text,O);else{if(R){var N=D.backgroundColor,B=N&&N.image;B&&(B=i.findExistImage(B),i.isImageReady(B)&&(z.width=Math.max(z.width,B.width*P/B.height)))}var F=b&&null!=u?u-T:null;null!=F&&F<z.width?!R||F<k?(z.text="",z.width=z.contentWidth=0):(z.text=l(z.text,F-k,O,e.ellipsis,{minChar:e.truncateMinChar}),z.width=z.contentWidth=(0,o.getWidth)(z.text,O)):z.contentWidth=(0,o.getWidth)(z.text,O)}z.width+=k,T+=z.width,D&&(I=Math.max(I,z.lineHeight))}C(M,T,I)}for(n.outerWidth=n.width=(0,r.retrieve2)(u,x),n.outerHeight=n.height=(0,r.retrieve2)(c,v),n.contentHeight=v,n.contentWidth=x,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]),w=0;w<y.length;w++){var z,V=(z=y[w]).percentWidth;z.width=parseInt(V,10)/100*n.width}return n}function m(t,e,n,i,r){var a,s,l=""===e,u=r&&n.rich[r]||{},c=t.lines,h=u.font||n.font,d=!1;if(i){var g=u.padding,y=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var m=(0,o.parsePercent)(u.width,i.width)+y;c.length>0&&m+i.accumWidth>i.width&&(a=e.split("\n"),d=!0),i.accumWidth=m}else{var v=_(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+y,s=v.linesWidths,a=v.lines}}else a=e.split("\n");for(var x=0;x<a.length;x++){var b=a[x],S=new p;if(S.styleName=r,S.text=b,S.isLineHolder=!b&&!l,"number"==typeof u.width?S.width=u.width:S.width=s?s[x]:(0,o.getWidth)(b,h),x||d)c.push(new f([S]));else{var C=(c[c.length-1]||(c[0]=new f)).tokens,w=C.length;1===w&&C[0].isLineHolder?C[0]=S:(b||!w||l)&&C.push(S)}}}var v=(0,r.reduce)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function x(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",u="",c=0,h=0,d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=(0,o.getWidth)(p,e),g=!i&&!x(p);(a.length?h+f>n:r+h+f>n)?h?(l||u)&&(g?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=p,l="",h=c+=f):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=p,h=f)):g?(a.push(u),s.push(c),u=p,c=f):(a.push(p),s.push(f)):(h+=f,g?(u+=p,c+=f):(u&&(l+=u,u="",c=0),l+=p))}else u&&(l+=u,h+=c),a.push(l),s.push(h),l="",u="",c=0,h=0}return a.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(h)),1===a.length&&(h+=r),{accumWidth:h,lines:a,linesWidths:s}}})),a.register("2aSlr",(function(e,n){t(e.exports,"findExistImage",(()=>s)),t(e.exports,"createOrUpdateImage",(()=>l)),t(e.exports,"isImageReady",(()=>c));var i=a("8uFR3"),r=a("2JyUO"),o=new(0,i.default)(50);function s(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function l(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),l={hostEl:n,cb:i,cbPayload:a};return s?!c(e=s.image)&&s.pending.push(l):((e=r.platformApi.loadImage(t,u,u)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[l]})),e}return t}return e}function u(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function c(t){return t&&t.width&&t.height}})),a.register("eIhqd",(function(e,n){t(e.exports,"default",(()=>d));var i=a("lCvKW"),r=a("77M3u"),o=a("bv5ZD"),s=a("isgWw"),l=a("2FIaD"),u=a("2JyUO"),c=(0,l.defaults)({strokeFirst:!0,font:u.DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},s.DEFAULT_PATH_STYLE),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,l.createObject)(c,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.getBoundingRect)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.default);h.prototype.type="tspan";var d=h})),a.register("77M3u",(function(e,n){t(e.exports,"DEFAULT_COMMON_STYLE",(()=>c)),t(e.exports,"DEFAULT_COMMON_ANIMATION_PROPS",(()=>h)),t(e.exports,"default",(()=>m));var i=a("lCvKW"),r=a("6AJsI"),o=a("lV62k"),s=a("2FIaD"),l=a("fIYrT"),u="__zr_style_"+Math.round(10*Math.random()),c={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};c[u]=!0;var d=["z","z2","invisible"],p=["invisible"],f=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.__extends)(e,t),e.prototype._init=function(e){for(var n=(0,s.keys)(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return g.copy(t.getBoundingRect()),t.transform&&g.applyTransform(t.transform),y.width=e,y.height=n,!g.intersect(y)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new(0,o.default)(0,0,0,0)),e?o.default.applyTransform(t,n,e):t.copy(n),(r||a||s)&&(t.width+=2*r+Math.abs(a),t.height+=2*r+Math.abs(s),t.x=Math.min(t.x,t.x+a-r),t.y=Math.min(t.y,t.y+s-r));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new(0,o.default)(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:(0,s.extend)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=l.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&l.STYLE_CHANGED_BIT)},e.prototype.styleUpdated=function(){this.__dirty&=~l.STYLE_CHANGED_BIT},e.prototype.createStyle=function(t){return(0,s.createObject)(c,t)},e.prototype.useStyle=function(t){t[u]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[u]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,d)},e.prototype._applyStateObj=function(e,n,i,r,a,o){t.prototype._applyStateObj.call(this,e,n,i,r,a,o);var l,u=!(n&&r);if(n&&n.style?a?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(a){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=(0,s.keys)(c),f=0;f<h.length;f++)(y=h[f])in l&&(l[y]=l[y],this.style[y]=c[y]);var g=(0,s.keys)(l);for(f=0;f<g.length;f++){var y=g[f];this.style[y]=this.style[y]}this._transitionState(e,{style:l},o,this.getAnimationStyleProps())}else this.useStyle(l);var m=this.__inHover?p:d;for(f=0;f<m.length;f++)y=m[f],n&&null!=n[y]?this[y]=n[y]:u&&null!=i[y]&&(this[y]=i[y])},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var a=e[r];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return(0,s.extend)(t,e),t},e.prototype.getAnimationStyleProps=function(){return h},e.initDefaultProps=((n=e.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=l.REDRAW_BIT|l.STYLE_CHANGED_BIT)),e}(r.default),g=new(0,o.default)(0,0,0,0),y=new(0,o.default)(0,0,0,0),m=f})),a.register("isgWw",(function(e,n){t(e.exports,"DEFAULT_PATH_STYLE",(()=>p)),t(e.exports,"default",(()=>y));var i=a("lCvKW"),r=a("77M3u"),o=a("hpPau"),s=a("aK4tO"),l=a("2FIaD"),u=a("l3Be0"),c=a("7tJ16"),h=a("fIYrT"),d=a("lnAL9"),p=(0,l.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.DEFAULT_COMMON_STYLE),f={style:(0,l.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.DEFAULT_COMMON_ANIMATION_PROPS.style)},g=d.TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),y=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.__extends)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<g.length;++s)r[g[s]]=this[g[s]];r.__dirty|=h.REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=(0,l.keys)(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var a=n[r],o=e[a];"style"===a?this.style?(0,l.extend)(this.style,o):this.useStyle(o):"shape"===a?(0,l.extend)(this.shape,o):t.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if((0,l.isString)(t)){var e=(0,u.lum)(t,0);return e>.5?c.DARK_LABEL_COLOR:e>.2?c.LIGHTER_LABEL_COLOR:c.LIGHT_LABEL_COLOR}if(t)return c.LIGHT_LABEL_COLOR}return c.DARK_LABEL_COLOR},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,l.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==(0,u.lum)(t,0)<c.DARK_MODE_THRESHOLD)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~h.SHAPE_CHANGED_BIT},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new(0,o.default)(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&h.SHAPE_CHANGED_BIT)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path;if(this.hasStroke()){var o=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/l,t,e)))return!0}if(this.hasFill())return s.contain(a,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=h.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,l.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&h.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return(0,l.createObject)(p,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,l.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,a,o){t.prototype._applyStateObj.call(this,e,n,i,r,a,o);var s,u=!(n&&r);if(n&&n.shape?a?r?s=n.shape:(s=(0,l.extend)({},i.shape),(0,l.extend)(s,n.shape)):(s=(0,l.extend)({},r?this.shape:i.shape),(0,l.extend)(s,n.shape)):u&&(s=i.shape),s)if(a){this.shape=(0,l.extend)({},this.shape);for(var c={},h=(0,l.keys)(s),d=0;d<h.length;d++){var p=h[d];"object"==typeof s[p]?this.shape[p]=s[p]:c[p]=s[p]}this._transitionState(e,{shape:c},o)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var a=e[r];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return f},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return(0,i.__extends)(n,e),n.prototype.getDefaultStyle=function(){return(0,l.clone)(t.style)},n.prototype.getDefaultShape=function(){return(0,l.clone)(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=h.REDRAW_BIT|h.STYLE_CHANGED_BIT|h.SHAPE_CHANGED_BIT)),e}(r.default)})),a.register("hpPau",(function(e,n){t(e.exports,"normalizeArcAngles",(()=>I)),t(e.exports,"default",(()=>A));var i=a("jkyg0"),r=a("lV62k"),o=a("7tJ16"),s=a("2WfwC"),l=a("ibBA5"),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],d=[],p=[],f=[],g=[],y=Math.min,m=Math.max,v=Math.cos,x=Math.sin,_=Math.abs,b=Math.PI,S=2*b,C="undefined"!=typeof Float32Array,w=[];function M(t){return Math.round(t/b*1e8)/1e8%2*b}function I(t,e){var n=M(t[0]);n<0&&(n+=S);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=S?r=n+S:e&&n-r>=S?r=n-S:!e&&n>r?r=n+(S-M(n-r)):e&&n<r&&(r=n-(S-M(r-n))),t[0]=n,t[1]=r}var T=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=_(n/o.devicePixelRatio/t)||0,this._uy=_(n/o.devicePixelRatio/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(u.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){return this._drawPendingPt(),this.addData(u.C,t,e,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,a),this._xi=r,this._yi=a,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(u.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,a){this._drawPendingPt(),w[0]=i,w[1]=r,I(w,a),i=w[0];var o=(r=w[1])-i;return this.addData(u.A,t,e,n,n,i,o,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=v(r)*n+t,this._yi=x(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(u.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!C||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();for(C&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},t.prototype.addData=function(t,e,n,i,r,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,C&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){d[0]=d[1]=f[0]=f[1]=Number.MAX_VALUE,p[0]=p[1]=g[0]=g[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,a=0,o=0,l=0;for(t=0;t<this._len;){var c=e[t++],h=1===t;switch(h&&(o=n=e[t],l=a=e[t+1]),c){case u.M:n=o=e[t++],a=l=e[t++],f[0]=o,f[1]=l,g[0]=o,g[1]=l;break;case u.L:(0,s.fromLine)(n,a,e[t],e[t+1],f,g),n=e[t++],a=e[t++];break;case u.C:(0,s.fromCubic)(n,a,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],f,g),n=e[t++],a=e[t++];break;case u.Q:(0,s.fromQuadratic)(n,a,e[t++],e[t++],e[t],e[t+1],f,g),n=e[t++],a=e[t++];break;case u.A:var y=e[t++],m=e[t++],_=e[t++],b=e[t++],S=e[t++],C=e[t++]+S;t+=1;var w=!e[t++];h&&(o=v(S)*_+y,l=x(S)*b+m),(0,s.fromArc)(y,m,_,b,S,C,w,f,g),n=v(C)*_+y,a=x(C)*b+m;break;case u.R:o=n=e[t++],l=a=e[t++];var M=e[t++],I=e[t++];(0,s.fromLine)(o,l,o+M,l+I,f,g);break;case u.Z:n=o,a=l}i.min(d,d,f),i.max(p,p,g)}return 0===t&&(d[0]=d[1]=p[0]=p[1]=0),new(0,r.default)(d[0],d[1],p[0]-d[0],p[1]-d[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,d=0,p=0;p<e;){var f=t[p++],g=1===p;g&&(o=r=t[p],s=a=t[p+1]);var b=-1;switch(f){case u.M:r=o=t[p++],a=s=t[p++];break;case u.L:var C=t[p++],w=(T=t[p++])-a;(_(B=C-r)>n||_(w)>i||p===e-1)&&(b=Math.sqrt(B*B+w*w),r=C,a=T);break;case u.C:var M=t[p++],I=t[p++],T=(C=t[p++],t[p++]),A=t[p++],D=t[p++];b=(0,l.cubicLength)(r,a,M,I,C,T,A,D,10),r=A,a=D;break;case u.Q:M=t[p++],I=t[p++],C=t[p++],T=t[p++],b=(0,l.quadraticLength)(r,a,M,I,C,T,10),r=C,a=T;break;case u.A:var L=t[p++],k=t[p++],O=t[p++],P=t[p++],E=t[p++],R=t[p++],N=R+E;p+=1,g&&(o=v(E)*O+L,s=x(E)*P+k),b=m(O,P)*y(S,Math.abs(R)),r=v(N)*O+L,a=x(N)*P+k;break;case u.R:o=r=t[p++],s=a=t[p++],b=2*t[p++]+2*t[p++];break;case u.Z:var B=o-r;w=s-a,b=Math.sqrt(B*B+w*w),r=o,a=s}b>=0&&(c[d++]=b,h+=b)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,i,r,a,o,s,d,p,f,g,b=this.data,S=this._ux,C=this._uy,w=this._len,M=e<1,I=0,T=0,A=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var D=0;D<w;){var L=b[D++],k=1===D;switch(k&&(n=r=b[D],i=a=b[D+1]),L!==u.L&&A>0&&(t.lineTo(f,g),A=0),L){case u.M:n=r=b[D++],i=a=b[D++],t.moveTo(r,a);break;case u.L:o=b[D++],s=b[D++];var O=_(o-r),P=_(s-a);if(O>S||P>C){if(M){if(I+(it=d[T++])>p){var E=(p-I)/it;t.lineTo(r*(1-E)+o*E,a*(1-E)+s*E);break t}I+=it}t.lineTo(o,s),r=o,a=s,A=0}else{var R=O*O+P*P;R>A&&(f=o,g=s,A=R)}break;case u.C:var N=b[D++],B=b[D++],F=b[D++],z=b[D++],V=b[D++],W=b[D++];if(M){if(I+(it=d[T++])>p){E=(p-I)/it,(0,l.cubicSubdivide)(r,N,F,V,E,c),(0,l.cubicSubdivide)(a,B,z,W,E,h),t.bezierCurveTo(c[1],h[1],c[2],h[2],c[3],h[3]);break t}I+=it}t.bezierCurveTo(N,B,F,z,V,W),r=V,a=W;break;case u.Q:if(N=b[D++],B=b[D++],F=b[D++],z=b[D++],M){if(I+(it=d[T++])>p){E=(p-I)/it,(0,l.quadraticSubdivide)(r,N,F,E,c),(0,l.quadraticSubdivide)(a,B,z,E,h),t.quadraticCurveTo(c[1],h[1],c[2],h[2]);break t}I+=it}t.quadraticCurveTo(N,B,F,z),r=F,a=z;break;case u.A:var G=b[D++],H=b[D++],j=b[D++],U=b[D++],Y=b[D++],K=b[D++],X=b[D++],Z=!b[D++],q=j>U?j:U,J=_(j-U)>.001,Q=Y+K,$=!1;if(M&&(I+(it=d[T++])>p&&(Q=Y+K*(p-I)/it,$=!0),I+=it),J&&t.ellipse?t.ellipse(G,H,j,U,X,Y,Q,Z):t.arc(G,H,q,Y,Q,Z),$)break t;k&&(n=v(Y)*j+G,i=x(Y)*U+H),r=v(Q)*j+G,a=x(Q)*U+H;break;case u.R:n=r=b[D],i=a=b[D+1],o=b[D++],s=b[D++];var tt=b[D++],et=b[D++];if(M){if(I+(it=d[T++])>p){var nt=p-I;t.moveTo(o,s),t.lineTo(o+y(nt,tt),s),(nt-=tt)>0&&t.lineTo(o+tt,s+y(nt,et)),(nt-=et)>0&&t.lineTo(o+m(tt-nt,0),s+et),(nt-=tt)>0&&t.lineTo(o,s+m(et-nt,0));break t}I+=it}t.rect(o,s,tt,et);break;case u.Z:if(M){var it;if(I+(it=d[T++])>p){E=(p-I)/it,t.lineTo(r*(1-E)+n*E,a*(1-E)+i*E);break t}I+=it}t.closePath(),r=n,a=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}(),A=T})),a.register("2WfwC",(function(e,n){t(e.exports,"fromPoints",(()=>f)),t(e.exports,"fromLine",(()=>g)),t(e.exports,"fromCubic",(()=>v)),t(e.exports,"fromQuadratic",(()=>x)),t(e.exports,"fromArc",(()=>_));var i=a("jkyg0"),r=a("ibBA5"),o=Math.min,s=Math.max,l=Math.sin,u=Math.cos,c=2*Math.PI,h=i.create(),d=i.create(),p=i.create();function f(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],a=i[0],l=i[1],u=i[1],c=1;c<t.length;c++)i=t[c],r=o(r,i[0]),a=s(a,i[0]),l=o(l,i[1]),u=s(u,i[1]);e[0]=r,e[1]=l,n[0]=a,n[1]=u}}function g(t,e,n,i,r,a){r[0]=o(t,n),r[1]=o(e,i),a[0]=s(t,n),a[1]=s(e,i)}var y=[],m=[];function v(t,e,n,i,a,l,u,c,h,d){var p=r.cubicExtrema,f=r.cubicAt,g=p(t,n,a,u,y);h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var v=0;v<g;v++){var x=f(t,n,a,u,y[v]);h[0]=o(x,h[0]),d[0]=s(x,d[0])}for(g=p(e,i,l,c,m),v=0;v<g;v++){var _=f(e,i,l,c,m[v]);h[1]=o(_,h[1]),d[1]=s(_,d[1])}h[0]=o(t,h[0]),d[0]=s(t,d[0]),h[0]=o(u,h[0]),d[0]=s(u,d[0]),h[1]=o(e,h[1]),d[1]=s(e,d[1]),h[1]=o(c,h[1]),d[1]=s(c,d[1])}function x(t,e,n,i,a,l,u,c){var h=r.quadraticExtremum,d=r.quadraticAt,p=s(o(h(t,n,a),1),0),f=s(o(h(e,i,l),1),0),g=d(t,n,a,p),y=d(e,i,l,f);u[0]=o(t,a,g),u[1]=o(e,l,y),c[0]=s(t,a,g),c[1]=s(e,l,y)}function _(t,e,n,r,a,o,s,f,g){var y=i.min,m=i.max,v=Math.abs(a-o);if(v%c<1e-4&&v>1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=u(a)*n+t,h[1]=l(a)*r+e,d[0]=u(o)*n+t,d[1]=l(o)*r+e,y(f,h,d),m(g,h,d),(a%=c)<0&&(a+=c),(o%=c)<0&&(o+=c),a>o&&!s?o+=c:a<o&&s&&(a+=c),s){var x=o;o=a,a=x}for(var _=0;_<o;_+=Math.PI/2)_>a&&(p[0]=u(_)*n+t,p[1]=l(_)*r+e,y(f,p,f),m(g,p,g))}})),a.register("aK4tO",(function(e,n){t(e.exports,"contain",(()=>x)),t(e.exports,"containStroke",(()=>_));var i=a("hpPau"),r=a("anAoQ"),o=a("ee7F1"),s=a("lK81I"),l=a("4cNPs"),u=a("ibBA5"),c=a("8xAKP"),h=i.default.CMD,d=2*Math.PI,p=[-1,-1,-1],f=[-1,-1];function g(t,e,n,i,r,a,o,s,l,c){if(c>e&&c>i&&c>a&&c>s||c<e&&c<i&&c<a&&c<s)return 0;var h,d=u.cubicRootAt(e,i,a,s,c,p);if(0===d)return 0;for(var g=0,y=-1,m=void 0,v=void 0,x=0;x<d;x++){var _=p[x],b=0===_||1===_?.5:1;u.cubicAt(t,n,r,o,_)<l||(y<0&&(y=u.cubicExtrema(e,i,a,s,f),f[1]<f[0]&&y>1&&(void 0,h=f[0],f[0]=f[1],f[1]=h),m=u.cubicAt(e,i,a,s,f[0]),y>1&&(v=u.cubicAt(e,i,a,s,f[1]))),2===y?_<f[0]?g+=m<e?b:-b:_<f[1]?g+=v<m?b:-b:g+=s<v?b:-b:_<f[0]?g+=m<e?b:-b:g+=s<m?b:-b)}return g}function y(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=u.quadraticRootAt(e,i,a,s,p);if(0===l)return 0;var c=u.quadraticExtremum(e,i,a);if(c>=0&&c<=1){for(var h=0,d=u.quadraticAt(e,i,a,c),f=0;f<l;f++){var g=0===p[f]||1===p[f]?.5:1;u.quadraticAt(t,n,r,p[f])<o||(p[f]<c?h+=d<e?g:-g:h+=a<d?g:-g)}return h}return g=0===p[0]||1===p[0]?.5:1,u.quadraticAt(t,n,r,p[0])<o?0:a<e?g:-g}function m(t,e,n,i,r,a,o,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);p[0]=-l,p[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=d-1e-4){i=0,r=d;var c=a?1:-1;return o>=p[0]+t&&o<=p[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=d,r+=d);for(var f=0,g=0;g<2;g++){var y=p[g];if(y+t>o){var m=Math.atan2(s,y);c=a?1:-1,m<0&&(m=d+m),(m>=i&&m<=r||m+d>=i&&m+d<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),f+=c)}}return f}function v(t,e,n,i,a){for(var u,d,p,f,v=t.data,x=t.len(),_=0,b=0,S=0,C=0,w=0,M=0;M<x;){var I=v[M++],T=1===M;switch(I===h.M&&M>1&&(n||(_+=(0,c.default)(b,S,C,w,i,a))),T&&(C=b=v[M],w=S=v[M+1]),I){case h.M:b=C=v[M++],S=w=v[M++];break;case h.L:if(n){if(r.containStroke(b,S,v[M],v[M+1],e,i,a))return!0}else _+=(0,c.default)(b,S,v[M],v[M+1],i,a)||0;b=v[M++],S=v[M++];break;case h.C:if(n){if(o.containStroke(b,S,v[M++],v[M++],v[M++],v[M++],v[M],v[M+1],e,i,a))return!0}else _+=g(b,S,v[M++],v[M++],v[M++],v[M++],v[M],v[M+1],i,a)||0;b=v[M++],S=v[M++];break;case h.Q:if(n){if(s.containStroke(b,S,v[M++],v[M++],v[M],v[M+1],e,i,a))return!0}else _+=y(b,S,v[M++],v[M++],v[M],v[M+1],i,a)||0;b=v[M++],S=v[M++];break;case h.A:var A=v[M++],D=v[M++],L=v[M++],k=v[M++],O=v[M++],P=v[M++];M+=1;var E=!!(1-v[M++]);u=Math.cos(O)*L+A,d=Math.sin(O)*k+D,T?(C=u,w=d):_+=(0,c.default)(b,S,u,d,i,a);var R=(i-A)*k/L+A;if(n){if(l.containStroke(A,D,k,O,O+P,E,e,R,a))return!0}else _+=m(A,D,k,O,O+P,E,R,a);b=Math.cos(O+P)*L+A,S=Math.sin(O+P)*k+D;break;case h.R:if(C=b=v[M++],w=S=v[M++],u=C+v[M++],d=w+v[M++],n){if(r.containStroke(C,w,u,w,e,i,a)||r.containStroke(u,w,u,d,e,i,a)||r.containStroke(u,d,C,d,e,i,a)||r.containStroke(C,d,C,w,e,i,a))return!0}else _+=(0,c.default)(u,w,u,d,i,a),_+=(0,c.default)(C,d,C,w,i,a);break;case h.Z:if(n){if(r.containStroke(b,S,C,w,e,i,a))return!0}else _+=(0,c.default)(b,S,C,w,i,a);b=C,S=w}}return n||(p=S,f=w,Math.abs(p-f)<1e-4)||(_+=(0,c.default)(b,S,C,w,i,a)||0),0!==_}function x(t,e,n){return v(t,0,!1,e,n)}function _(t,e,n,i){return v(t,e,!0,n,i)}})),a.register("anAoQ",(function(e,n){function i(t,e,n,i,r,a,o){if(0===r)return!1;var s,l=r;if(o>e+l&&o>i+l||o<e-l&&o<i-l||a>t+l&&a>n+l||a<t-l&&a<n-l)return!1;if(t===n)return Math.abs(a-t)<=l/2;var u=(s=(e-i)/(t-n))*a-o+(t*i-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}t(e.exports,"containStroke",(()=>i))})),a.register("ee7F1",(function(e,n){t(e.exports,"containStroke",(()=>r));var i=a("ibBA5");function r(t,e,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;return!(h>e+d&&h>r+d&&h>o+d&&h>l+d||h<e-d&&h<r-d&&h<o-d&&h<l-d||c>t+d&&c>n+d&&c>a+d&&c>s+d||c<t-d&&c<n-d&&c<a-d&&c<s-d)&&i.cubicProjectPoint(t,e,n,r,a,o,s,l,c,h,null)<=d/2}})),a.register("lK81I",(function(e,n){t(e.exports,"containStroke",(()=>r));var i=a("ibBA5");function r(t,e,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;return!(u>e+c&&u>r+c&&u>o+c||u<e-c&&u<r-c&&u<o-c||l>t+c&&l>n+c&&l>a+c||l<t-c&&l<n-c&&l<a-c)&&(0,i.quadraticProjectPoint)(t,e,n,r,a,o,l,u,null)<=c/2}})),a.register("4cNPs",(function(e,n){t(e.exports,"containStroke",(()=>o));var i=a("cy15m"),r=2*Math.PI;function o(t,e,n,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>n||d+h<n)return!1;if(Math.abs(a-o)%r<1e-4)return!0;if(s){var p=a;a=(0,i.normalizeRadian)(o),o=(0,i.normalizeRadian)(p)}else a=(0,i.normalizeRadian)(a),o=(0,i.normalizeRadian)(o);a>o&&(o+=r);var f=Math.atan2(c,u);return f<0&&(f+=r),f>=a&&f<=o||f+r>=a&&f+r<=o}})),a.register("cy15m",(function(e,n){t(e.exports,"normalizeRadian",(()=>r));var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}})),a.register("8xAKP",(function(e,n){function i(t,e,n,i,r,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;1!==o&&0!==o||(s=i<e?.5:-.5);var l=o*(n-t)+t;return l===r?1/0:l>r?s:0}t(e.exports,"default",(()=>i))})),a.register("kbAoh",(function(e,n){t(e.exports,"default",(()=>h));var i=a("lCvKW"),r=a("77M3u"),o=a("lV62k"),s=a("2FIaD"),l=(0,s.defaults)({x:0,y:0},r.DEFAULT_COMMON_STYLE),u={style:(0,s.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.DEFAULT_COMMON_ANIMATION_PROPS.style)},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.createStyle=function(t){return(0,s.createObject)(l,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var a="width"===t?"height":"width",o=e[a];return null==o?r[t]:r[t]/r[a]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new(0,o.default)(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.default);c.prototype.type="image";var h=c})),a.register("jKUgc",(function(e,n){t(e.exports,"default",(()=>h));var i=a("lCvKW"),r=a("isgWw"),o=a("x9uNw"),s=a("a7J4O"),l=function(){this.x=0,this.y=0,this.width=0,this.height=0},u={},c=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,s.subPixelOptimizeRect)(u,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?o.buildPath(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.default);c.prototype.type="rect";var h=c})),a.register("x9uNw",(function(e,n){function i(t,e){var n,i,r,a,o,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>u&&(n*=u/(o=n+i),i*=u/o),r+a>u&&(r*=u/(o=r+a),a*=u/o),i+r>c&&(i*=c/(o=i+r),r*=c/o),n+a>c&&(n*=c/(o=n+a),a*=c/o),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}t(e.exports,"buildPath",(()=>i))})),a.register("a7J4O",(function(e,n){t(e.exports,"subPixelOptimizeLine",(()=>r)),t(e.exports,"subPixelOptimize",(()=>o)),t(e.exports,"subPixelOptimizeRect",(()=>a));var i=Math.round;function r(t,e,n){if(e){var r=e.x1,a=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=a,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*a)&&(t.x1=t.x2=o(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=o(s,u,!0)),t):t}}function a(t,e,n){if(e){var i=e.x,r=e.y,a=e.width,s=e.height;t.x=i,t.y=r,t.width=a,t.height=s;var l=n&&n.lineWidth;return l?(t.x=o(i,l,!0),t.y=o(r,l,!0),t.width=Math.max(o(i+a,l,!1)-t.x,0===a?0:1),t.height=Math.max(o(r+s,l,!1)-t.y,0===s?0:1),t):t}}function o(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}})),a.register("4lzC1",(function(e,n){t(e.exports,"HOVER_STATE_BLUR",(()=>p)),t(e.exports,"HOVER_STATE_EMPHASIS",(()=>f)),t(e.exports,"SPECIAL_STATES",(()=>g)),t(e.exports,"DISPLAY_STATES",(()=>y)),t(e.exports,"Z2_EMPHASIS_LIFT",(()=>m)),t(e.exports,"HIGHLIGHT_ACTION_TYPE",(()=>v)),t(e.exports,"DOWNPLAY_ACTION_TYPE",(()=>x)),t(e.exports,"SELECT_ACTION_TYPE",(()=>_)),t(e.exports,"UNSELECT_ACTION_TYPE",(()=>b)),t(e.exports,"TOGGLE_SELECT_ACTION_TYPE",(()=>S)),t(e.exports,"setStatesFlag",(()=>P)),t(e.exports,"setDefaultStateProxy",(()=>R)),t(e.exports,"enterEmphasis",(()=>F)),t(e.exports,"leaveEmphasis",(()=>z)),t(e.exports,"enterBlur",(()=>V)),t(e.exports,"leaveBlur",(()=>W)),t(e.exports,"enterSelect",(()=>G)),t(e.exports,"leaveSelect",(()=>H)),t(e.exports,"allLeaveBlur",(()=>U)),t(e.exports,"blurComponent",(()=>K)),t(e.exports,"blurSeriesFromHighlightPayload",(()=>X)),t(e.exports,"findComponentHighDownDispatchers",(()=>Z)),t(e.exports,"handleGlobalMouseOverForHighDown",(()=>q)),t(e.exports,"handleGlobalMouseOutForHighDown",(()=>J)),t(e.exports,"toggleSelectionFromPayload",(()=>Q)),t(e.exports,"isSelectChangePayload",(()=>ht)),t(e.exports,"updateSeriesElementSelection",(()=>$)),t(e.exports,"getAllSelectedIndices",(()=>tt)),t(e.exports,"enableHoverEmphasis",(()=>et)),t(e.exports,"setAsHighDownDispatcher",(()=>st)),t(e.exports,"enableHoverFocus",(()=>it)),t(e.exports,"toggleHoverEmphasis",(()=>nt)),t(e.exports,"setStatesStylesFromModel",(()=>ot)),t(e.exports,"isHighDownDispatcher",(()=>lt)),t(e.exports,"enableComponentHighDownFeatures",(()=>ut)),t(e.exports,"getHighlightDigit",(()=>ct)),t(e.exports,"isHighDownPayload",(()=>dt)),t(e.exports,"savePathStates",(()=>pt));var i=a("2FIaD"),r=a("5v9xk"),o=a("l3Be0"),s=a("2LuwV"),l=a("isgWw"),u=1,c={},h=(0,s.makeInner)(),d=(0,s.makeInner)(),p=1,f=2,g=["emphasis","blur","select"],y=["normal","emphasis","blur","select"],m=10,v="highlight",x="downplay",_="select",b="unselect",S="toggleSelect";function C(t){return null!=t&&"none"!==t}function w(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function M(t){w(t,"emphasis",f)}function I(t){t.hoverState===f&&w(t,"normal",0)}function T(t){w(t,"blur",p)}function A(t){t.hoverState===p&&w(t,"normal",0)}function D(t){t.selected=!0}function L(t){t.selected=!1}function k(t,e,n){e(t,n)}function O(t,e,n){k(t,e,n),t.isGroup&&t.traverse((function(t){k(t,e,n)}))}function P(t,e){switch(e){case"emphasis":t.hoverState=f;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function E(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var a=n&&(0,i.indexOf)(n,"select")>=0,s=!1;if(t instanceof l.default){var u=h(t),c=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(C(c)||C(d)){var p=(r=r||{}).style||{};"inherit"===p.fill?(s=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=c):!C(p.fill)&&C(c)?(s=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=(0,o.liftColor)(c)):!C(p.stroke)&&C(d)&&(s||(r=(0,i.extend)({},r),p=(0,i.extend)({},p)),p.stroke=(0,o.liftColor)(d)),r.style=p}}if(r&&null==r.z2){s||(r=(0,i.extend)({},r));var f=t.z2EmphasisLift;r.z2=t.z2+(null!=f?f:m)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=(0,i.indexOf)(t.currentStates,e)>=0,a=t.style.opacity,o=r?null:function(t,e,n,i){for(var r=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=r[s];a[s]=null==l?i&&i[s]:l}for(o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(a,e)}return a}(t,["opacity"],e,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,i.extend)({},n),s=(0,i.extend)({opacity:r?a:.1*o.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=(0,i.extend)({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function R(t){t.stateProxy=E;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=E),n&&(n.stateProxy=E)}function N(t,e){!j(t,e)&&!t.__highByOuter&&O(t,M)}function B(t,e){!j(t,e)&&!t.__highByOuter&&O(t,I)}function F(t,e){t.__highByOuter|=1<<(e||0),O(t,M)}function z(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&O(t,I)}function V(t){O(t,T)}function W(t){O(t,A)}function G(t){O(t,D)}function H(t){O(t,L)}function j(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function U(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var a=d(i),o="series"===e,s=o?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse((function(t){A(t)})),o&&n.push(i)),a.isBlured=!1})),(0,i.each)(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Y(t,e,n,r){var a=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&W(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries((function(t){var a=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!a||"coordinateSystem"===n&&!(c&&l?c===l:a)||"series"===e&&a)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&a&&"self"===e||T(t)})),(0,i.isArrayLike)(e))o(t.getData(),e);else if((0,i.isObject)(e))for(var h=(0,i.keys)(e),p=0;p<h.length;p++)o(t.getData(h[p]),e[h[p]]);u.push(t),d(t).isBlured=!0}})),a.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,a)}}))}}function K(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){d(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){T(t)}))}}}function X(t,e,n){var a=t.seriesIndex,o=t.getData(e.dataType);if(o){var l=(0,s.queryDataIndex)(o,e);l=((0,i.isArray)(l)?l[0]:l)||0;var u=o.getItemGraphicEl(l);if(!u)for(var c=o.count(),h=0;!u&&h<c;)u=o.getItemGraphicEl(h++);if(u){var d=(0,r.getECData)(u);Y(a,d.focus,d.blurScope,n)}else{var p=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=p&&Y(a,p,f,n)}}}function Z(t,e,n,i){var a={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return a;var o=i.getModel().getComponent(t,e);if(!o)return a;var s=i.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===(0,r.getECData)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function q(t,e,n){var a=(0,r.getECData)(t),o=Z(a.componentMainType,a.componentIndex,a.componentHighDownName,n),s=o.dispatchers,l=o.focusSelf;s?(l&&K(a.componentMainType,a.componentIndex,n),(0,i.each)(s,(function(t){return N(t,e)}))):(Y(a.seriesIndex,a.focus,a.blurScope,n),"self"===a.focus&&K(a.componentMainType,a.componentIndex,n),N(t,e))}function J(t,e,n){U(n);var a=(0,r.getECData)(t),o=Z(a.componentMainType,a.componentIndex,a.componentHighDownName,n).dispatchers;o?(0,i.each)(o,(function(t){return B(t,e)})):B(t,e)}function Q(t,e,n){if(ht(e)){var r=e.dataType,a=t.getData(r),o=(0,s.queryDataIndex)(a,e);(0,i.isArray)(o)||(o=[o]),t[e.type===S?"toggleSelect":e.type===_?"select":"unselect"](o,r)}}function $(t){var e=t.getAllData();(0,i.each)(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?G(e):H(e)}))}))}function tt(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();(0,i.each)(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var a={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(a.dataType=i),e.push(a)}}))})),e}function et(t,e,n){st(t,!0),O(t,R),it(t,e,n)}function nt(t,e,n,i){i?function(t){st(t,!1)}(t):et(t,e,n)}function it(t,e,n){var i=(0,r.getECData)(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var rt=["emphasis","blur","select"],at={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ot(t,e,n,i){n=n||"itemStyle";for(var r=0;r<rt.length;r++){var a=rt[r],o=e.getModel([a,n]);t.ensureState(a).style=i?i(o):o[at[n]]()}}function st(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function lt(t){return!(!t||!t.__highDownDispatcher)}function ut(t,e,n){var i=(0,r.getECData)(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function ct(t){var e=c[t];return null==e&&u<=32&&(e=c[t]=u++),e}function ht(t){var e=t.type;return e===_||e===b||e===S}function dt(t){var e=t.type;return e===v||e===x}function pt(t){var e=h(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}})),a.register("5v9xk",(function(e,n){t(e.exports,"getECData",(()=>i)),t(e.exports,"setCommonECData",(()=>r));var i=(0,a("2LuwV").makeInner)(),r=function(t,e,n,r){if(r){var a=i(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,a.ssrType="chart","group"===r.type&&r.traverse((function(r){var a=i(r);a.seriesIndex=t,a.dataIndex=n,a.dataType=e,a.ssrType="chart"}))}}})),a.register("kJ7of",(function(e,n){t(e.exports,"getAnimationConfig",(()=>o)),t(e.exports,"updateProps",(()=>l)),t(e.exports,"initProps",(()=>u)),t(e.exports,"isElementRemoved",(()=>c)),t(e.exports,"removeElement",(()=>h)),t(e.exports,"removeElementWithFadeOut",(()=>p)),t(e.exports,"saveOldStyle",(()=>f)),t(e.exports,"getOldStyle",(()=>g));var i=a("2FIaD"),r=(0,a("2LuwV").makeInner)();function o(t,e,n,r,a){var o;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();o=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return r?(u=(0,i.retrieve2)(r.duration,200),c=(0,i.retrieve2)(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),(0,i.isFunction)(h)&&(h=h(n,a)),(0,i.isFunction)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}function s(t,e,n,r,a,s,l){var u,c=!1;(0,i.isFunction)(a)?(l=s,s=a,a=null):(0,i.isObject)(a)&&(s=a.cb,l=a.during,c=a.isFrom,u=a.removeOpt,a=a.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var d=o(t,r,a,h?u||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(d&&d.duration>0){var p={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!l,setToFinal:!h,scope:t,during:l};c?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function l(t,e,n,i,r,a){s("update",t,e,n,i,r,a)}function u(t,e,n,i,r,a){s("enter",t,e,n,i,r,a)}function c(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function h(t,e,n,i,r,a){c(t)||s("leave",t,e,n,i,r,a)}function d(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,i)}function p(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||d(t,e,n,i)})):d(t,e,n,i)}function f(t){r(t).oldStyle=t.style}function g(t){return r(t).oldStyle}})),a.register("dXBoT",(function(e,n){t(e.exports,"extendShape",(()=>T)),t(e.exports,"extendPath",(()=>D)),t(e.exports,"registerShape",(()=>L)),t(e.exports,"getShapeClass",(()=>k)),t(e.exports,"makePath",(()=>O)),t(e.exports,"resizePath",(()=>N)),t(e.exports,"makeImage",(()=>P)),t(e.exports,"mergePath",(()=>R)),t(e.exports,"subPixelOptimizeLine",(()=>B)),t(e.exports,"subPixelOptimizeRect",(()=>F)),t(e.exports,"subPixelOptimize",(()=>z)),t(e.exports,"getTransform",(()=>V)),t(e.exports,"applyTransform",(()=>W)),t(e.exports,"transformDirection",(()=>G)),t(e.exports,"groupTransition",(()=>j)),t(e.exports,"clipPointsByRect",(()=>U)),t(e.exports,"clipRectByRect",(()=>Y)),t(e.exports,"createIcon",(()=>K)),t(e.exports,"linePolygonIntersect",(()=>X)),t(e.exports,"lineLineIntersect",(()=>Z)),t(e.exports,"setTooltipConfig",(()=>J)),t(e.exports,"traverseElements",(()=>$)),t(e.exports,"updateProps",(()=>a("kJ7of").updateProps)),t(e.exports,"initProps",(()=>a("kJ7of").initProps)),t(e.exports,"removeElement",(()=>a("kJ7of").removeElement)),t(e.exports,"removeElementWithFadeOut",(()=>a("kJ7of").removeElementWithFadeOut)),t(e.exports,"isElementRemoved",(()=>a("kJ7of").isElementRemoved)),t(e.exports,"Group",(()=>a("2IUoL").default)),t(e.exports,"Image",(()=>a("kbAoh").default)),t(e.exports,"Text",(()=>a("jud7h").default)),t(e.exports,"Circle",(()=>a("1RKvJ").default)),t(e.exports,"Ellipse",(()=>a("46uXJ").default)),t(e.exports,"Sector",(()=>a("92sM9").default)),t(e.exports,"Ring",(()=>a("jBtAL").default)),t(e.exports,"Polygon",(()=>a("dVgap").default)),t(e.exports,"Polyline",(()=>a("fCBaM").default)),t(e.exports,"Rect",(()=>a("jKUgc").default)),t(e.exports,"Line",(()=>a("l0SnR").default)),t(e.exports,"BezierCurve",(()=>a("1IPNS").default)),t(e.exports,"Arc",(()=>a("hKSo9").default)),t(e.exports,"IncrementalDisplayable",(()=>a("l85SL").default)),t(e.exports,"CompoundPath",(()=>a("cmXBB").default)),t(e.exports,"LinearGradient",(()=>a("8BJkx").default)),t(e.exports,"RadialGradient",(()=>a("kcO1G").default)),t(e.exports,"BoundingRect",(()=>a("lV62k").default)),t(e.exports,"OrientedBoundingRect",(()=>a("iVSZE").default)),t(e.exports,"Point",(()=>a("NBRFu").default)),t(e.exports,"Path",(()=>a("isgWw").default));var i=a("60Kwm"),r=a("0445l"),o=a("jkyg0"),s=a("isgWw"),l=a("lnAL9"),u=a("kbAoh"),c=(a("2IUoL"),a("jud7h"),a("1RKvJ")),h=a("46uXJ"),d=a("92sM9"),p=a("jBtAL"),f=a("dVgap"),g=a("fCBaM"),y=a("jKUgc"),m=a("l0SnR"),v=a("1IPNS"),x=a("hKSo9"),_=(a("cmXBB"),a("8BJkx"),a("kcO1G"),a("lV62k"),a("iVSZE"),a("NBRFu"),a("l85SL"),a("a7J4O")),b=a("2FIaD"),S=a("5v9xk"),C=a("kJ7of"),w=Math.max,M=Math.min,I={};function T(t){return s.default.extend(t)}var A=i.extendFromString;function D(t,e){return A(t,e)}function L(t,e){I[t]=e}function k(t){if(I.hasOwnProperty(t))return I[t]}function O(t,e,n,r){var a=i.createFromString(t,e);return n&&("center"===r&&(n=E(n,a.getBoundingRect())),N(a,n)),a}function P(t,e,n){var i=new(0,u.default)({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(E(e,r))}}});return i}function E(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var R=i.mergePath;function N(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function B(t,e){return _.subPixelOptimizeLine(t,t,{lineWidth:e}),t}function F(t){return _.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var z=_.subPixelOptimize;function V(t,e){for(var n=r.identity([]);t&&t!==e;)r.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function W(t,e,n){return e&&!(0,b.isArrayLike)(e)&&(e=l.default.getLocalTransform(e)),n&&(e=r.invert([],e)),o.applyTransform([],t,e)}function G(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=W(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function H(t){return!t.isGroup}function j(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){H(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(H(t)&&t.anid){var e=r[t.anid];if(e){var i=a(t);t.attr(a(e)),(0,C.updateProps)(t,i,n,(0,S.getECData)(t).dataIndex)}}}))}function a(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=(0,b.extend)({},t.shape)),e}}function U(t,e){return(0,b.map)(t,(function(t){var n=t[0];n=w(n,e.x),n=M(n,e.x+e.width);var i=t[1];return i=w(i,e.y),[n,i=M(i,e.y+e.height)]}))}function Y(t,e){var n=w(t.x,e.x),i=M(t.x+t.width,e.x+e.width),r=w(t.y,e.y),a=M(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function K(t,e,n){var i=(0,b.extend)({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),(0,b.defaults)(r,n),new(0,u.default)(i)):O(t.replace("path://",""),i,n,"center")}function X(t,e,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(Z(t,e,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Z(t,e,n,i,r,a,o,s){var l,u=n-t,c=i-e,h=o-r,d=s-a,p=q(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-a,y=q(f,g,u,c)/p;if(y<0||y>1)return!1;var m=q(f,g,h,d)/p;return!(m<0||m>1)}function q(t,e,n,i){return t*i-n*e}function J(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=(0,b.isString)(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&(0,b.each)((0,b.keys)(l),(function(t){(0,b.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=(0,S.getECData)(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:(0,b.defaults)({content:i,formatterParams:s},r)}}function Q(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function $(t,e){if(t)if((0,b.isArray)(t))for(var n=0;n<t.length;n++)Q(t[n],e);else Q(t,e)}L("circle",c.default),L("ellipse",h.default),L("sector",d.default),L("ring",p.default),L("polygon",f.default),L("polyline",g.default),L("rect",y.default),L("line",m.default),L("bezierCurve",v.default),L("arc",x.default)})),a.register("60Kwm",(function(e,n){t(e.exports,"createFromString",(()=>S)),t(e.exports,"extendFromString",(()=>C)),t(e.exports,"mergePath",(()=>w)),t(e.exports,"clonePath",(()=>M));var i=a("lCvKW"),r=a("isgWw"),o=a("hpPau"),s=a("1nmeF"),l=a("2FIaD"),u=Math.sqrt,c=Math.sin,h=Math.cos,d=Math.PI;function p(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function f(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))}function g(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(f(t,e))}function y(t,e,n,i,r,a,o,s,l,p,y){var m=l*(d/180),v=h(m)*(t-n)/2+c(m)*(e-i)/2,x=-1*c(m)*(t-n)/2+h(m)*(e-i)/2,_=v*v/(o*o)+x*x/(s*s);_>1&&(o*=u(_),s*=u(_));var b=(r===a?-1:1)*u((o*o*(s*s)-o*o*(x*x)-s*s*(v*v))/(o*o*(x*x)+s*s*(v*v)))||0,S=b*o*x/s,C=b*-s*v/o,w=(t+n)/2+h(m)*S-c(m)*C,M=(e+i)/2+c(m)*S+h(m)*C,I=g([1,0],[(v-S)/o,(x-C)/s]),T=[(v-S)/o,(x-C)/s],A=[(-1*v-S)/o,(-1*x-C)/s],D=g(T,A);if(f(T,A)<=-1&&(D=d),f(T,A)>=1&&(D=0),D<0){var L=Math.round(D/d*1e6)/1e6;D=2*d+L%2*d}y.addData(p,w,M,o,s,I,D,m,a)}var m=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,v=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.applyTransform=function(t){},e}(r.default);function _(t){return null!=t.setData}function b(t,e){var n=function(t){var e=new(0,o.default);if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.default.CMD,u=t.match(m);if(!u)return e;for(var c=0;c<u.length;c++){for(var h=u[c],d=h.charAt(0),p=void 0,f=h.match(v)||[],g=f.length,x=0;x<g;x++)f[x]=parseFloat(f[x]);for(var _=0;_<g;){var b=void 0,S=void 0,C=void 0,w=void 0,M=void 0,I=void 0,T=void 0,A=i,D=r,L=void 0,k=void 0;switch(d){case"l":i+=f[_++],r+=f[_++],p=l.L,e.addData(p,i,r);break;case"L":i=f[_++],r=f[_++],p=l.L,e.addData(p,i,r);break;case"m":i+=f[_++],r+=f[_++],p=l.M,e.addData(p,i,r),a=i,s=r,d="l";break;case"M":i=f[_++],r=f[_++],p=l.M,e.addData(p,i,r),a=i,s=r,d="L";break;case"h":i+=f[_++],p=l.L,e.addData(p,i,r);break;case"H":i=f[_++],p=l.L,e.addData(p,i,r);break;case"v":r+=f[_++],p=l.L,e.addData(p,i,r);break;case"V":r=f[_++],p=l.L,e.addData(p,i,r);break;case"C":p=l.C,e.addData(p,f[_++],f[_++],f[_++],f[_++],f[_++],f[_++]),i=f[_-2],r=f[_-1];break;case"c":p=l.C,e.addData(p,f[_++]+i,f[_++]+r,f[_++]+i,f[_++]+r,f[_++]+i,f[_++]+r),i+=f[_-2],r+=f[_-1];break;case"S":b=i,S=r,L=e.len(),k=e.data,n===l.C&&(b+=i-k[L-4],S+=r-k[L-3]),p=l.C,A=f[_++],D=f[_++],i=f[_++],r=f[_++],e.addData(p,b,S,A,D,i,r);break;case"s":b=i,S=r,L=e.len(),k=e.data,n===l.C&&(b+=i-k[L-4],S+=r-k[L-3]),p=l.C,A=i+f[_++],D=r+f[_++],i+=f[_++],r+=f[_++],e.addData(p,b,S,A,D,i,r);break;case"Q":A=f[_++],D=f[_++],i=f[_++],r=f[_++],p=l.Q,e.addData(p,A,D,i,r);break;case"q":A=f[_++]+i,D=f[_++]+r,i+=f[_++],r+=f[_++],p=l.Q,e.addData(p,A,D,i,r);break;case"T":b=i,S=r,L=e.len(),k=e.data,n===l.Q&&(b+=i-k[L-4],S+=r-k[L-3]),i=f[_++],r=f[_++],p=l.Q,e.addData(p,b,S,i,r);break;case"t":b=i,S=r,L=e.len(),k=e.data,n===l.Q&&(b+=i-k[L-4],S+=r-k[L-3]),i+=f[_++],r+=f[_++],p=l.Q,e.addData(p,b,S,i,r);break;case"A":C=f[_++],w=f[_++],M=f[_++],I=f[_++],T=f[_++],y(A=i,D=r,i=f[_++],r=f[_++],I,T,C,w,M,p=l.A,e);break;case"a":C=f[_++],w=f[_++],M=f[_++],I=f[_++],T=f[_++],y(A=i,D=r,i+=f[_++],r+=f[_++],I,T,C,w,M,p=l.A,e)}}"z"!==d&&"Z"!==d||(p=l.Z,e.addData(p),i=a,r=s),n=p}return e.toStatic(),e}(t),i=(0,l.extend)({},e);return i.buildPath=function(t){if(_(t))t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1);else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){(0,s.default)(n,t),this.dirtyShape()},i}function S(t,e){return new x(b(t,e))}function C(t,e){var n=b(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return(0,i.__extends)(e,t),e}(x)}function w(t,e){for(var n=[],i=t.length,a=0;a<i;a++){var o=t[a];n.push(o.getUpdatedPathProxy(!0))}var s=new(0,r.default)(e);return s.createPathProxy(),s.buildPath=function(t){if(_(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function M(t,e){e=e||{};var n=new(0,r.default);return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?(0,s.default)(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}})),a.register("1nmeF",(function(e,n){t(e.exports,"default",(()=>c));var i=a("hpPau"),r=a("jkyg0"),o=i.default.CMD,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;function c(t,e){if(e){var n,i,a,c,h,d,p=t.data,f=t.len(),g=o.M,y=o.C,m=o.L,v=o.R,x=o.A,_=o.Q;for(a=0,c=0;a<f;){switch(n=p[a++],c=a,i=0,n){case g:case m:i=1;break;case y:i=3;break;case _:i=2;break;case x:var b=e[4],S=e[5],C=l(e[0]*e[0]+e[1]*e[1]),w=l(e[2]*e[2]+e[3]*e[3]),M=u(-e[1]/w,e[0]/C);p[a]*=C,p[a++]+=b,p[a]*=w,p[a++]+=S,p[a++]*=C,p[a++]*=w,p[a++]+=M,p[a++]+=M,c=a+=2;break;case v:d[0]=p[a++],d[1]=p[a++],(0,r.applyTransform)(d,d,e),p[c++]=d[0],p[c++]=d[1],d[0]+=p[a++],d[1]+=p[a++],(0,r.applyTransform)(d,d,e),p[c++]=d[0],p[c++]=d[1]}for(h=0;h<i;h++){var I=s[h];I[0]=p[a++],I[1]=p[a++],(0,r.applyTransform)(I,I,e),p[c++]=I[0],p[c++]=I[1]}}t.increaseVersion()}}})),a.register("1RKvJ",(function(e,n){t(e.exports,"default",(()=>l));var i=a("lCvKW"),r=a("isgWw"),o=function(){this.cx=0,this.cy=0,this.r=0},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.default);s.prototype.type="circle";var l=s})),a.register("46uXJ",(function(e,n){t(e.exports,"default",(()=>l));var i=a("lCvKW"),r=a("isgWw"),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()},e}(r.default);s.prototype.type="ellipse";var l=s})),a.register("92sM9",(function(e,n){t(e.exports,"default",(()=>u));var i=a("lCvKW"),r=a("isgWw"),o=a("4xMhM"),s=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},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){o.buildPath(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.default);l.prototype.type="sector";var u=l})),a.register("4xMhM",(function(e,n){t(e.exports,"buildPath",(()=>m));var i=a("2FIaD"),r=Math.PI,o=2*r,s=Math.sin,l=Math.cos,u=Math.acos,c=Math.atan2,h=Math.abs,d=Math.sqrt,p=Math.max,f=Math.min,g=1e-4;function y(t,e,n,i,r,a,o){var s=t-n,l=e-i,u=(o?a:-a)/d(s*s+l*l),c=u*l,h=-u*s,f=t+c,g=e+h,y=n+c,m=i+h,v=(f+y)/2,x=(g+m)/2,_=y-f,b=m-g,S=_*_+b*b,C=r-a,w=f*m-y*g,M=(b<0?-1:1)*d(p(0,C*C*S-w*w)),I=(w*b-_*M)/S,T=(-w*_-b*M)/S,A=(w*b+_*M)/S,D=(-w*_+b*M)/S,L=I-v,k=T-x,O=A-v,P=D-x;return L*L+k*k>O*O+P*P&&(I=A,T=D),{cx:I,cy:T,x0:-c,y0:-h,x1:I*(r/C-1),y1:T*(r/C-1)}}function m(t,e){var n,a=p(e.r,0),m=p(e.r0||0,0),v=a>0;if(v||m>0){if(v||(a=m,m=0),m>a){var x=a;a=m,m=x}var _=e.startAngle,b=e.endAngle;if(!isNaN(_)&&!isNaN(b)){var S=e.cx,C=e.cy,w=!!e.clockwise,M=h(b-_),I=M>o&&M%o;if(I>g&&(M=I),a>g)if(M>o-g)t.moveTo(S+a*l(_),C+a*s(_)),t.arc(S,C,a,_,b,!w),m>g&&(t.moveTo(S+m*l(b),C+m*s(b)),t.arc(S,C,m,b,_,w));else{var T=void 0,A=void 0,D=void 0,L=void 0,k=void 0,O=void 0,P=void 0,E=void 0,R=void 0,N=void 0,B=void 0,F=void 0,z=void 0,V=void 0,W=void 0,G=void 0,H=a*l(_),j=a*s(_),U=m*l(b),Y=m*s(b),K=M>g;if(K){var X=e.cornerRadius;X&&(T=(n=function(t){var e;if((0,i.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(X))[0],A=n[1],D=n[2],L=n[3]);var Z=h(a-m)/2;if(k=f(Z,D),O=f(Z,L),P=f(Z,T),E=f(Z,A),B=R=p(k,O),F=N=p(P,E),(R>g||N>g)&&(z=a*l(b),V=a*s(b),W=m*l(_),G=m*s(_),M<r)){var q=function(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=h*l-c*u;if(!(d*d<g))return[t+(d=(c*(e-a)-h*(t-r))/d)*l,e+d*u]}(H,j,W,G,z,V,U,Y);if(q){var J=H-q[0],Q=j-q[1],$=z-q[0],tt=V-q[1],et=1/s(u((J*$+Q*tt)/(d(J*J+Q*Q)*d($*$+tt*tt)))/2),nt=d(q[0]*q[0]+q[1]*q[1]);B=f(R,(a-nt)/(et+1)),F=f(N,(m-nt)/(et-1))}}}if(K)if(B>g){var it=f(D,B),rt=f(L,B),at=y(W,G,H,j,a,it,w),ot=y(z,V,U,Y,a,rt,w);t.moveTo(S+at.cx+at.x0,C+at.cy+at.y0),B<R&&it===rt?t.arc(S+at.cx,C+at.cy,B,c(at.y0,at.x0),c(ot.y0,ot.x0),!w):(it>0&&t.arc(S+at.cx,C+at.cy,it,c(at.y0,at.x0),c(at.y1,at.x1),!w),t.arc(S,C,a,c(at.cy+at.y1,at.cx+at.x1),c(ot.cy+ot.y1,ot.cx+ot.x1),!w),rt>0&&t.arc(S+ot.cx,C+ot.cy,rt,c(ot.y1,ot.x1),c(ot.y0,ot.x0),!w))}else t.moveTo(S+H,C+j),t.arc(S,C,a,_,b,!w);else t.moveTo(S+H,C+j);m>g&&K?F>g?(it=f(T,F),at=y(U,Y,z,V,m,-(rt=f(A,F)),w),ot=y(H,j,W,G,m,-it,w),t.lineTo(S+at.cx+at.x0,C+at.cy+at.y0),F<N&&it===rt?t.arc(S+at.cx,C+at.cy,F,c(at.y0,at.x0),c(ot.y0,ot.x0),!w):(rt>0&&t.arc(S+at.cx,C+at.cy,rt,c(at.y0,at.x0),c(at.y1,at.x1),!w),t.arc(S,C,m,c(at.cy+at.y1,at.cx+at.x1),c(ot.cy+ot.y1,ot.cx+ot.x1),w),it>0&&t.arc(S+ot.cx,C+ot.cy,it,c(ot.y1,ot.x1),c(ot.y0,ot.x0),!w))):(t.lineTo(S+U,C+Y),t.arc(S,C,m,b,_,w)):t.lineTo(S+U,C+Y)}else t.moveTo(S,C);t.closePath()}}}})),a.register("jBtAL",(function(e,n){t(e.exports,"default",(()=>l));var i=a("lCvKW"),r=a("isgWw"),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.default);s.prototype.type="ring";var l=s})),a.register("dVgap",(function(e,n){t(e.exports,"default",(()=>u));var i=a("lCvKW"),r=a("isgWw"),o=a("61cFv"),s=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!0)},e}(r.default);l.prototype.type="polygon";var u=l})),a.register("61cFv",(function(e,n){t(e.exports,"buildPath",(()=>r));var i=a("enZTB");function r(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var o=(0,i.default)(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(n?s:s-1);l++){var u=o[2*l],c=o[2*l+1],h=a[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(a[0][0],a[0][1]),l=1;for(var d=a.length;l<d;l++)t.lineTo(a[l][0],a[l][1])}n&&t.closePath()}}})),a.register("enZTB",(function(e,n){t(e.exports,"default",(()=>r));var i=a("jkyg0");function r(t,e,n,r){var a,o,s,l,u=[],c=[],h=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p<f;p++)(0,i.min)(s,s,t[p]),(0,i.max)(l,l,t[p]);(0,i.min)(s,s,r[0]),(0,i.max)(l,l,r[1])}for(p=0,f=t.length;p<f;p++){var g=t[p];if(n)a=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){u.push((0,i.clone)(t[p]));continue}a=t[p-1],o=t[p+1]}(0,i.sub)(c,o,a),(0,i.scale)(c,c,e);var y=(0,i.distance)(g,a),m=(0,i.distance)(g,o),v=y+m;0!==v&&(y/=v,m/=v),(0,i.scale)(h,c,-y),(0,i.scale)(d,c,m);var x=(0,i.add)([],g,h),_=(0,i.add)([],g,d);r&&((0,i.max)(x,x,s),(0,i.min)(x,x,l),(0,i.max)(_,_,s),(0,i.min)(_,_,l)),u.push(x),u.push(_)}return n&&u.push(u.shift()),u}})),a.register("fCBaM",(function(e,n){t(e.exports,"default",(()=>u));var i=a("lCvKW"),r=a("isgWw"),o=a("61cFv"),s=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!1)},e}(r.default);l.prototype.type="polyline";var u=l})),a.register("l0SnR",(function(e,n){t(e.exports,"default",(()=>c));var i=a("lCvKW"),r=a("isgWw"),o=a("a7J4O"),s={},l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.subPixelOptimizeLine)(s,e,this.style);n=l.x1,i=l.y1,r=l.x2,a=l.y2}else n=e.x1,i=e.y1,r=e.x2,a=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,a=i*(1-u)+a*u),t.lineTo(r,a))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.default);u.prototype.type="line";var c=u})),a.register("1IPNS",(function(e,n){t(e.exports,"default",(()=>d));var i=a("lCvKW"),r=a("isgWw"),o=a("jkyg0"),s=a("ibBA5"),l=[],u=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function c(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?s.cubicDerivativeAt:s.cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?s.cubicDerivativeAt:s.cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?s.quadraticDerivativeAt:s.quadraticAt)(t.x1,t.cpx1,t.x2,e),(n?s.quadraticDerivativeAt:s.quadraticAt)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new u},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==c||null==h?(d<1&&((0,s.quadraticSubdivide)(n,o,r,d,l),o=l[1],r=l[2],(0,s.quadraticSubdivide)(i,u,a,d,l),u=l[1],a=l[2]),t.quadraticCurveTo(o,u,r,a)):(d<1&&((0,s.cubicSubdivide)(n,o,c,r,d,l),o=l[1],c=l[2],r=l[3],(0,s.cubicSubdivide)(i,u,h,a,d,l),u=l[1],h=l[2],a=l[3]),t.bezierCurveTo(o,u,c,h,r,a)))},e.prototype.pointAt=function(t){return c(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=c(this.shape,t,!0);return o.normalize(e,e)},e}(r.default);h.prototype.type="bezier-curve";var d=h})),a.register("hKSo9",(function(e,n){t(e.exports,"default",(()=>l));var i=a("lCvKW"),r=a("isgWw"),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,a,o,!s)},e}(r.default);s.prototype.type="arc";var l=s})),a.register("cmXBB",(function(e,n){t(e.exports,"default",(()=>s));var i=a("lCvKW"),r=a("isgWw"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.__extends)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),r.default.prototype.getBoundingRect.call(this)},e}(r.default),s=o})),a.register("8BJkx",(function(e,n){t(e.exports,"default",(()=>r));var i=a("lCvKW"),r=function(t){function e(e,n,i,r,a,o){var s=t.call(this,a)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=o||!1,s}return(0,i.__extends)(e,t),e}(a("lg35n").default)})),a.register("lg35n",(function(e,n){t(e.exports,"default",(()=>i));var i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()})),a.register("kcO1G",(function(e,n){t(e.exports,"default",(()=>r));var i=a("lCvKW"),r=function(t){function e(e,n,i,r,a){var o=t.call(this,r)||this;return o.x=null==e?.5:e,o.y=null==n?.5:n,o.r=null==i?.5:i,o.type="radial",o.global=a||!1,o}return(0,i.__extends)(e,t),e}(a("lg35n").default)})),a.register("iVSZE",(function(e,n){t(e.exports,"default",(()=>u));var i=a("NBRFu"),r=[0,0],o=[0,0],s=new(0,i.default),l=new(0,i.default),u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new(0,i.default);for(n=0;n<2;n++)this._axes[n]=new(0,i.default);t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);for(i.default.sub(r[0],n[1],n[0]),i.default.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return s.set(1/0,1/0),l.set(0,0),!this._intersectCheckOneSide(this,t,s,l,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,s,l,r,-1)&&(n=!1,r)||r||i.default.copy(e,n?s:l),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,r),this._getProjMinMaxOnAxis(c,e._corners,o),r[1]<o[0]||r[0]>o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d<p?i.default.scale(a,h,-d*l):i.default.scale(a,h,p*l))}else n&&(d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]),Math.min(d,p)<n.len()&&(d<p?i.default.scale(n,h,d*l):i.default.scale(n,h,-p*l)))}return u},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,a=e[0].dot(i)+r[t],o=a,s=a,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},t}()})),a.register("l85SL",(function(e,n){t(e.exports,"default",(()=>u));var i=a("lCvKW"),r=a("77M3u"),o=a("lV62k"),s=[],l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.__extends)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new(0,o.default)(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(s)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},e}(r.default),u=l})),a.register("gncYE",(function(e,n){t(e.exports,"LINE_STYLE_KEY_MAP",(()=>r)),t(e.exports,"LineStyleMixin",(()=>s));var i=a("5ESKT"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.default)(r),s=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()})),a.register("gMpFD",(function(e,n){t(e.exports,"ITEM_STYLE_KEY_MAP",(()=>r)),t(e.exports,"ItemStyleMixin",(()=>s));var i=a("5ESKT"),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.default)(r),s=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()})),a.register("eWRYv",(function(e,n){t(e.exports,"default",(()=>p));var i=a("lCvKW"),r=a("2FIaD"),o=a("9xTlQ"),s=a("jmxtG"),l=a("fN7Ut"),u=a("2LuwV"),c=a("3Q8SW"),h=(0,u.makeInner)(),d=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=s.getUID("ec_cpt_model"),r}var n;return(0,i.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=c.fetchLayoutMode(this),i=n?c.getLayoutParams(t):{},a=e.getTheme();r.merge(t,a.get(this.mainType)),r.merge(t,this.getDefaultOption()),n&&c.mergeLayoutParam(t,i,n)},e.prototype.mergeOption=function(t,e){r.merge(this.option,t,!0);var n=c.fetchLayoutMode(this);n&&c.mergeLayoutParam(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,l.isExtendedClass)(t))return t.defaultOption;var e=h(this);if(!e.defaultOption){for(var n=[],i=t;i;){var a=i.prototype.defaultOption;a&&n.push(a),i=i.superClass}for(var o={},s=n.length-1;s>=0;s--)o=r.merge(o,n[s],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return(0,u.queryReferringComponents)(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.default);(0,l.mountExtend)(d,o.default),(0,l.enableClassManagement)(d),s.enableSubTypeDefaulter(d),s.enableTopologicalTravel(d,(function(t){var e=[];return r.each(d.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r.map(e,(function(t){return(0,l.parseClassType)(t).main})),"dataset"!==t&&r.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}));var p=d})),a.register("jmxtG",(function(e,n){t(e.exports,"getUID",(()=>s)),t(e.exports,"enableSubTypeDefaulter",(()=>l)),t(e.exports,"enableTopologicalTravel",(()=>u)),t(e.exports,"inheritDefaultOption",(()=>c));var i=a("2FIaD"),r=a("fN7Ut"),o=Math.round(10*Math.random());function s(t){return[t||"",o++].join("_")}function l(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=(0,r.parseClassType)(t);e[i.main]=n},t.determineSubType=function(n,i){var a=i.type;if(!a){var o=(0,r.parseClassType)(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](i))}return a}}function u(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,a,o){if(t.length){var s=function(t){var r={},a=[];return i.each(t,(function(o){var s=n(r,o),l=function(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}(s.originalDeps=e(o),t);s.entryCount=l.length,0===s.entryCount&&a.push(o),i.each(l,(function(t){i.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(r,t);i.indexOf(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:a}}(r),l=s.graph,u=s.noEntryList,c={};for(i.each(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(a.call(o,h,d.originalDeps.slice()),delete c[h]),i.each(d.successor,p?g:f)}i.each(c,(function(){throw new Error("")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}function c(t,e){return i.merge(i.merge({},t,!0),e,!0)}})),a.register("3Q8SW",(function(e,n){t(e.exports,"LOCATION_PARAMS",(()=>u)),t(e.exports,"box",(()=>d)),t(e.exports,"getAvailableSize",(()=>p)),t(e.exports,"getLayoutRect",(()=>f)),t(e.exports,"positionElement",(()=>g)),t(e.exports,"sizeCalculable",(()=>y)),t(e.exports,"fetchLayoutMode",(()=>m)),t(e.exports,"mergeLayoutParam",(()=>v)),t(e.exports,"getLayoutParams",(()=>x)),t(e.exports,"copyLayoutParams",(()=>_));var i=a("2FIaD"),r=a("lV62k"),o=a("lcKsG"),s=a("bZ9NN"),l=i.each,u=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function h(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=a+g)>i||l.newline?(a=0,c=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);(h=o+y)>r||l.newline?(a+=s+n,o=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===t?a=c+n:o=h+n)}))}var d=h;function p(t,e,n){var i=e.width,r=e.height,a=(0,o.parsePercent)(t.left,i),l=(0,o.parsePercent)(t.top,r),u=(0,o.parsePercent)(t.right,i),c=(0,o.parsePercent)(t.bottom,r);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=r),n=s.normalizeCssArray(n||0),{width:Math.max(u-a-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function f(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,a=e.height,l=(0,o.parsePercent)(t.left,i),u=(0,o.parsePercent)(t.top,a),c=(0,o.parsePercent)(t.right,i),h=(0,o.parsePercent)(t.bottom,a),d=(0,o.parsePercent)(t.width,i),p=(0,o.parsePercent)(t.height,a),f=n[2]+n[0],g=n[1]+n[3],y=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=a-h-f-u),null!=y&&(isNaN(d)&&isNaN(p)&&(y>i/a?d=.8*i:p=.8*a),isNaN(d)&&(d=y*p),isNaN(p)&&(p=d/y)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=a-h-p-f),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=a/2-p/2-n[0];break;case"bottom":u=a-p-f}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=a-f-u-(h||0));var m=new(0,r.default)(l+n[3],u+n[0],d,p);return m.margin=n,m}function g(t,e,n,a,o,s){var l,u=!o||!o.hv||o.hv[0],c=!o||!o.hv||o.hv[1],h=o&&o.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new(0,r.default)(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();(l=l.clone()).applyTransform(d)}var p=f(i.defaults({width:l.width,height:l.height},e),n,a),g=u?p.x-l.x:0,y=c?p.y-l.y:0;return"raw"===h?(s.x=g,s.y=y):(s.x+=g,s.y+=y),s===t&&t.markRedraw(),!0}function y(t,e){return null!=t[c[e][0]]||null!=t[c[e][1]]&&null!=t[c[e][2]]}function m(t){var e=t.layoutMode||t.constructor.layoutMode;return i.isObject(e)?e:e?{type:e}:null}function v(t,e,n){var r=n&&n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=s(c[0],0),o=s(c[1],1);function s(n,i){var a={},o=0,s={},c=0;if(l(n,(function(e){s[e]=t[e]})),l(n,(function(t){u(e,t)&&(a[t]=s[t]=e[t]),h(a,t)&&o++,h(s,t)&&c++})),r[i])return h(e,n[1])?s[n[2]]=null:h(e,n[2])&&(s[n[1]]=null),s;if(2!==c&&o){if(o>=2)return a;for(var d=0;d<n.length;d++){var p=n[d];if(!u(a,p)&&u(t,p)){a[p]=t[p];break}}return a}return s}function u(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){l(t,(function(t){e[t]=n[t]}))}d(c[0],t,a),d(c[1],t,o)}function x(t){return _({},t)}function _(t,e){return e&&t&&l(u,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}i.curry(h,"vertical"),i.curry(h,"horizontal")})),a.register("bZ9NN",(function(e,n){t(e.exports,"addCommas",(()=>l)),t(e.exports,"toCamelCase",(()=>u)),t(e.exports,"normalizeCssArray",(()=>c)),t(e.exports,"makeValueReadable",(()=>h)),t(e.exports,"formatTpl",(()=>f)),t(e.exports,"formatTplSimple",(()=>g)),t(e.exports,"getTooltipMarker",(()=>y)),t(e.exports,"formatTime",(()=>m)),t(e.exports,"capitalFirst",(()=>v)),t(e.exports,"convertToColorString",(()=>x)),t(e.exports,"windowOpen",(()=>_)),t(e.exports,"encodeHTML",(()=>a("i1s7L").encodeHTML));var i=a("2FIaD"),r=a("i1s7L"),o=a("lcKsG"),s=a("aXh1w");function l(t){if(!(0,o.isNumeric)(t))return i.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function u(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}a("l8RYh"),a("j8gwn");var c=i.normalizeCssArray;function h(t,e,n){function r(t){return t&&i.trim(t)?t:"-"}function a(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?(0,o.parseDate)(t):t;if(!isNaN(+h))return(0,s.format)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return i.isStringSafe(t)?r(t):i.isNumber(t)&&a(t)?t+"":"-";var d=(0,o.numericToNumber)(t);return a(d)?l(d):i.isStringSafe(t)?r(t):"boolean"==typeof t?t+"":"-"}var d=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(null==e?"":e)+"}"};function f(t,e,n){i.isArray(e)||(e=[e]);var a=e.length;if(!a)return"";for(var o=e[0].$vars||[],s=0;s<o.length;s++){var l=d[s];t=t.replace(p(l),p(l,0))}for(var u=0;u<a;u++)for(var c=0;c<o.length;c++){var h=e[u][o[c]];t=t.replace(p(d[c],u),n?(0,r.encodeHTML)(h):h)}return t}function g(t,e,n){return i.each(e,(function(e,i){t=t.replace("{"+i+"}",n?(0,r.encodeHTML)(e):e)})),t}function y(t,e){var n=i.isString(t)?{color:t,extraCssText:e}:t||{},a=n.color,o=n.type;e=n.extraCssText;var s=n.renderMode||"html";return a?"html"===s?"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:'+(0,r.encodeHTML)(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.encodeHTML)(a)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:""}function m(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(0,o.parseDate)(e),r=n?"getUTC":"get",a=i[r+"FullYear"](),l=i[r+"Month"]()+1,u=i[r+"Date"](),c=i[r+"Hours"](),h=i[r+"Minutes"](),d=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return t.replace("MM",(0,s.pad)(l,2)).replace("M",l).replace("yyyy",a).replace("yy",(0,s.pad)(a%100+"",2)).replace("dd",(0,s.pad)(u,2)).replace("d",u).replace("hh",(0,s.pad)(c,2)).replace("h",c).replace("mm",(0,s.pad)(h,2)).replace("m",h).replace("ss",(0,s.pad)(d,2)).replace("s",d).replace("SSS",(0,s.pad)(p,3))}function v(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function x(t,e){return e=e||"transparent",i.isString(t)?t:i.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function _(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}})),a.register("aXh1w",(function(e,n){t(e.exports,"ONE_SECOND",(()=>l)),t(e.exports,"ONE_MINUTE",(()=>u)),t(e.exports,"ONE_HOUR",(()=>c)),t(e.exports,"ONE_DAY",(()=>h)),t(e.exports,"ONE_YEAR",(()=>d)),t(e.exports,"fullLeveledFormatter",(()=>f)),t(e.exports,"timeUnits",(()=>y)),t(e.exports,"pad",(()=>m)),t(e.exports,"getPrimaryTimeUnit",(()=>v)),t(e.exports,"isPrimaryTimeUnit",(()=>x)),t(e.exports,"getDefaultFormatPrecisionOfInterval",(()=>_)),t(e.exports,"format",(()=>b)),t(e.exports,"fullYearGetterName",(()=>M)),t(e.exports,"monthGetterName",(()=>I)),t(e.exports,"dateGetterName",(()=>T)),t(e.exports,"hoursGetterName",(()=>A)),t(e.exports,"minutesGetterName",(()=>D)),t(e.exports,"secondsGetterName",(()=>L)),t(e.exports,"millisecondsGetterName",(()=>k)),t(e.exports,"leveledFormat",(()=>S)),t(e.exports,"getUnitValue",(()=>w)),t(e.exports,"fullYearSetterName",(()=>O)),t(e.exports,"monthSetterName",(()=>P)),t(e.exports,"dateSetterName",(()=>E)),t(e.exports,"hoursSetterName",(()=>R)),t(e.exports,"minutesSetterName",(()=>N)),t(e.exports,"secondsSetterName",(()=>B)),t(e.exports,"millisecondsSetterName",(()=>F));var i=a("2FIaD"),r=a("lcKsG"),o=a("bJrF5"),s=a("9xTlQ"),l=1e3,u=60*l,c=60*u,h=24*c,d=365*h,p={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}"},f={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+p.hour,minute:"{yyyy}-{MM}-{dd} "+p.minute,second:"{yyyy}-{MM}-{dd} "+p.second,millisecond:p.none},g=["year","month","day","hour","minute","second","millisecond"],y=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function m(t,e){return"0000".substr(0,e-(t+="").length)+t}function v(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function x(t){return t===v(t)}function _(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(t,e,n,i){var a=r.parseDate(t),l=a[M(n)](),u=a[I(n)]()+1,c=Math.floor((u-1)/3)+1,h=a[T(n)](),d=a["get"+(n?"UTC":"")+"Day"](),p=a[A(n)](),f=(p-1)%12+1,g=a[D(n)](),y=a[L(n)](),v=a[k(n)](),x=(i instanceof s.default?i:(0,o.getLocaleModel)(i||o.SYSTEM_LANG)||(0,o.getDefaultLocaleModel)()).getModel("time"),_=x.get("month"),b=x.get("monthAbbr"),S=x.get("dayOfWeek"),C=x.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,m(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[u-1]).replace(/{MMM}/g,b[u-1]).replace(/{MM}/g,m(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,m(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,S[d]).replace(/{ee}/g,C[d]).replace(/{e}/g,d+"").replace(/{HH}/g,m(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,m(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,m(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,m(y,2)).replace(/{s}/g,y+"").replace(/{SSS}/g,m(v,3)).replace(/{S}/g,v+"")}function S(t,e,n,r,a){var o=null;if(i.isString(n))o=n;else if(i.isFunction(n))o=n(t.value,e,{level:t.level});else{var s=i.extend({},p);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i.defaults(n,s):s,c=C(t.value,a);if(u[c])o=u[c];else if(u.inherit){for(l=y.indexOf(c)-1;l>=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(i.isArray(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return b(new Date(t.value),o,a,r)}function C(t,e){var n=r.parseDate(t),i=n[I(e)]()+1,a=n[T(e)](),o=n[A(e)](),s=n[D(e)](),l=n[L(e)](),u=0===n[k(e)](),c=u&&0===l,h=c&&0===s,d=h&&0===o,p=d&&1===a;return p&&1===i?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function w(t,e,n){var a=i.isNumber(t)?r.parseDate(t):t;switch(e=e||C(t,n)){case"year":return a[M(n)]();case"half-year":return a[I(n)]()>=6?1:0;case"quarter":return Math.floor((a[I(n)]()+1)/4);case"month":return a[I(n)]();case"day":return a[T(n)]();case"half-day":return a[A(n)]()/24;case"hour":return a[A(n)]();case"minute":return a[D(n)]();case"second":return a[L(n)]();case"millisecond":return a[k(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function I(t){return t?"getUTCMonth":"getMonth"}function T(t){return t?"getUTCDate":"getDate"}function A(t){return t?"getUTCHours":"getHours"}function D(t){return t?"getUTCMinutes":"getMinutes"}function L(t){return t?"getUTCSeconds":"getSeconds"}function k(t){return t?"getUTCMilliseconds":"getMilliseconds"}function O(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function E(t){return t?"setUTCDate":"setDate"}function R(t){return t?"setUTCHours":"setHours"}function N(t){return t?"setUTCMinutes":"setMinutes"}function B(t){return t?"setUTCSeconds":"setSeconds"}function F(t){return t?"setUTCMilliseconds":"setMilliseconds"}})),a.register("bJrF5",(function(e,n){t(e.exports,"SYSTEM_LANG",(()=>f)),t(e.exports,"registerLocale",(()=>g)),t(e.exports,"createLocaleObject",(()=>y)),t(e.exports,"getLocaleModel",(()=>m)),t(e.exports,"getDefaultLocaleModel",(()=>v));var i=a("9xTlQ"),r=a("6rpCZ"),o=a("F0p9M"),s=a("bvfSN"),l=a("2FIaD"),u="ZH",c="EN",h=c,d={},p={},f=r.default.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||h).toUpperCase().indexOf(u)>-1?u:h;function g(t,e){t=t.toUpperCase(),p[t]=new(0,i.default)(e),d[t]=e}function y(t){if((0,l.isString)(t)){var e=d[t.toUpperCase()]||{};return t===u||t===c?(0,l.clone)(e):(0,l.merge)((0,l.clone)(e),(0,l.clone)(d.EN),!1)}return(0,l.merge)((0,l.clone)(t),(0,l.clone)(d.EN),!1)}function m(t){return p[t]}function v(){return p.EN}g(c,o.default),g(u,s.default)})),a.register("F0p9M",(function(e,n){t(e.exports,"default",(()=>i));var i={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:". "}}}}})),a.register("bvfSN",(function(e,n){t(e.exports,"default",(()=>i));var i={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:""}}}}})),a.register("j8gwn",(function(e,n){t(e.exports,"getTextRect",(()=>r));var i=a("jud7h");function r(t,e,n,r,a,o,s,l){return new(0,i.default)({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:o,overflow:s?"truncate":null,lineHeight:l}}).getBoundingRect()}})),a.register("8cnqN",(function(e,n){t(e.exports,"default",(()=>a));var i="";"undefined"!=typeof navigator&&(i=navigator.platform||"");var r="rgba(0, 0, 0, 0.2)",a={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:r,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:r,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:r,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:r,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:r,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:r,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:i.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}})),a.register("39jKu",(function(e,n){t(e.exports,"BE_ORDINAL",(()=>s)),t(e.exports,"resetSourceDefaulter",(()=>u)),t(e.exports,"makeSeriesEncodeForAxisCoordSys",(()=>c)),t(e.exports,"querySeriesUpstreamDatasetModel",(()=>d)),t(e.exports,"makeSeriesEncodeForNameBased",(()=>h)),t(e.exports,"queryDatasetUpstreamDatasetModels",(()=>p)),t(e.exports,"guessOrdinal",(()=>f));var i=a("2LuwV"),r=a("2FIaD"),o=a("1tAq5"),s={Must:1,Might:2,Not:3},l=(0,i.makeInner)();function u(t){l(t).datasetMap=(0,r.createHashMap)()}function c(t,e,n){var i={},a=d(e);if(!a||!t)return i;var o,s,u=[],c=[],h=e.ecModel,p=l(h).datasetMap,f=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,r.each)(t,(function(e,n){var a=(0,r.isObject)(e)?e:t[n]={name:e};"ordinal"===a.type&&null==o&&(o=n,s=m(a)),i[a.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:s,valueWayDim:0});function y(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function m(t){var e=t.dimsDef;return e?e.length:1}return(0,r.each)(t,(function(t,e){var n=t.name,r=m(t);if(null==o){var a=g.valueWayDim;y(i[n],a,r),y(c,a,r),g.valueWayDim+=r}else o===e?(y(i[n],0,r),y(u,0,r)):(a=g.categoryWayDim,y(i[n],a,r),y(c,a,r),g.categoryWayDim+=r)})),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function h(t,e,n){var i={};if(!d(t))return i;var a,l=e.sourceFormat,u=e.dimensionsDefine;l!==o.SOURCE_FORMAT_OBJECT_ROWS&&l!==o.SOURCE_FORMAT_KEYED_COLUMNS||(0,r.each)(u,(function(t,e){"name"===((0,r.isObject)(t)?t.name:t)&&(a=e)}));var c=function(){for(var t={},i={},r=[],o=0,c=Math.min(5,n);o<c;o++){var h=g(e.data,l,e.seriesLayoutBy,u,e.startIndex,o);r.push(h);var d=h===s.Not;if(d&&null==t.v&&o!==a&&(t.v=o),(null==t.n||t.n===t.v||!d&&r[t.n]===s.Not)&&(t.n=o),p(t)&&r[t.n]!==s.Not)return t;d||(h===s.Might&&null==i.v&&o!==a&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(c){i.value=[c.v];var h=null!=a?a:c.n;i.itemName=[h],i.seriesName=[h]}return i}function d(t){if(!t.get("data",!0))return(0,i.queryReferringComponents)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i.SINGLE_REFERRING).models[0]}function p(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,i.queryReferringComponents)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i.SINGLE_REFERRING).models:[]}function f(t,e){return g(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function g(t,e,n,a,l,u){var c,h,d;if((0,r.isTypedArray)(t))return s.Not;if(a){var p=a[u];(0,r.isObject)(p)?(h=p.name,d=p.type):(0,r.isString)(p)&&(h=p)}if(null!=d)return"ordinal"===d?s.Must:s.Not;if(e===o.SOURCE_FORMAT_ARRAY_ROWS){var f=t;if(n===o.SERIES_LAYOUT_BY_ROW){for(var g=f[u],y=0;y<(g||[]).length&&y<5;y++)if(null!=(c=C(g[l+y])))return c}else for(y=0;y<f.length&&y<5;y++){var m=f[l+y];if(m&&null!=(c=C(m[u])))return c}}else if(e===o.SOURCE_FORMAT_OBJECT_ROWS){var v=t;if(!h)return s.Not;for(y=0;y<v.length&&y<5;y++)if((b=v[y])&&null!=(c=C(b[h])))return c}else if(e===o.SOURCE_FORMAT_KEYED_COLUMNS){var x=t;if(!h)return s.Not;if(!(g=x[h])||(0,r.isTypedArray)(g))return s.Not;for(y=0;y<g.length&&y<5;y++)if(null!=(c=C(g[y])))return c}else if(e===o.SOURCE_FORMAT_ORIGINAL){var _=t;for(y=0;y<_.length&&y<5;y++){var b=_[y],S=(0,i.getDataItemValue)(b);if(!(0,r.isArray)(S))return s.Not;if(null!=(c=C(S[u])))return c}}function C(t){var e=(0,r.isString)(t);return null!=t&&isFinite(t)&&""!==t?e?s.Might:s.Not:e&&"-"!==t?s.Must:void 0}return s.Not}})),a.register("1tAq5",(function(e,n){t(e.exports,"VISUAL_DIMENSIONS",(()=>i)),t(e.exports,"SOURCE_FORMAT_ORIGINAL",(()=>r)),t(e.exports,"SOURCE_FORMAT_ARRAY_ROWS",(()=>o)),t(e.exports,"SOURCE_FORMAT_OBJECT_ROWS",(()=>s)),t(e.exports,"SOURCE_FORMAT_KEYED_COLUMNS",(()=>l)),t(e.exports,"SOURCE_FORMAT_TYPED_ARRAY",(()=>u)),t(e.exports,"SOURCE_FORMAT_UNKNOWN",(()=>c)),t(e.exports,"SERIES_LAYOUT_BY_COLUMN",(()=>h)),t(e.exports,"SERIES_LAYOUT_BY_ROW",(()=>d));var i=(0,a("2FIaD").createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),r="original",o="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",d="row"})),a.register("3BAh2",(function(e,n){t(e.exports,"registerInternalOptionCreator",(()=>o)),t(e.exports,"concatInternalOptions",(()=>s));var i=a("2FIaD"),r=(0,i.createHashMap)();function o(t,e){(0,i.assert)(null==r.get(t)&&e),r.set(t,e)}function s(t,e,n){var i=r.get(e);if(!i)return n;var a=i(t);return a?n.concat(a):n}})),a.register("l3zxl",(function(e,n){t(e.exports,"PaletteMixin",(()=>s)),t(e.exports,"getDecalFromPalette",(()=>l));var i=a("2LuwV"),r=(0,i.makeInner)(),o=(0,i.makeInner)(),s=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var a=(0,i.normalizeToArray)(this.get("color",!0)),o=this.get("colorLayer",!0);return u(this,r,a,o,t,e,n)},t.prototype.clearColorPalette=function(){var t;(t=r)(this).paletteIdx=0,t(this).paletteNameMap={}},t}();function l(t,e,n,r){var a=(0,i.normalizeToArray)(t.get(["aria","decal","decals"]));return u(t,o,a,null,e,n,r)}function u(t,e,n,i,r,a,o){var s=e(a=a||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=o&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,o):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}})),a.register("lgV6V",(function(e,n){t(e.exports,"warn",(()=>o)),t(e.exports,"error",(()=>s)),t(e.exports,"deprecateLog",(()=>l)),t(e.exports,"throwError",(()=>u));var i={},r="undefined"!=typeof console&&console.warn&&console.log;function a(t,e,n){if(r){if(n){if(i[e])return;i[e]=!0}console[t]("[ECharts] "+e)}}function o(t,e){a("warn",t,e)}function s(t,e){a("error",t,e)}function l(t){}function u(t){throw new Error(t)}})),a.register("60Snt",(function(e,n){t(e.exports,"default",(()=>o));var i=a("2FIaD"),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],o=function(t){i.each(r,(function(e){this[e]=i.bind(t[e],t)}),this)}})),a.register("fbRBA",(function(e,n){t(e.exports,"default",(()=>o));var i=a("2FIaD"),r={},o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i.each(r,(function(i,r){var a=i.create(t,e);n=n.concat(a||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}()})),a.register("3BeDB",(function(e,n){t(e.exports,"default",(()=>l));var i=a("2LuwV"),r=a("2FIaD"),o=/^(min|max)?(.+)$/;function s(t,e,n){var i={width:e,height:n,aspectratio:e/n},a=!0;return(0,r.each)(t,(function(t,e){var n=e.match(o);if(n&&n[1]&&n[2]){var r=n[1],s=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[s],t,r)||(a=!1)}})),a}var l=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,r.each)((0,i.normalizeToArray)(t.series),(function(t){t&&t.data&&(0,r.isTypedArray)(t.data)&&(0,r.setAsPrimitive)(t.data)})),(0,r.each)((0,i.normalizeToArray)(t.dataset),(function(t){t&&t.source&&(0,r.isTypedArray)(t.source)&&(0,r.setAsPrimitive)(t.source)}))),t=(0,r.clone)(t);var a=this._optionBackup,o=function(t,e,n){var i,a,o=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||s&&s.timeline);function p(t){(0,r.each)(e,(function(e){e(t,n)}))}return s?(a=s).timeline||(a.timeline=l):((d||h)&&(t.options=t.media=null),a=t),h&&(0,r.isArray)(c)&&(0,r.each)(c,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),p(a),(0,r.each)(u,(function(t){return p(t)})),(0,r.each)(o,(function(t){return p(t.option)})),{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:o}}(t,e,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,r.clone)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=(0,r.clone)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),a=this._api.getHeight(),o=this._mediaList,l=this._mediaDefault,u=[],c=[];if(!o.length&&!l)return c;for(var h=0,d=o.length;h<d;h++)s(o[h].query,i,a)&&u.push(h);return!u.length&&l&&(u=[-1]),u.length&&(e=u,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(c=(0,r.map)(u,(function(t){return(0,r.clone)(-1===t?l.option:o[t].option)}))),this._currentMediaIndices=u,c},t}()})),a.register("7ZAQb",(function(e,n){t(e.exports,"default",(()=>g));var i=a("2FIaD"),r=a("gPFUp"),o=a("2LuwV");function s(t){t&&(0,i.each)(l,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var l=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function h(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<c.length;n++){var i=c[n][1],r=c[n][0];null!=e[i]&&(e[r]=e[i])}}function d(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function p(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function f(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&f(t[n].children,e)}function g(t,e){(0,r.default)(t,e),t.series=(0,o.normalizeToArray)(t.series),(0,i.each)(t.series,(function(t){if((0,i.isObject)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),d(t.label),(a=t.data)&&!(0,i.isTypedArray)(a))for(var n=0;n<a.length;n++)d(a[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var n="pointer.color".split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t);null!=r&&function(t,e,n,i){for(var r,a="itemStyle.color".split(","),o=t,s=0;s<a.length-1;s++)null==o[r=a[s]]&&(o[r]={}),o=o[r];null==o[a[s]]&&(o[a[s]]=n)}(t,0,r)}else if("bar"===e){var a;if(h(t),h(t.backgroundStyle),h(t.emphasis),(a=t.data)&&!(0,i.isTypedArray)(a))for(n=0;n<a.length;n++)"object"==typeof a[n]&&(h(a[n]),h(a[n]&&a[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),p(t),f(t.data,p)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,i.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),s(t)}})),t.dataRange&&(t.visualMap=t.dataRange),(0,i.each)(u,(function(e){var n=t[e];n&&((0,i.isArray)(n)||(n=[n]),(0,i.each)(n,(function(t){s(t)})))}))}})),a.register("gPFUp",(function(e,n){t(e.exports,"default",(()=>y));var i=a("2FIaD"),r=a("2LuwV"),o=i.each,s=i.isObject,l=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=l.length;n<r;n++){var a=l[n],o=e.normal,s=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?i.merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?i.merge(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function c(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,i.defaults(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function h(t){c(t,"itemStyle"),c(t,"lineStyle"),c(t,"areaStyle"),c(t,"label"),c(t,"labelLine"),c(t,"upperLabel"),c(t,"edgeLabel")}function d(t,e){var n=s(t)&&t[e],i=s(n)&&n.textStyle;if(i)for(var a=0,o=r.TEXT_STYLE_OPTIONS.length;a<o;a++){var l=r.TEXT_STYLE_OPTIONS[a];i.hasOwnProperty(l)&&(n[l]=i[l])}}function p(t){t&&(h(t),d(t,"label"),t.emphasis&&d(t.emphasis,"label"))}function f(t){return i.isArray(t)?t:t?[t]:[]}function g(t){return(i.isArray(t)?t[0]:t)||{}}function y(t,e){o(f(t.series),(function(t){s(t)&&function(t){if(s(t)){u(t),h(t),d(t,"label"),d(t,"upperLabel"),d(t,"edgeLabel"),t.emphasis&&(d(t.emphasis,"label"),d(t.emphasis,"upperLabel"),d(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u(e),p(e));var n=t.markLine;n&&(u(n),p(n));var r=t.markArea;r&&p(r);var a=t.data;if("graph"===t.type){a=a||t.nodes;var o=t.links||t.edges;if(o&&!i.isTypedArray(o))for(var l=0;l<o.length;l++)p(o[l]);i.each(t.categories,(function(t){h(t)}))}if(a&&!i.isTypedArray(a))for(l=0;l<a.length;l++)p(a[l]);if((e=t.markPoint)&&e.data){var f=e.data;for(l=0;l<f.length;l++)p(f[l])}if((n=t.markLine)&&n.data){var g=n.data;for(l=0;l<g.length;l++)i.isArray(g[l])?(p(g[l][0]),p(g[l][1])):p(g[l])}"gauge"===t.type?(d(t,"axisLabel"),d(t,"title"),d(t,"detail")):"treemap"===t.type?(c(t.breadcrumb,"itemStyle"),i.each(t.levels,(function(t){h(t)}))):"tree"===t.type&&h(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(n,(function(e){o(f(t[e]),(function(t){t&&(d(t,"axisLabel"),d(t.axisPointer,"label"))}))})),o(f(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;d(e,"axisLabel"),d(e&&e.axisPointer,"label")})),o(f(t.calendar),(function(t){c(t,"itemStyle"),d(t,"dayLabel"),d(t,"monthLabel"),d(t,"yearLabel")})),o(f(t.radar),(function(t){d(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),o(f(t.geo),(function(t){s(t)&&(p(t),o(f(t.regions),(function(t){p(t)})))})),o(f(t.timeline),(function(t){p(t),c(t,"label"),c(t,"itemStyle"),c(t,"controlStyle",!0);var e=t.data;i.isArray(e)&&i.each(e,(function(t){i.isObject(t)&&(c(t,"label"),c(t,"itemStyle"))}))})),o(f(t.toolbox),(function(t){c(t,"iconStyle"),o(t.feature,(function(t){c(t,"iconStyle")}))})),d(g(t.axisPointer),"label"),d(g(t.tooltip).axisPointer,"label")}})),a.register("csvWp",(function(e,n){t(e.exports,"default",(()=>o));var i=a("2FIaD"),r=a("lcKsG");function o(t){var e=(0,i.createHashMap)();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),e.each(s)}function s(t){(0,i.each)(t,(function(e,n){var i=[],a=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],s=e.data,l=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";s.modify(o,(function(o,c,h){var d,p,f=s.get(e.stackedDimension,h);if(isNaN(f))return a;l?p=s.getRawIndex(h):d=s.get(e.stackedByDimension,h);for(var g=NaN,y=n-1;y>=0;y--){var m=t[y];if(l||(p=m.data.rawIndexOf(m.stackedByDimension,d)),p>=0){var v=m.data.getByRawIndex(m.stackResultDimension,p);if("all"===u||"positive"===u&&v>0||"negative"===u&&v<0||"samesign"===u&&f>=0&&v>0||"samesign"===u&&f<=0&&v<0){f=(0,r.addSafe)(f,v),g=v;break}}}return i[0]=f,i[1]=g,i}))}))}})),a.register("gGiC4",(function(e,n){t(e.exports,"SERIES_UNIVERSAL_TRANSITION_PROP",(()=>v)),t(e.exports,"default",(()=>T));var i=a("lCvKW"),r=a("2FIaD"),o=a("6rpCZ"),s=a("2LuwV"),l=a("eWRYv"),u=a("l3zxl"),c=a("ibUez"),h=a("3Q8SW"),d=a("cEaMi"),p=a("fN7Ut"),f=a("hm4Oa"),g=a("5LNAo"),y=s.makeInner();function m(t,e){return t.getName(e)||t.getId(e)}var v="__universalTransitionEnabled",x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return(0,i.__extends)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,d.createTask)({count:b,reset:S}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(y(this).sourceManager=new(0,f.SourceManager)(this)).prepareSource();var i=this.getInitialData(t,n);w(i,this),this.dataTask.context.data=i,y(this).dataBeforeProcessed=i,_(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,h.fetchLayoutMode)(this),i=n?(0,h.getLayoutParams)(t):{},a=this.subType;l.default.hasClass(a)&&(a+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),s.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,h.mergeLayoutParam)(t,i,n)},e.prototype.mergeOption=function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,h.fetchLayoutMode)(this);n&&(0,h.mergeLayoutParam)(this.option,t,n);var i=y(this).sourceManager;i.dirty(),i.prepareSource();var a=this.getInitialData(t,e);w(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,y(this).dataBeforeProcessed=a,_(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&s.defaultEmphasis(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=I(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return y(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=I(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}y(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r.createHashMap(t)},e.prototype.getSourceManager=function(){return y(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return y(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return(0,g.defaultSeriesFormatTooltip)({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.default.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=u.PaletteMixin.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<t.length;a++){var o=m(r,t[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=r.keys(t),n=[],i=0;i<e.length;i++){var a=t[e[i]];a>=0&&n.push(a)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[m(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,a=this.option,o=a.selectedMode,s=e.length;if(o&&s)if("series"===o)a.selectedMap="all";else if("multiple"===o){r.isObject(a.selectedMap)||(a.selectedMap={});for(var l=a.selectedMap,u=0;u<s;u++){var c=e[u];l[d=m(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===o||!0===o){var h=e[s-1],d=m(t,h);a.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return l.default.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(l.default);function _(t){var e=t.name;s.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function b(t){return t.model.getRawData().count()}function S(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),C}function C(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function w(t,e){r.each(r.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r.curry(M,e))}))}function M(t,e){var n=I(t);return n&&n.setOutputEnd((e||this).count()),e}function I(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(x,c.DataFormatMixin),r.mixin(x,u.PaletteMixin),(0,p.mountExtend)(x,l.default);var T=x})),a.register("ibUez",(function(e,n){t(e.exports,"DataFormatMixin",(()=>l)),t(e.exports,"normalizeTooltipFormatResult",(()=>u));var i=a("2FIaD"),r=a("lzjvl"),o=a("bZ9NN"),s=/\{@(.+?)\}/g,l=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t),o=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:r,data:o,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,a,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);return u&&(h.value=u.interpolatedValue),null!=a&&i.isArray(h.value)&&(h.value=h.value[a]),l||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),i.isFunction(l)?(h.status=e,h.dimensionIndex=a,l(h)):i.isString(l)?(0,o.formatTpl)(l,h).replace(s,(function(e,n){var a=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(a-1)&&(o=+o.slice(1,a-1));var s=(0,r.retrieveRawValue)(c,t,o);if(u&&i.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(o);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return(0,r.retrieveRawValue)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u(t){var e,n;return i.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}})),a.register("lzjvl",(function(e,n){t(e.exports,"DefaultDataProvider",(()=>p)),t(e.exports,"getRawSourceItemGetter",(()=>y)),t(e.exports,"getRawSourceDataCounter",(()=>x)),t(e.exports,"getRawSourceValueGetter",(()=>S)),t(e.exports,"retrieveRawValue",(()=>w));var i,r,o,s,l,u=a("2FIaD"),c=a("2LuwV"),h=a("bNRWu"),d=a("1tAq5"),p=function(){function t(t,e){var n=(0,h.isSourceInstance)(t)?t:(0,h.createSourceFromSeriesDataOption)(t);this._source=n;var i=this._data=n.data;n.sourceFormat===d.SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=e,this._data=i),l(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;l=function(t,r,a){var o=a.sourceFormat,l=a.seriesLayoutBy,c=a.startIndex,h=a.dimensionsDefine,p=s[C(o,l)];if((0,u.extend)(t,p),o===d.SOURCE_FORMAT_TYPED_ARRAY)t.getItem=e,t.count=i,t.fillStorage=n;else{var f=y(o,l);t.getItem=(0,u.bind)(f,null,r,c,h);var g=x(o,l);t.count=(0,u.bind)(g,null,r,c,h)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,a=0;a<i;a++)e[a]=n[r+a];return e},n=function(t,e,n,i){for(var r=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=i[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[o],d=0;d<c;d++){var p=r[d*a+o];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[d.SOURCE_FORMAT_ARRAY_ROWS+"_"+d.SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:r},t[d.SOURCE_FORMAT_ARRAY_ROWS+"_"+d.SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[d.SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:r},t[d.SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(t){var e=this._data;(0,u.each)(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[d.SOURCE_FORMAT_ORIGINAL]={appendData:r},t[d.SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},s=t}(),t}(),f=function(t,e,n,i){return t[i]},g=((i={})[d.SOURCE_FORMAT_ARRAY_ROWS+"_"+d.SERIES_LAYOUT_BY_COLUMN]=function(t,e,n,i){return t[i+e]},i[d.SOURCE_FORMAT_ARRAY_ROWS+"_"+d.SERIES_LAYOUT_BY_ROW]=function(t,e,n,i,r){i+=e;for(var a=r||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},i[d.SOURCE_FORMAT_OBJECT_ROWS]=f,i[d.SOURCE_FORMAT_KEYED_COLUMNS]=function(t,e,n,i,r){for(var a=r||[],o=0;o<n.length;o++){var s=t[n[o].name];a[o]=s?s[i]:null}return a},i[d.SOURCE_FORMAT_ORIGINAL]=f,i);function y(t,e){return g[C(t,e)]}var m=function(t,e,n){return t.length},v=((r={})[d.SOURCE_FORMAT_ARRAY_ROWS+"_"+d.SERIES_LAYOUT_BY_COLUMN]=function(t,e,n){return Math.max(0,t.length-e)},r[d.SOURCE_FORMAT_ARRAY_ROWS+"_"+d.SERIES_LAYOUT_BY_ROW]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[d.SOURCE_FORMAT_OBJECT_ROWS]=m,r[d.SOURCE_FORMAT_KEYED_COLUMNS]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},r[d.SOURCE_FORMAT_ORIGINAL]=m,r);function x(t,e){return v[C(t,e)]}var _=function(t,e,n){return t[e]},b=((o={})[d.SOURCE_FORMAT_ARRAY_ROWS]=_,o[d.SOURCE_FORMAT_OBJECT_ROWS]=function(t,e,n){return t[n]},o[d.SOURCE_FORMAT_KEYED_COLUMNS]=_,o[d.SOURCE_FORMAT_ORIGINAL]=function(t,e,n){var i=(0,c.getDataItemValue)(t);return i instanceof Array?i[e]:i},o[d.SOURCE_FORMAT_TYPED_ARRAY]=_,o);function S(t){return b[t]}function C(t,e){return t===d.SOURCE_FORMAT_ARRAY_ROWS?t+"_"+e:t}function w(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),a=r.getSource().sourceFormat;if(null!=n){var o=t.getDimensionIndex(n),s=r.getDimensionProperty(o);return S(a)(i,o,s)}var l=i;return a===d.SOURCE_FORMAT_ORIGINAL&&(l=(0,c.getDataItemValue)(i)),l}}}})),a.register("bNRWu",(function(e,n){t(e.exports,"isSourceInstance",(()=>u)),t(e.exports,"createSource",(()=>c)),t(e.exports,"detectSourceFormat",(()=>p)),t(e.exports,"createSourceFromSeriesDataOption",(()=>h)),t(e.exports,"cloneSourceShallow",(()=>d)),t(e.exports,"shouldRetrieveDataByName",(()=>y));var i=a("2FIaD"),r=a("1tAq5"),o=a("2LuwV"),s=a("39jKu"),l=function(t){this.data=t.data||(t.sourceFormat===r.SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||r.SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||r.SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&(0,s.guessOrdinal)(this,n)===s.BE_ORDINAL.Must&&(i.type="ordinal")}};function u(t){return t instanceof l}function c(t,e,n){n=n||p(t);var a=e.seriesLayoutBy,s=function(t,e,n,a,s){var l,u;if(!t)return{dimensionsDefine:f(s),startIndex:u,dimensionsDetectedCount:l};if(e===r.SOURCE_FORMAT_ARRAY_ROWS){var c=t;"auto"===a||null==a?g((function(t){null!=t&&"-"!==t&&((0,i.isString)(t)?null==u&&(u=1):u=0)}),n,c,10):u=(0,i.isNumber)(a)?a:a?1:0,s||1!==u||(s=[],g((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),l=s?s.length:n===r.SERIES_LAYOUT_BY_ROW?c.length:c[0]?c[0].length:null}else if(e===r.SOURCE_FORMAT_OBJECT_ROWS)s||(s=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return(0,i.keys)(e)}(t));else if(e===r.SOURCE_FORMAT_KEYED_COLUMNS)s||(s=[],(0,i.each)(t,(function(t,e){s.push(e)})));else if(e===r.SOURCE_FORMAT_ORIGINAL){var h=(0,o.getDataItemValue)(t[0]);l=(0,i.isArray)(h)&&h.length||1}return{startIndex:u,dimensionsDefine:f(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new l({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:s.dimensionsDefine,startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount,metaRawOption:(0,i.clone)(e)})}function h(t){return new l({data:t,sourceFormat:(0,i.isTypedArray)(t)?r.SOURCE_FORMAT_TYPED_ARRAY:r.SOURCE_FORMAT_ORIGINAL})}function d(t){return new l({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,i.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function p(t){var e=r.SOURCE_FORMAT_UNKNOWN;if((0,i.isTypedArray)(t))e=r.SOURCE_FORMAT_TYPED_ARRAY;else if((0,i.isArray)(t)){0===t.length&&(e=r.SOURCE_FORMAT_ARRAY_ROWS);for(var n=0,a=t.length;n<a;n++){var o=t[n];if(null!=o){if((0,i.isArray)(o)||(0,i.isTypedArray)(o)){e=r.SOURCE_FORMAT_ARRAY_ROWS;break}if((0,i.isObject)(o)){e=r.SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if((0,i.isObject)(t))for(var s in t)if((0,i.hasOwn)(t,s)&&(0,i.isArrayLike)(t[s])){e=r.SOURCE_FORMAT_KEYED_COLUMNS;break}return e}function f(t){if(t){var e=(0,i.createHashMap)();return(0,i.map)(t,(function(t,n){var r={name:(t=(0,i.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var a=e.get(r.name);return a?r.name+="-"+a.count++:e.set(r.name,{count:1}),r}))}}function g(t,e,n,i){if(e===r.SERIES_LAYOUT_BY_ROW)for(var a=0;a<n.length&&a<i;a++)t(n[a]?n[a][0]:null,a);else{var o=n[0]||[];for(a=0;a<o.length&&a<i;a++)t(o[a],a)}}function y(t){var e=t.sourceFormat;return e===r.SOURCE_FORMAT_OBJECT_ROWS||e===r.SOURCE_FORMAT_KEYED_COLUMNS}})),a.register("cEaMi",(function(e,n){t(e.exports,"createTask",(()=>r));var i=a("2FIaD");function r(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||p<f)){var g=this._progress;if((0,i.isArray)(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){s.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:s.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,i.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),s=function(){var t,e,n,i,r,a={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*n+Math.ceil(e/r),o=e>=t?null:a<i?a:e;return e++,o}}()})),a.register("hm4Oa",(function(e,n){t(e.exports,"SourceManager",(()=>h)),t(e.exports,"disableTransformOptionMerge",(()=>d));var i=a("2FIaD"),r=a("bNRWu"),o=a("1tAq5"),s=a("39jKu"),l=a("jxc3k"),u=a("5WOD9"),c=a("lzjvl"),h=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(p(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var d=a[0];d.prepareSource(),u=(h=d.getSource()).data,c=h.sourceFormat,e=[d._getVersionSign()]}else u=l.get("data",!0),c=(0,i.isTypedArray)(u)?o.SOURCE_FORMAT_TYPED_ARRAY:o.SOURCE_FORMAT_ORIGINAL,e=[];var f=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},y=(0,i.retrieve2)(f.seriesLayoutBy,g.seriesLayoutBy)||null,m=(0,i.retrieve2)(f.sourceHeader,g.sourceHeader),v=(0,i.retrieve2)(f.dimensions,g.dimensions);t=y!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||v?[(0,r.createSource)(u,{seriesLayoutBy:y,sourceHeader:m,dimensions:v},c)]:[]}else{var x=n;if(s){var _=this._applyTransform(a);t=_.sourceList,e=_.upstreamSignList}else{var b=x.get("source",!0);t=[(0,r.createSource)(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,a=n.get("transform",!0),o=n.get("fromTransformResult",!0);null!=o&&1!==t.length&&f("");var s=[],u=[];return(0,i.each)(t,(function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||f(""),s.push(e),u.push(t._getVersionSign())})),a?e=(0,l.applyDataTransform)(a,s,{datasetIndex:n.componentIndex}):null!=o&&(e=[(0,r.cloneSourceShallow)(s[0])]),{sourceList:e,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var a=r[n];if(!a){var o=this._getUpstreamSourceManagers()[0];p(this._sourceHost)&&o?a=o._innerGetDataStore(t,e,n):(a=new(0,u.default)).initData(new(0,c.DefaultDataProvider)(e,t.length),t),r[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(p(t)){var e=(0,s.querySeriesUpstreamDatasetModel)(t);return e?[e.getSourceManager()]:[]}return(0,i.map)((0,s.queryDatasetUpstreamDatasetModels)(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(p(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function d(t){t.option.transform&&(0,i.setAsPrimitive)(t.option.transform)}function p(t){return"series"===t.mainType}function f(t){throw new Error(t)}})),a.register("jxc3k",(function(e,n){t(e.exports,"registerExternalTransform",(()=>m)),t(e.exports,"applyDataTransform",(()=>v));var i=a("1tAq5"),r=a("2LuwV"),o=a("2FIaD"),s=a("lzjvl"),l=a("foJ5h"),u=a("lgV6V"),c=a("bNRWu"),h=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return(0,l.parseDataValue)(t,e)},t}();function d(t){return _(t.sourceFormat)||(0,u.throwError)(""),t.data}function p(t){var e=t.sourceFormat,n=t.data;if(_(e)||(0,u.throwError)(""),e===i.SOURCE_FORMAT_ARRAY_ROWS){for(var r=[],a=0,s=n.length;a<s;a++)r.push(n[a].slice());return r}if(e===i.SOURCE_FORMAT_OBJECT_ROWS){for(r=[],a=0,s=n.length;a<s;a++)r.push((0,o.extend)({},n[a]));return r}}function f(t,e,n){if(null!=n)return(0,o.isNumber)(n)||!isNaN(n)&&!(0,o.hasOwn)(e,n)?t[n]:(0,o.hasOwn)(e,n)?e[n]:void 0}function g(t){return(0,o.clone)(t)}var y=(0,o.createHashMap)();function m(t){var e=(t=(0,o.clone)(t)).type;e||(0,u.throwError)("");var n=e.split(":");2!==n.length&&(0,u.throwError)("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,y.set(e,t)}function v(t,e,n){var i=(0,r.normalizeToArray)(t),a=i.length;a||(0,u.throwError)("");for(var o=0,s=a;o<s;o++)e=x(i[o],e,n,1===a?null:o),o!==s-1&&(e.length=Math.max(e.length,1));return e}function x(t,e,n,a){e.length||(0,u.throwError)(""),(0,o.isObject)(t)||(0,u.throwError)("");var l=t.type,m=y.get(l);m||(0,u.throwError)("");var v=(0,o.map)(e,(function(t){return function(t,e){var n=new h,r=t.data,a=n.sourceFormat=t.sourceFormat,l=t.startIndex;t.seriesLayoutBy!==i.SERIES_LAYOUT_BY_COLUMN&&(0,u.throwError)("");var c=[],y={},m=t.dimensionsDefine;if(m)(0,o.each)(m,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};c.push(i),null!=n&&((0,o.hasOwn)(y,n)&&(0,u.throwError)(""),y[n]=i)}));else for(var v=0;v<t.dimensionsDetectedCount;v++)c.push({index:v});var x=(0,s.getRawSourceItemGetter)(a,i.SERIES_LAYOUT_BY_COLUMN);e.__isBuiltIn&&(n.getRawDataItem=function(t){return x(r,l,c,t)},n.getRawData=(0,o.bind)(d,null,t)),n.cloneRawData=(0,o.bind)(p,null,t);var _=(0,s.getRawSourceDataCounter)(a,i.SERIES_LAYOUT_BY_COLUMN);n.count=(0,o.bind)(_,null,r,l,c);var b=(0,s.getRawSourceValueGetter)(a);n.retrieveValue=function(t,e){var n=x(r,l,c,t);return S(n,e)};var S=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=c[e];return n?b(t,e,n.name):void 0}};return n.getDimensionInfo=(0,o.bind)(f,null,c,y),n.cloneAllDimensionInfo=(0,o.bind)(g,null,c),n}(t,m)})),x=(0,r.normalizeToArray)(m.transform({upstream:v[0],upstreamList:v,config:(0,o.clone)(t.config)}));return(0,o.map)(x,(function(t,n){var r;(0,o.isObject)(t)||(0,u.throwError)(""),t.data||(0,u.throwError)(""),_((0,c.detectSourceFormat)(t.data))||(0,u.throwError)("");var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:i.SERIES_LAYOUT_BY_COLUMN,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:i.SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:t.dimensions};return(0,c.createSource)(t.data,r,null)}))}function _(t){return t===i.SOURCE_FORMAT_ARRAY_ROWS||t===i.SOURCE_FORMAT_OBJECT_ROWS}})),a.register("foJ5h",(function(e,n){t(e.exports,"parseDataValue",(()=>s)),t(e.exports,"getRawValueParser",(()=>u)),t(e.exports,"SortOrderComparator",(()=>d)),t(e.exports,"createFilterComparator",(()=>f));var i=a("lcKsG"),r=a("2FIaD"),o=a("lgV6V");function s(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,r.isNumber)(t)||null==t||"-"===t||(t=+(0,i.parseDate)(t)),null==t||""===t?NaN:+t)}var l=(0,r.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+(0,i.parseDate)(t)},trim:function(t){return(0,r.isString)(t)?(0,r.trim)(t):t}});function u(t){return l.get(t)}var c={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},h=function(){function t(t,e){(0,r.isNumber)(e)||(0,o.throwError)(""),this._opFn=c[t],this._rvalFloat=(0,i.numericToNumber)(e)}return t.prototype.evaluate=function(t){return(0,r.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,i.numericToNumber)(t),this._rvalFloat)},t}(),d=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=(0,r.isNumber)(t)?t:(0,i.numericToNumber)(t),a=(0,r.isNumber)(e)?e:(0,i.numericToNumber)(e),o=isNaN(n),s=isNaN(a);if(o&&(n=this._incomparable),s&&(a=this._incomparable),o&&s){var l=(0,r.isString)(t),u=(0,r.isString)(e);l&&(n=u?t:0),u&&(a=l?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),p=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,i.numericToNumber)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=(0,i.numericToNumber)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function f(t,e){return"eq"===t||"ne"===t?new p("eq"===t,e):(0,r.hasOwn)(c,t)?new h(t,e):null}})),a.register("5WOD9",(function(e,n){t(e.exports,"CtorInt32Array",(()=>h)),t(e.exports,"default",(()=>y));var i,r=a("2FIaD"),o=a("foJ5h"),s=a("bNRWu"),l="undefined",u=typeof Uint32Array===l?Array:Uint32Array,c=typeof Uint16Array===l?Array:Uint16Array,h=typeof Int32Array===l?Array:Int32Array,d=typeof Float64Array===l?Array:Float64Array,p={float:d,int:h,ordinal:Array,number:Array,time:d};function f(t){return t>65535?u:c}function g(t,e,n,i,r){var a=p[n||"float"];if(r){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var y=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),o=this.defaultDimValueGetter=i[a.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],(0,s.shouldRetrieveDataByName)(a),this._dimensions=(0,r.map)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new p[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,a=i.ordinalOffset||0,o=n.length;0===a&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=a;l<o;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=o,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++)g(n,u,(f=r[u]).type,l,!0);for(var c=[],h=s;h<l;h++)for(var d=h-s,p=0;p<a;p++){var f=r[p],y=i.arrayRows.call(this,t[d]||c,f.property,d,p);n[p][h]=y;var m=o[p];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=(0,r.map)(o,(function(t){return t.property})),c=0;c<s;c++){var h=o[c];l[c]||(l[c]=[1/0,-1/0]),g(a,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var f=0;f<s;f++){var y=a[f],m=this._dimValueGetter(d,u[f],p,f);y[p]=m;var v=l[f];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var a=i.length;r<a;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<a||h===a&&c>=0&&o<0)&&(a=h,o=c,s=0),c===o&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(t=new(n=f(this._rawCount))(this.count()),r=0;r<t.length;r++)t[r]=r;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(f(n._rawCount))(i),a=[],o=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===o)h=e(c);else if(1===o)h=e(u[l][d],c);else{for(var p=0;p<o;p++)a[p]=u[t[p]][d];a[p]=c,h=e.apply(null,a)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=(0,r.keys)(t),a=i.length;if(!a)return this;var o=e.count(),s=new(f(e._rawCount))(o),l=0,u=i[0],c=t[u][0],h=t[u][1],d=e._chunks,p=!1;if(!e._indices){var g=0;if(1===a){for(var y=d[i[0]],m=0;m<n;m++)((b=y[m])>=c&&b<=h||isNaN(b))&&(s[l++]=g),g++;p=!0}else if(2===a){y=d[i[0]];var v=d[i[1]],x=t[i[1]][0],_=t[i[1]][1];for(m=0;m<n;m++){var b=y[m],S=v[m];(b>=c&&b<=h||isNaN(b))&&(S>=x&&S<=_||isNaN(S))&&(s[l++]=g),g++}p=!0}}if(!p)if(1===a)for(m=0;m<o;m++){var C=e.getRawIndex(m);((b=d[i[0]][C])>=c&&b<=h||isNaN(b))&&(s[l++]=C)}else for(m=0;m<o;m++){for(var w=!0,M=(C=e.getRawIndex(m),0);M<a;M++){var I=i[M];((b=d[I][C])<t[I][0]||b>t[I][1])&&(w=!1)}w&&(s[l++]=e.getRawIndex(m))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],a=e.length,o=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<o;c++){for(var h=t.getRawIndex(c),d=0;d<a;d++)s[d]=i[e[d]][h];s[a]=c;var p=n&&n.apply(null,s);if(null!=p)for("object"!=typeof p&&(r[0]=p,p=r),u=0;u<p.length;u++){var f=e[u],g=p[u],y=l[f],m=i[f];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,a=this.clone([t],!0),o=a._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(f(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),g=Math.min(d+2*u,s),y=(g+p)/2,m=0,v=p;v<g;v++){var x=o[I=this.getRawIndex(v)];isNaN(x)||(m+=x)}m/=g-p;var _=d,b=Math.min(d+u,s),S=d-1,C=o[c];n=-1,r=_;var w=-1,M=0;for(v=_;v<b;v++){var I;x=o[I=this.getRawIndex(v)],isNaN(x)?(M++,w<0&&(w=I)):(i=Math.abs((S-y)*(x-C)-(S-v)*(m-C)))>n&&(n=i,r=I)}M>0&&M<b-_&&(h[l++]=Math.min(w,r),r=Math.max(w,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),a._count=l,a._indices=h,a.getRawIndex=this._getRawIdx,a},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),a=r._chunks,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(f(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,o.length=s);for(var g=0;g<s;g++){var y=this.getRawIndex(p+g);o[g]=l[y]}var m=n(o),v=this.getRawIndex(Math.min(p+i(o,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,a=this.count();r<a;r++){var o=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][o],r);break;case 2:e(i[t[0]][o],i[t[1]][o],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][o];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var a=(i=n)[0],o=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return i=[a,o],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,a,o=new t,s=this._chunks,l=e&&(0,r.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(l)for(var u=0;u<s.length;u++)o._chunks[u]=l[u]?(a=void 0,(a=(i=s[u]).constructor)===Array?i.slice():new a(i)):s[u];else o._chunks=s;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,r.clone)(this._extent),t._rawExtent=(0,r.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return(0,o.parseDataValue)(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return(0,o.parseDataValue)(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return(0,o.parseDataValue)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}()})),a.register("5LNAo",(function(e,n){t(e.exports,"defaultSeriesFormatTooltip",(()=>l));var i=a("2FIaD"),r=a("eckBc"),o=a("lzjvl"),s=a("2LuwV");function l(t){var e,n,a,l,u=t.series,c=t.dataIndex,h=t.multipleSeries,d=u.getData(),p=d.mapDimensionsAll("defaultedTooltip"),f=p.length,g=u.getRawValue(c),y=(0,i.isArray)(g),m=(0,r.retrieveVisualColorForTooltipMarker)(u,c);if(f>1||y&&!f){var v=function(t,e,n,a,s){var l=e.getData(),u=(0,i.reduce)(t,(function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],h=[],d=[];function p(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?d.push((0,r.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),h.push(n.type)))}return a.length?(0,i.each)(a,(function(t){p((0,o.retrieveRawValue)(l,n,t),t)})):(0,i.each)(t,p),{inlineValues:c,inlineValueTypes:h,blocks:d}}(g,u,c,p,m);e=v.inlineValues,n=v.inlineValueTypes,a=v.blocks,l=v.inlineValues[0]}else if(f){var x=d.getDimensionInfo(p[0]);l=e=(0,o.retrieveRawValue)(d,c,p[0]),n=x.type}else l=e=y?g[0]:g;var _=(0,s.isNameSpecified)(u),b=_&&u.name||"",S=d.getName(c),C=h?b:S;return(0,r.createTooltipMarkup)("section",{header:b,noHeader:h||!_,sortParam:l,blocks:[(0,r.createTooltipMarkup)("nameValue",{markerType:"item",markerColor:m,name:C,noName:!(0,i.trim)(C),value:e,valueType:n,dataIndex:c})].concat(a||[])})}})),a.register("eckBc",(function(e,n){t(e.exports,"createTooltipMarkup",(()=>d)),t(e.exports,"buildTooltipMarkup",(()=>v)),t(e.exports,"retrieveVisualColorForTooltipMarker",(()=>b)),t(e.exports,"getPaddingFromTooltipModel",(()=>S)),t(e.exports,"TooltipMarkupStyleCreator",(()=>C)),a("bZ9NN");var i=a("i1s7L"),r=a("bZ9NN"),o=a("2FIaD"),s=a("foJ5h"),l=a("lcKsG");function u(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",o=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,i.encodeHTML)(r+"")+"px;color:"+(0,i.encodeHTML)(n)+";font-weight:"+(0,i.encodeHTML)(a+""),valueStyle:"font-size:"+(0,i.encodeHTML)(s+"")+"px;color:"+(0,i.encodeHTML)(o)+";font-weight:"+(0,i.encodeHTML)(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var c=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function d(t,e){return e.type=t,e}function p(t){return"section"===t.type}function f(t){return p(t)?y:m}function g(t){if(p(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return(0,o.each)(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||p(t)&&!t.noHeader)))})),e}return 0}function y(t,e,n,a){var l,d=e.noHeader,p=(l=g(e),{html:c[l],richText:h[l]}),y=[],m=e.blocks||[];(0,o.assert)(!m||(0,o.isArray)(m)),m=m||[];var v=t.orderMode;if(e.sortBlocks&&v){m=m.slice();var b={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(b,v)){var S=new(0,s.SortOrderComparator)(b[v],null);m.sort((function(t,e){return S.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===v&&m.reverse()}(0,o.each)(m,(function(n,i){var r=e.valueFormatter,s=f(n)(r?(0,o.extend)((0,o.extend)({},t),{valueFormatter:r}):t,n,i>0?p.html:0,a);null!=s&&y.push(s)}));var C="richText"===t.renderMode?y.join(p.richText):x(y.join(""),d?n:p.html);if(d)return C;var w=(0,r.makeValueReadable)(e.header,"ordinal",t.useUTC),M=u(a,t.renderMode).nameStyle;return"richText"===t.renderMode?_(t,w,M)+p.richText+C:x('<div style="'+M+';line-height:1;">'+(0,i.encodeHTML)(w)+"</div>"+C,n)}function m(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,h=!e.markerType,d=e.name,p=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.isArray)(t)?t:[t],(0,o.map)(t,(function(t,e){return(0,r.makeValueReadable)(t,(0,o.isArray)(m)?m[e]:m,p)}))};if(!l||!c){var g=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),y=l?"":(0,r.makeValueReadable)(d,"ordinal",p),m=e.valueType,v=c?[]:f(e.value,e.dataIndex),b=!h||!l,S=!h&&l,C=u(a,s),w=C.nameStyle,M=C.valueStyle;return"richText"===s?(h?"":g)+(l?"":_(t,y,w))+(c?"":function(t,e,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(e)?e.join(" "):e,a)}(t,v,b,S,M)):x((h?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,i.encodeHTML)(t)+"</span>"}(y,!h,w))+(c?"":function(t,e,n,r){var a=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=(0,o.isArray)(t)?t:[t],'<span style="'+a+";"+r+'">'+(0,o.map)(t,(function(t){return(0,i.encodeHTML)(t)})).join(" ")+"</span>"}(v,b,S,M)),n)}}function v(t,e,n,i,r,a){if(t)return f(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,a)}function x(t,e){return'<div style="margin: '+e+'px 0 0;line-height:1;">'+t+'<div style="clear:both"></div></div>'}function _(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,r.convertToColorString)(n)}function S(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var C=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,l.getRandomIdBase)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,a=(0,r.getTooltipMarker)({color:e,type:t,renderMode:n,markerId:i});return(0,o.isString)(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.isArray)(e)?(0,o.each)(e,(function(t){return(0,o.extend)(n,t)})):(0,o.extend)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()})),a.register("2UHy9",(function(e,n){t(e.exports,"default",(()=>l));var i=a("2IUoL"),r=a("jmxtG"),o=a("fN7Ut"),s=function(){function t(){this.group=new(0,i.default),this.uid=r.getUID("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();o.enableClassExtend(s),o.enableClassManagement(s);var l=s})),a.register("3dZ3l",(function(e,n){t(e.exports,"default",(()=>b));var i=a("2FIaD"),r=a("2IUoL"),o=a("jmxtG"),s=a("fN7Ut"),l=a("2LuwV"),u=a("4lzC1"),c=a("cEaMi"),h=a("h8Fzm"),d=a("dXBoT"),p=l.makeInner(),f=(0,h.default)(),g=function(){function t(){this.group=new(0,r.default),this.uid=o.getUID("viewChart"),this.renderTask=(0,c.createTask)({plan:v,reset:x}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){(0,d.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){p(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function y(t,e,n){t&&(0,u.isHighDownDispatcher)(t)&&("emphasis"===e?u.enterEmphasis:u.leaveEmphasis)(t,n)}function m(t,e,n){var r=l.queryDataIndex(t,e),a=e&&null!=e.highlightKey?(0,u.getHighlightDigit)(e.highlightKey):null;null!=r?(0,i.each)(l.normalizeToArray(r),(function(e){y(t.getItemGraphicEl(e),n,a)})):t.eachItemGraphicEl((function(t){y(t,n,a)}))}function v(t){return f(t.model)}function x(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&p(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,i,r),_[l]}s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g);var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},b=g})),a.register("h8Fzm",(function(e,n){t(e.exports,"default",(()=>r));var i=a("2LuwV");function r(){var t=(0,i.makeInner)();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,a=!!n.progressiveRender,o=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===o&&a===s)&&"reset"}}})),a.register("3deD8",(function(e,n){function i(t,e,n){var i,r,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(a,o||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),a=this,o=t;var p=s||e,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function r(t,e,n,r){var a=t[e];if(a){var o=a["\0__throttleOriginMethod"]||a,s=a["\0__throttleType"];if(a["\0__throttleRate"]!==n||s!==r){if(null==n||!r)return t[e]=o;(a=t[e]=i(o,n,"debounce"===r))["\0__throttleOriginMethod"]=o,a["\0__throttleType"]=r,a["\0__throttleRate"]=n}return a}}function a(t,e){var n=t[e];n&&n["\0__throttleOriginMethod"]&&(n.clear&&n.clear(),t[e]=n["\0__throttleOriginMethod"])}t(e.exports,"throttle",(()=>i)),t(e.exports,"createOrUpdate",(()=>r)),t(e.exports,"clear",(()=>a))})),a.register("2G7Y8",(function(e,n){t(e.exports,"seriesStyleTask",(()=>f)),t(e.exports,"dataStyleTask",(()=>y)),t(e.exports,"dataColorPaletteTask",(()=>m));var i=a("2FIaD"),r=a("5ESKT"),o=a("gMpFD"),s=a("gncYE"),l=a("9xTlQ"),u=(0,a("2LuwV").makeInner)(),c={itemStyle:(0,r.default)(o.ITEM_STYLE_KEY_MAP,!0),lineStyle:(0,r.default)(s.LINE_STYLE_KEY_MAP,!0)},h={lineStyle:"stroke",itemStyle:"fill"};function d(t,e){return t.visualStyleMapper||c[e]||(console.warn("Unknown style type '"+e+"'."),c.itemStyle)}function p(t,e){return t.visualDrawType||h[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var f={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),o=d(t,r)(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=p(t,r),u=o[l],c=(0,i.isFunction)(u)?u:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=f,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||(0,i.isFunction)(o.fill)?f:o.fill,o.stroke="auto"===o.stroke||(0,i.isFunction)(o.stroke)?f:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),a=(0,i.extend)({},o);a[l]=c(r),e.setItemVisual(n,"style",a)}}}},g=new(0,l.default),y={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=d(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){g.option=n[r];var s=a(g),l=t.ensureUniqueItemVisual(e,"style");(0,i.extend)(l,s),g.option.decal&&(t.setItemVisual(e,"decal",g.option.decal),g.option.decal.dirty=!0),o in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},m={performRawSeries:!0,overallReset:function(t){var e=(0,i.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),u(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),a=u(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=p(e,o);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var o=i[t];if(r.getItemVisual(o,"colorFromPalette")){var l=r.ensureUniqueItemVisual(o,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,a,c)}}))}}))}}})),a.register("cbuZ5",(function(e,n){t(e.exports,"default",(()=>c));var i=a("2FIaD");a("dXBoT");var r=a("jKUgc"),o=a("hKSo9"),s=a("2IUoL"),l=a("jud7h"),u=Math.PI;function c(t,e){e=e||{},i.defaults(e,{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 s.default,a=new r.default({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(a);var c,h=new l.default({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),d=new r.default({style:{fill:"none"},textContent:h,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(d),e.showSpinner&&((c=new o.default({shape:{startAngle:-u/2,endAngle:-u/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*u/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*u/2}).delay(300).start("circularInOut"),n.add(c)),n.resize=function(){var n=h.getBoundingRect().width,i=e.showSpinner?e.spinnerRadius:0,r=(t.getWidth()-2*i-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:i),o=t.getHeight()/2;e.showSpinner&&c.setShape({cx:r,cy:o}),d.setShape({x:r-i,y:o-i,width:2*i,height:2*i}),a.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}})),a.register("9b0wr",(function(e,n){t(e.exports,"default",(()=>M));var i=a("2FIaD"),r=a("cEaMi"),o=a("jmxtG"),s=a("6St9F"),l=a("60Snt"),u=a("2LuwV"),c=function(){function t(t,e,n,r){this._stageTaskMap=(0,i.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,a=i&&i.modDataCount;return{step:r,modBy:null!=a?Math.ceil(a/r):null,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:o,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,i.createHashMap)();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,i.each)(this._allHandlers,(function(r){var a=t.get(r.uid)||t.set(r.uid,{});(0,i.assert)(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,a,e,n),r.overallReset&&this._createOverallStageTask(r,a,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var a=!1,o=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,i.each)(t,(function(t,i){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(a=!0)}else u&&u.each((function(i,l){s(r,i)&&i.dirty();var u=o.getPerformArgs(i,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(i.context.model),o.updatePayload(i,n),i.perform(u)&&(a=!0)}))}})),this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,a){var o=this,s=e.seriesTaskMap,l=e.seriesTaskMap=(0,i.createHashMap)(),u=t.seriesType,c=t.getTargetSeries;function h(e){var i=e.uid,u=l.set(i,s&&s.get(i)||(0,r.createTask)({plan:g,reset:y,count:x}));u.context={model:e,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,u)}t.createOnAllSeries?n.eachRawSeries(h):u?n.eachRawSeriesByType(u,h):c&&c(n,a).each(h)},t.prototype._createOverallStageTask=function(t,e,n,a){var o=this,s=e.overallTask=e.overallTask||(0,r.createTask)({reset:h});s.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:o};var l=s.agentStubMap,u=s.agentStubMap=(0,i.createHashMap)(),c=t.seriesType,p=t.getTargetSeries,g=!0,y=!1;function m(t){var e=t.uid,n=u.set(e,l&&l.get(e)||(y=!0,(0,r.createTask)({reset:d,onDirty:f})));n.context={model:t,overallProgress:g},n.agent=s,n.__block=g,o._pipe(t,n)}(0,i.assert)(!t.createOnAllSeries,""),c?n.eachRawSeriesByType(c,m):p?p(n,a).each(m):(g=!1,(0,i.each)(n.getSeries(),m)),y&&s.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return(0,i.isFunction)(t)&&(t={overallReset:t,seriesType:_(t)}),t.uid=(0,o.getUID)("stageHandler"),e&&(t.visualType=e),t},t}();function h(t){t.overallReset(t.ecModel,t.api,t.payload)}function d(t){return t.overallProgress&&p}function p(){this.agent.dirty(),this.getDownstream().dirty()}function f(){this.agent&&this.agent.dirty()}function g(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function y(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,u.normalizeToArray)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,i.map)(e,(function(t,e){return v(e)})):m}var m=v(0);function v(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function x(t){return t.data.count()}function _(t){b=null;try{t(S,C)}catch(t){}return b}var b,S={},C={};function w(t,e){for(var n in e.prototype)t[n]=i.noop}w(S,s.default),w(C,l.default),S.eachSeriesByType=S.eachRawSeriesByType=function(t){b=t},S.eachComponent=function(t){"series"===t.mainType&&t.subType&&(b=t.subType)};var M=c})),a.register("4hI7c",(function(e,n){t(e.exports,"default",(()=>r));var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],r={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]}})),a.register("6vX1h",(function(e,n){t(e.exports,"default",(()=>l));var i="#B9B8CE",r="#100C2A",a=function(){return{axisLine:{lineStyle:{color:i}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},o=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],s={darkMode:!0,color:o,backgroundColor:r,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:i}},dataZoom:{borderColor:"#71708A",textStyle:{color:i},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:i}},timeline:{lineStyle:{color:i},label:{color:i},controlStyle:{color:i,borderColor:i}},calendar:{itemStyle:{color:r},dayLabel:{color:i},monthLabel:{color:i},yearLabel:{color:i}},timeAxis:a(),logAxis:a(),valueAxis:a(),categoryAxis:a(),line:{symbol:"circle"},graph:{color:o},gauge:{title:{color:i},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:i},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};s.categoryAxis.splitLine.show=!1;var l=s})),a.register("eU4Fu",(function(e,n){t(e.exports,"ECEventProcessor",(()=>o));var i=a("2FIaD"),r=a("fN7Ut"),o=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},a={};if(i.isString(t)){var o=(0,r.parseClassType)(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var s=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};i.each(t,(function(t,i){for(var r=!1,o=0;o<s.length;o++){var u=s[o],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,r=!0)}}l.hasOwnProperty(i)&&(n[i]=t,r=!0),r||(a[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:a}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}()})),a.register("PpLqp",(function(e,n){t(e.exports,"seriesSymbolTask",(()=>s)),t(e.exports,"dataSymbolTask",(()=>l));var i=a("2FIaD"),r=["symbol","symbolSize","symbolRotate","symbolOffset"],o=r.concat(["symbolKeepAspect"]),s={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var a={},o={},s=!1,l=0;l<r.length;l++){var u=r[l],c=t.get(u);(0,i.isFunction)(c)?(s=!0,o[u]=c):a[u]=c}if(a.symbol=a.symbol||t.defaultSymbol,n.setVisual((0,i.extend)({legendIcon:t.legendIcon||a.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},a)),!e.isSeriesFiltered(t)){var h=(0,i.keys)(o);return{dataEach:s?function(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a<h.length;a++){var s=h[a];e.setItemVisual(n,s,o[s](i,r))}}:null}}}}},l={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<o.length;i++){var r=o[i],a=n.getShallow(r,!0);null!=a&&t.setItemVisual(e,r,a)}}:null}}}})),a.register("9kZyL",(function(e,n){function i(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function r(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function a(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}t(e.exports,"getItemVisualFromData",(()=>i)),t(e.exports,"getVisualFromData",(()=>r)),t(e.exports,"setItemVisualFromData",(()=>a))})),a.register("lfZwf",(function(e,n){t(e.exports,"createLegacyDataSelectAction",(()=>o)),t(e.exports,"handleLegacySelectEvents",(()=>l));var i=a("2FIaD"),r=a("2LuwV");function o(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}(0,i.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,a){e=(0,i.extend)({},e),a.dispatchAction((0,i.extend)(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function s(t,e,n,a,o){var s=t+e;n.isSilent(s)||a.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,a=t.option.selectedMap,l=o.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===e){var c=t.getData(),h=(0,r.queryDataIndex)(c,o.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,i.isArray)(h)?c.getName(h[0]):c.getName(h),selected:(0,i.isString)(a)?a:(0,i.extend)({},a)})}}))}function l(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(s("map","selectchanged",e,i,t),s("pie","selectchanged",e,i,t)):"select"===t.fromAction?(s("map","selected",e,i,t),s("pie","selected",e,i,t)):"unselect"===t.fromAction&&(s("map","unselected",e,i,t),s("pie","unselected",e,i,t))}))}})),a.register("4XWEA",(function(e,n){function i(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}t(e.exports,"findEventDispatcher",(()=>i))})),a.register("6TT1U",(function(e,n){t(e.exports,"default",(()=>r));var i=a("8yeYH");function r(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=(0,i.createOrUpdatePatternFromDecal)(n,e))}));var a=r.getVisual("decal");a&&(r.getVisual("style").decal=(0,i.createOrUpdatePatternFromDecal)(a,e))}}))}})),a.register("8yeYH",(function(e,n){t(e.exports,"createOrUpdatePatternFromDecal",(()=>f));var i=a("hQMIO"),r=a("8uFR3"),o=a("2FIaD"),s=a("lcKsG"),l=a("2ZiWs"),u=a("foMLt"),c=a("2JyUO"),h=new(0,i.default),d=new(0,r.default)(100),p=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function f(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&h.delete(t);var a=h.get(t);if(a)return a;var f=(0,o.defaults)(t,{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"===f.backgroundColor&&(f.backgroundColor=null);var v={repeat:"repeat"};return function(t){for(var e,a=[n],h=!0,v=0;v<p.length;++v){var x=f[p[v]];if(null!=x&&!(0,o.isArray)(x)&&!(0,o.isString)(x)&&!(0,o.isNumber)(x)&&"boolean"!=typeof x){h=!1;break}a.push(x)}if(h){e=a.join(",")+(r?"-svg":"");var _=d.get(e);_&&(r?t.svgElement=_:t.image=_)}var b,S,C=y(f.dashArrayX),w=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,o.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,o.map)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(f.dashArrayY),M=g(f.symbol),I=(S=C,(0,o.map)(S,(function(t){return m(t)}))),T=m(w),A=!r&&c.platformApi.createCanvas(),D=r&&{tag:"g",attrs:{},key:"dcl",children:[]},L=function(){for(var t=1,e=0,n=I.length;e<n;++e)t=(0,s.getLeastCommonMultiple)(t,I[e]);var i=1;for(e=0,n=M.length;e<n;++e)i=(0,s.getLeastCommonMultiple)(i,M[e].length);t*=i;var r=T*I.length*M.length;return{width:Math.max(1,Math.min(t,f.maxTileWidth)),height:Math.max(1,Math.min(r,f.maxTileHeight))}}();A&&(A.width=L.width*n,A.height=L.height*n,b=A.getContext("2d")),function(){b&&(b.clearRect(0,0,A.width,A.height),f.backgroundColor&&(b.fillStyle=f.backgroundColor,b.fillRect(0,0,A.width,A.height)));for(var t=0,e=0;e<w.length;++e)t+=w[e];if(!(t<=0))for(var a=-T,o=0,s=0,c=0;a<L.height;){if(o%2==0){for(var h=s/2%M.length,d=0,p=0,g=0;d<2*L.width;){var y=0;for(e=0;e<C[c].length;++e)y+=C[c][e];if(y<=0)break;if(p%2==0){var m=.5*(1-f.symbolSize),v=d+C[c][p]*m,x=a+w[o]*m,_=C[c][p]*f.symbolSize,S=w[o]*f.symbolSize,I=g/2%M[h].length;k(v,x,_,S,M[h][I])}d+=C[c][p],++g,++p===C[c].length&&(p=0)}++c===C.length&&(c=0)}a+=w[o],++s,++o===w.length&&(o=0)}function k(t,e,a,o,s){var c=r?1:n,h=(0,l.createSymbol)(s,t*c,e*c,a*c,o*c,f.color,f.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(h);d&&D.children.push(d)}else(0,u.brushSingle)(b,h)}}(),h&&d.put(e,A||D),t.image=A,t.svgElement=D,t.svgWidth=L.width,t.svgHeight=L.height}(v),v.rotation=f.rotation,v.scaleX=v.scaleY=r?1:1/n,h.set(t,v),t.dirty=!1,v}function g(t){if(!t||0===t.length)return[["rect"]];if((0,o.isString)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,o.isString)(t[n])){e=!1;break}if(e)return g([t]);var i=[];for(n=0;n<t.length;++n)(0,o.isString)(t[n])?i.push([t[n]]):i.push(t[n]);return i}function y(t){if(!t||0===t.length)return[[0,0]];if((0,o.isNumber)(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!(0,o.isNumber)(t[n])){e=!1;break}if(e)return y([t]);var i=[];for(n=0;n<t.length;++n)if((0,o.isNumber)(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else(r=(0,o.map)(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r);return i}function m(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}})),a.register("hQMIO",(function(e,n){t(e.exports,"default",(()=>a));var i=Math.round(9*Math.random()),r="function"==typeof Object.defineProperty,a=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}()})),a.register("2ZiWs",(function(e,n){t(e.exports,"symbolBuildProxies",(()=>x)),t(e.exports,"createSymbol",(()=>S)),t(e.exports,"normalizeSymbolSize",(()=>C)),t(e.exports,"normalizeSymbolOffset",(()=>w));var i=a("2FIaD");a("dXBoT");var r=a("isgWw"),o=a("l0SnR"),s=a("jKUgc"),l=a("1RKvJ"),u=a("dXBoT"),c=a("lV62k"),h=a("bv5ZD"),d=a("lcKsG"),p=r.default.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),f=r.default.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),g=r.default.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),p=.6*o,f=.7*o;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),y=r.default.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),m={line:o.default,rect:s.default,roundRect:s.default,square:s.default,circle:l.default,diamond:f,pin:g,arrow:y,triangle:p},v={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},x={};(0,i.each)(m,(function(t,e){x[e]=new t}));var _=r.default.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,h.calculateTextPosition)(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=x[i];r||(r=x[i="rect"]),v[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function b(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function S(t,e,n,i,r,a,o){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?u.makeImage(t.slice(8),new(0,c.default)(e,n,i,r),o?"center":"cover"):0===t.indexOf("path://")?u.makePath(t.slice(7),{},new(0,c.default)(e,n,i,r),o?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=b,a&&s.setColor(a),s}function C(t){return(0,i.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function w(t,e){if(null!=t)return(0,i.isArray)(t)||(t=[t,t]),[(0,d.parsePercent)(t[0],e[0])||0,(0,d.parsePercent)((0,i.retrieve2)(t[1],t[0]),e[1])||0]}})),a.register("foMLt",(function(e,n){t(e.exports,"createCanvasPattern",(()=>b)),t(e.exports,"brushSingle",(()=>D)),t(e.exports,"brush",(()=>L));var i=a("77M3u"),r=a("hpPau"),o=a("2aSlr"),s=a("5Qz5p"),l=a("isgWw"),u=a("kbAoh"),c=a("eIhqd"),h=a("2FIaD"),d=a("1VL9N"),p=a("fIYrT"),f=a("2JyUO"),g=new(0,r.default)(!0);function y(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function x(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function b(t,e,n){var i=(0,o.createOrUpdateImage)(e.image,e.__image,n);if((0,o.isImageReady)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*h.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],C=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function w(t,e,n,r,a){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){T(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.DEFAULT_COMMON_STYLE.opacity:s}(r||e.blend!==n.blend)&&(o||(T(t,a),o=!0),t.globalCompositeOperation=e.blend||i.DEFAULT_COMMON_STYLE.blend);for(var l=0;l<S.length;l++){var u=S[l];(r||e[u]!==n[u])&&(o||(T(t,a),o=!0),t[u]=t.dpr*(e[u]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(T(t,a),o=!0),t.shadowColor=e.shadowColor||i.DEFAULT_COMMON_STYLE.shadowColor),o}function M(t,e,n,i,r){var a=A(e,r.inHover),o=i?null:n&&A(n,r.inHover)||{};if(a===o)return!1;var s=w(t,a,o,i,r);if((i||a.fill!==o.fill)&&(s||(T(t,r),s=!0),m(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(T(t,r),s=!0),m(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(T(t,r),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(T(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<C.length;u++){var c=C[u],h=c[0];(i||a[h]!==o[h])&&(s||(T(t,r),s=!0),t[h]=a[h]||c[1])}return s}function I(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function T(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function A(t,e){return e&&t.__hoverStyle||t.style}function D(t,e){L(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function L(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~p.REDRAW_BIT,void(e.__isRendered=!1);var a=e.__clipPaths,h=n.prevElClipPaths,m=!1,S=!1;if(h&&!(0,s.isClipPathChanged)(a,h)||(h&&h.length&&(T(t,n),t.restore(),S=m=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(T(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var a=t[r];i=i||a.isZeroArea(),I(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=i}(a,t,n),m=!0),n.prevElClipPaths=a),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var C=n.prevEl;C||(S=m=!0);var D,k,O=e instanceof l.default&&e.autoBatch&&function(t){var e=v(t),n=y(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);m||(D=r,k=C.transform,D&&k?D[0]!==k[0]||D[1]!==k[1]||D[2]!==k[2]||D[3]!==k[3]||D[4]!==k[4]||D[5]!==k[5]:D||k)?(T(t,n),I(t,e)):O||T(t,n);var P=A(e,n.inHover);e instanceof l.default?(1!==n.lastDrawType&&(S=!0,n.lastDrawType=1),M(t,e,C,S,n),O&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,a=y(n),o=v(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var h=e.path||g,f=e.__dirty;if(!i){var m=n.fill,S=n.stroke,C=o&&!!m.colorStops,w=a&&!!S.colorStops,M=o&&!!m.image,I=a&&!!S.image,T=void 0,A=void 0,D=void 0,L=void 0,k=void 0;(C||w)&&(k=e.getBoundingRect()),C&&(T=f?(0,s.getCanvasGradient)(t,m,k):e.__canvasFillGradient,e.__canvasFillGradient=T),w&&(A=f?(0,s.getCanvasGradient)(t,S,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=A),M&&(D=f||!e.__canvasFillPattern?b(t,m,e):e.__canvasFillPattern,e.__canvasFillPattern=D),I&&(L=f||!e.__canvasStrokePattern?b(t,S,e):e.__canvasStrokePattern,e.__canvasStrokePattern=D),C?t.fillStyle=T:M&&(D?t.fillStyle=D:o=!1),w?t.strokeStyle=A:I&&(L?t.strokeStyle=L:a=!1)}var O,P,E=e.getGlobalScale();h.setScale(E[0],E[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(O=(r=(0,d.getLineDash)(e))[0],P=r[1]);var R=!0;(c||f&p.SHAPE_CHANGED_BIT)&&(h.setDPR(t.dpr),u?h.setContext(null):(h.setContext(t),R=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),R&&h.rebuildPath(t,u?l:1),O&&(t.setLineDash(O),t.lineDashOffset=P),i||(n.strokeFirst?(a&&_(t,n),o&&x(t,n)):(o&&x(t,n),a&&_(t,n))),O&&t.setLineDash([])}(t,e,P,O),O&&(n.batchFill=P.fill||"",n.batchStroke=P.stroke||"")):e instanceof c.default?(3!==n.lastDrawType&&(S=!0,n.lastDrawType=3),M(t,e,C,S,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||f.DEFAULT_FONT,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(a=(i=(0,d.getLineDash)(e))[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?(y(n)&&t.strokeText(r,n.x,n.y),v(n)&&t.fillText(r,n.x,n.y)):(v(n)&&t.fillText(r,n.x,n.y),y(n)&&t.strokeText(r,n.x,n.y)),a&&t.setLineDash([])}}(t,e,P)):e instanceof u.default?(2!==n.lastDrawType&&(S=!0,n.lastDrawType=2),function(t,e,n,i,r){w(t,A(e,r.inHover),n&&A(n,r.inHover),i,r)}(t,e,C,S,n),function(t,e,n){var i=e.__image=(0,o.createOrUpdateImage)(n.image,e.__image,e,e.onload);if(i&&(0,o.isImageReady)(i)){var r=n.x||0,a=n.y||0,s=e.getWidth(),l=e.getHeight(),u=i.width/i.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;t.drawImage(i,c,h,n.sWidth,n.sHeight,r,a,s,l)}else if(n.sx&&n.sy){var d=s-(c=n.sx),p=l-(h=n.sy);t.drawImage(i,c,h,d,p,r,a,s,l)}else t.drawImage(i,r,a,s,l)}}(t,e,P)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(S=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=e.getCursor(),o=i.length;a<o;a++)(c=i[a]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),L(t,c,s,a===o-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),L(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),O&&i&&T(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}})),a.register("5Qz5p",(function(e,n){function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,a=n.height,o=Math.min(r,a),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*a+n.y,u*=o),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,a=null==e.x2?1:e.x2,o=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,a=i(a)?a:1,o=i(o)?o:0,s=i(s)?s:0,t.createLinearGradient(r,o,a,s)}(t,e,n),a=e.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}function a(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function o(t){return parseInt(t,10)}function s(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[r]||o(l[i])||o(t.style[i]))-(o(l[a])||0)-(o(l[s])||0)|0}t(e.exports,"getCanvasGradient",(()=>r)),t(e.exports,"isClipPathChanged",(()=>a)),t(e.exports,"getSize",(()=>s))})),a.register("1VL9N",(function(e,n){t(e.exports,"getLineDash",(()=>r));var i=a("2FIaD");function r(t){var e,n,r=t.style,a=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),o=r.lineDashOffset;if(a){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=(0,i.map)(a,(function(t){return t/s})),o/=s)}return[a,o]}})),a.register("9oFdv",(function(e,n){t(e.exports,"default",(()=>i));var i=new(0,a("gqWkF").default)})),a.register("6EE21",(function(e,n){t(e.exports,"registerImpl",(()=>r)),t(e.exports,"getImpl",(()=>a));var i={};function r(t,e){i[t]=e}function a(t){return i[t]}})),a.register("ci7l3",(function(e,n){t(e.exports,"extendComponentModel",(()=>l)),t(e.exports,"extendComponentView",(()=>u)),t(e.exports,"extendSeriesModel",(()=>c)),t(e.exports,"extendChartView",(()=>h)),t(e.exports,"zrender",(()=>a("deUmu"))),t(e.exports,"matrix",(()=>a("0445l"))),t(e.exports,"vector",(()=>a("jkyg0"))),t(e.exports,"zrUtil",(()=>a("2FIaD"))),t(e.exports,"color",(()=>a("l3Be0"))),t(e.exports,"throttle",(()=>a("3deD8").throttle)),t(e.exports,"helper",(()=>a("aieqh"))),t(e.exports,"use",(()=>a("kyrfh").use)),t(e.exports,"setPlatformAPI",(()=>a("2JyUO").setPlatformAPI)),t(e.exports,"parseGeoJSON",(()=>a("m2aWg").default)),t(e.exports,"parseGeoJson",(()=>a("m2aWg").default)),t(e.exports,"number",(()=>a("68oIq"))),t(e.exports,"time",(()=>a("5pdS6"))),t(e.exports,"graphic",(()=>a("ljBIR"))),t(e.exports,"format",(()=>a("7FaTO"))),t(e.exports,"util",(()=>a("fi1vT"))),t(e.exports,"env",(()=>a("6rpCZ").default)),t(e.exports,"List",(()=>a("hpTXA").default)),t(e.exports,"Model",(()=>a("9xTlQ").default)),t(e.exports,"Axis",(()=>a("z6R1J").default)),t(e.exports,"ComponentModel",(()=>a("eWRYv").default)),t(e.exports,"ComponentView",(()=>a("2UHy9").default)),t(e.exports,"SeriesModel",(()=>a("gGiC4").default)),t(e.exports,"ChartView",(()=>a("3dZ3l").default)),t(e.exports,"innerDrawElementOnCanvas",(()=>a("foMLt").brushSingle));var i=a("eWRYv"),r=a("2UHy9"),o=a("gGiC4"),s=a("3dZ3l");function l(t){var e=i.default.extend(t);return i.default.registerClass(e),e}function u(t){var e=r.default.extend(t);return r.default.registerClass(e),e}function c(t){var e=o.default.extend(t);return o.default.registerClass(e),e}function h(t){var e=s.default.extend(t);return s.default.registerClass(e),e}a("hpTXA"),a("deUmu"),a("0445l"),a("jkyg0"),a("2FIaD"),a("l3Be0"),a("3deD8"),a("aieqh"),a("kyrfh"),a("2JyUO"),a("m2aWg"),a("m2aWg"),a("68oIq"),a("5pdS6"),a("ljBIR"),a("7FaTO"),a("fi1vT"),a("6rpCZ"),a("9xTlQ"),a("z6R1J"),a("foMLt")})),a.register("hpTXA",(function(e,n){t(e.exports,"default",(()=>D));var i,r,o,s,l,u,c,h=a("2FIaD"),d=a("9xTlQ"),p=a("7aXlh"),f=a("lzjvl"),g=a("4MjWZ"),y=a("cItdr"),m=a("1tAq5"),v=a("2LuwV"),x=a("5v9xk"),_=a("bNRWu"),b=a("5WOD9"),S=a("24RqC"),C=h.isObject,w=h.map,M="undefined"==typeof Int32Array?Array:Int32Array,I=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],T=["_approximateExtent"],A=function(){function t(t,e){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;(0,S.isSeriesDataSchema)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=h.isString(c)?new(0,y.default)({name:c}):c instanceof y.default?c:new(0,y.default)(c),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};a.push(p),r[p]=d,null!=l[p]&&(s=!0),d.createInvertedIndices&&(o[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=o,this._dimOmitted){var g=this._dimIdxToName=h.createHashMap();h.each(a,(function(t){g.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(h.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof b.default&&(i=t),!i){var a=this.dimensions,o=(0,_.isSourceInstance)(t)||h.isArrayLike(t)?new(0,f.DefaultDataProvider)(t,a.length):t;i=new(0,b.default);var s=w(a,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(o,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=(0,g.summarizeDimensions)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=i;o<r;o++){var s=o-i;this._nameList[o]=e[s],a&&c(this,o)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==m.SOURCE_FORMAT_TYPED_ARRAY&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList;if(n.getSource().sourceFormat===m.SOURCE_FORMAT_ORIGINAL&&!n.pure)for(var o=[],s=t;s<e;s++){var l=n.getItem(s,o);if(!this.hasItemOption&&(0,v.isDataItemOption)(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=(0,v.convertOptionIdName)(u,null));var h=l.id;null==a[s]&&null!=h&&(a[s]=(0,v.convertOptionIdName)(h,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)c(this,s);i(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){C(t)?h.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return r(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return h.isArray(t)?i.getValues(w(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=w(s(t),this._getStoreDimIndex,this);this._store.each(r,i?h.bind(e,i):e)},t.prototype.filterSelf=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=w(s(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?h.bind(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=h.keys(t),r=[];return h.each(i,(function(i){var a=e._getStoreDimIndex(i);n[a]=t[i],r.push(a)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,a=w(s(t),this._getStoreDimIndex,this),o=u(this);return o._store=this._store.map(a,r?h.bind(e,r):e),o},t.prototype.modify=function(t,e,n,i){var r=n||i||this,a=w(s(t),this._getStoreDimIndex,this);this._store.modify(a,r?h.bind(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=u(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=u(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new(0,d.default)(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new(0,p.default)(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return r(t,e)}),(function(t){return r(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},C(t)?h.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),h.isArray(r)?r=r.slice():C(r)&&(r=h.extend({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,C(e)?h.extend(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){C(t)?h.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;(0,x.setCommonECData)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){h.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:w(this.dimensions,this._getDimInfo,this),this.hostModel)),l(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];h.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(h.slice(arguments)))})},t.internalField=(i=function(t){var e=t._invertedIndicesMap;h.each(e,(function(n,i){var r=t._dimInfos[i],a=r.ordinalMeta,o=t._store;if(a){n=e[i]=new M(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<o.count();s++)n[o.get(r.storeDimIndex,s)]=s}}))},o=function(t,e,n){return(0,v.convertOptionIdName)(t._getCategory(e,n),null)},r=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},s=function(t){return h.isArray(t)||(t=null!=t?[t]:[]),t},u=function(e){var n=new t(e._schema?e._schema:w(e.dimensions,e._getDimInfo,e),e.hostModel);return l(n,e),n},l=function(t,e){h.each(I.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,h.each(T,(function(n){t[n]=h.clone(e[n])})),t._calculationInfo=h.extend({},e._calculationInfo)},void(c=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,a=t._idDimIdx,s=n[e],l=i[e];if(null==s&&null!=r&&(n[e]=s=o(t,r,e)),null==l&&null!=a&&(i[e]=l=o(t,a,e)),null==l&&null!=s){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}})),t}(),D=A})),a.register("7aXlh",(function(e,n){function i(t){return null==t?0:t.length||1}function r(t){return t}t(e.exports,"default",(()=>a));var a=function(){function t(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=a,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=r[o],l=n[s],u=i(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=r[l],h=i(u),d=i(c);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),r[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],a=e[r],o=i(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else 1===o&&this._add&&this._add(a);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[r](t[o],o);if(a||(n[o]=s),e){var l=e[s],u=i(l);0===u?(e[s]=o,a&&n.push(s)):1===u?e[s]=[l,o]:l.push(o)}}},t}()})),a.register("4MjWZ",(function(e,n){t(e.exports,"summarizeDimensions",(()=>s)),t(e.exports,"getDimensionTypeByAxis",(()=>u));var i=a("2FIaD"),r=a("1tAq5"),o=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function s(t,e){var n={},a=n.encode={},s=(0,i.createHashMap)(),u=[],c=[],h={};(0,i.each)(t.dimensions,(function(e){var n,i=t.getDimensionInfo(e),o=i.coordDim;if(o){var d=i.coordDimIndex;l(a,o)[d]=e,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(u[0]=e),l(h,o)[d]=t.getDimensionIndex(i.name)),i.defaultTooltip&&c.push(e)}r.VISUAL_DIMENSIONS.each((function(t,e){var n=l(a,e),r=i.otherDims[e];null!=r&&!1!==r&&(n[r]=i.name)}))}));var d=[],p={};s.each((function(t,e){var n=a[e];p[e]=n[0],d=d.concat(n)})),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=(0,i.map)(d,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=p;var f=a.label;f&&f.length&&(u=f.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=u.slice()),a.defaultedLabel=u,a.defaultedTooltip=c,n.userOutput=new o(h,e),n}function l(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function u(t){return"category"===t?"ordinal":"time"===t?"time":"float"}})),a.register("cItdr",(function(e,n){t(e.exports,"default",(()=>r));var i=a("2FIaD"),r=function(t){this.otherDims={},null!=t&&i.extend(this,t)}})),a.register("24RqC",(function(e,n){t(e.exports,"SeriesDataSchema",(()=>u)),t(e.exports,"ensureSourceDimNameMap",(()=>d)),t(e.exports,"shouldOmitUnusedDimensions",(()=>p)),t(e.exports,"isSeriesDataSchema",(()=>c)),t(e.exports,"createDimNameMap",(()=>h));var i=a("2FIaD"),r=a("2LuwV"),o=a("bNRWu"),s=(0,r.makeInner)(),l={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=d(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,i.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=(0,o.shouldRetrieveDataByName)(this.source),n=!p(t),i="",r=[],a=0,s=0;a<t;a++){var u=void 0,c=void 0,h=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===a)u=e?d.name:null,c=d.type,h=d.ordinalMeta,s++;else{var f=this.getSourceDimension(a);f&&(u=e?f.name:null,c=f.type)}r.push({property:u,type:c,ordinalMeta:h}),!e||null==u||d&&d.isCalculationCoord||(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=l[c]||"f",h&&(i+=h.uid),i+="$"}var g=this.source;return{dimensions:r,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var a=this.getSourceDimension(e);a&&(i=a.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function c(t){return t instanceof u}function h(t){for(var e=(0,i.createHashMap)(),n=0;n<(t||[]).length;n++){var r=t[n],a=(0,i.isObject)(r)?r.name:r;null!=a&&null==e.get(a)&&e.set(a,n)}return e}function d(t){var e=s(t);return e.dimNameMap||(e.dimNameMap=h(t.dimensionsDefine))}function p(t){return t>30}})),a.register("aieqh",(function(e,n){t(e.exports,"createList",(()=>h)),t(e.exports,"dataStack",(()=>d)),t(e.exports,"createScale",(()=>p)),t(e.exports,"mixinAxisModelCommonMethods",(()=>f)),t(e.exports,"createTextStyle",(()=>g)),t(e.exports,"getLayoutRect",(()=>a("3Q8SW").getLayoutRect)),t(e.exports,"createDimensions",(()=>a("8QwAx").createDimensions)),t(e.exports,"createSymbol",(()=>a("2ZiWs").createSymbol)),t(e.exports,"getECData",(()=>a("5v9xk").getECData)),t(e.exports,"enableHoverEmphasis",(()=>a("4lzC1").enableHoverEmphasis));var i=a("2FIaD"),r=a("4TZPm"),o=a("37xup"),s=a("7J1ai"),l=a("9xTlQ"),u=(a("3Q8SW"),a("lSDa3")),c=(a("5v9xk"),a("c3Bep"));function h(t){return(0,r.default)(null,t)}a("8QwAx"),a("2ZiWs"),a("4lzC1");var d={isDimensionStacked:u.isDimensionStacked,enableDataStack:u.enableDataStack,getStackedDimension:u.getStackedDimension};function p(t,e){var n=e;e instanceof l.default||(n=new(0,l.default)(e));var i=o.createScaleByModel(n);return i.setExtent(t[0],t[1]),o.niceScaleExtent(i,n),i}function f(t){i.mixin(t,s.AxisModelCommonMixin)}function g(t,e){return e=e||{},(0,c.createTextStyle)(t,null,null,"normal"!==e.state)}})),a.register("4TZPm",(function(e,n){t(e.exports,"default",(()=>g));var i=a("2FIaD"),r=a("hpTXA"),o=a("8QwAx"),s=a("4MjWZ"),l=a("2LuwV"),u=a("fbRBA"),c=a("csz29"),h=a("bNRWu"),d=a("lSDa3"),p=a("39jKu"),f=a("1tAq5"),g=function(t,e,n){n=n||{};var a,g=e.getSourceManager(),y=!1;t?(y=!0,a=(0,h.createSourceFromSeriesDataOption)(t)):y=(a=g.getSource()).sourceFormat===f.SOURCE_FORMAT_ORIGINAL;var m=(0,c.getCoordSysInfoBySeries)(e),v=function(t,e){var n,r=t.get("coordinateSystem"),a=u.default.get(r);return e&&e.coordSysDims&&(n=i.map(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=(0,s.getDimensionTypeByAxis)(r)}return n}))),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(e,m),x=n.useEncodeDefaulter,_=i.isFunction(x)?x:x?i.curry(p.makeSeriesEncodeForAxisCoordSys,v,e):null,b={coordDimensions:v,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:_,canOmitUnusedDimensions:!y},S=(0,o.default)(a,b),C=function(t,e,n){var r,a;return n&&i.each(t,(function(t,i){var o=t.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(a=!0)})),a||null==r||(t[r].otherDims.itemName=0),r}(S.dimensions,n.createInvertedIndices,m),w=y?null:g.getSharedDataStore(S),M=(0,d.enableDataStack)(e,{schema:S,store:w}),I=new(0,r.default)(S,e);I.setCalculationInfo(M);var T=null!=C&&function(t){if(t.sourceFormat===f.SOURCE_FORMAT_ORIGINAL){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!i.isArray((0,l.getDataItemValue)(e))}}(a)?function(t,e,n,i){return i===C?n:this.defaultDimValueGetter(t,e,n,i)}:null;return I.hasItemOption=!1,I.initData(y?a:w,null,T),I}})),a.register("8QwAx",(function(e,n){t(e.exports,"createDimensions",(()=>d)),t(e.exports,"default",(()=>p));var i=a("1tAq5"),r=a("cItdr"),o=a("2FIaD"),s=a("bNRWu"),l=a("5WOD9"),u=a("2LuwV"),c=a("39jKu"),h=a("24RqC");function d(t,e){return p(t,e).dimensions}function p(t,e){(0,s.isSourceInstance)(t)||(t=(0,s.createSourceFromSeriesDataOption)(t));var n=(e=e||{}).coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],d=(0,o.createHashMap)(),p=[],g=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return(0,o.each)(e,(function(t){var e;(0,o.isObject)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,a,e.dimensionsCount),y=e.canOmitUnusedDimensions&&(0,h.shouldOmitUnusedDimensions)(g),m=a===t.dimensionsDefine,v=m?(0,h.ensureSourceDimNameMap)(t):(0,h.createDimNameMap)(a),x=e.encodeDefine;!x&&e.encodeDefaulter&&(x=e.encodeDefaulter(t,g));for(var _=(0,o.createHashMap)(x),b=new(0,l.CtorInt32Array)(g),S=0;S<b.length;S++)b[S]=-1;function C(t){var e=b[t];if(e<0){var n=a[t],i=(0,o.isObject)(n)?n:{name:n},s=new(0,r.default),l=i.name;null!=l&&null!=v.get(l)&&(s.name=s.displayName=l),null!=i.type&&(s.type=i.type),null!=i.displayName&&(s.displayName=i.displayName);var u=p.length;return b[t]=u,s.storeDimIndex=t,p.push(s),s}return p[e]}if(!y)for(S=0;S<g;S++)C(S);_.each((function(t,e){var n=(0,u.normalizeToArray)(t).slice();if(1===n.length&&!(0,o.isString)(n[0])&&n[0]<0)_.set(e,!1);else{var i=_.set(e,[]);(0,o.each)(n,(function(t,n){var r=(0,o.isString)(t)?v.get(t):t;null!=r&&r<g&&(i[n]=r,M(C(r),e,n))}))}}));var w=0;function M(t,e,n){null!=i.VISUAL_DIMENSIONS.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,d.set(e,!0))}(0,o.each)(n,(function(t){var e,n,i,r;if((0,o.isString)(t))e=t,r={};else{e=(r=t).name;var a=r.ordinalMeta;r.ordinalMeta=null,(r=(0,o.extend)({},r)).ordinalMeta=a,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=_.get(e);if(!1!==s){if(!(s=(0,u.normalizeToArray)(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;w<g&&null!=C(w).coordDim;)w++;w<g&&s.push(w++)}(0,o.each)(s,(function(t,a){var s=C(t);if(m&&null!=r.type&&(s.type=r.type),M((0,o.defaults)(s,r),e,a),null==s.name&&n){var l=n[a];!(0,o.isObject)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&(0,o.defaults)(s.otherDims,i)}))}}));var I=e.generateCoord,T=e.generateCoordCount,A=null!=T;T=I?T||1:0;var D=I||"value";function L(t){null==t.name&&(t.name=t.coordDim)}if(y)(0,o.each)(p,(function(t){L(t)})),p.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var k=0;k<g;k++){var O=C(k);null==O.coordDim&&(O.coordDim=f(D,d,A),O.coordDimIndex=0,(!I||T<=0)&&(O.isExtraCoord=!0),T--),L(O),null!=O.type||(0,c.guessOrdinal)(t,k)!==c.BE_ORDINAL.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return function(t){for(var e=(0,o.createHashMap)(),n=0;n<t.length;n++){var i=t[n],r=i.name,a=e.get(r)||0;a>0&&(i.name=r+(a-1)),a++,e.set(r,a)}}(p),new(0,h.SeriesDataSchema)({source:t,dimensions:p,fullDimensionCount:g,dimensionOmitted:y})}function f(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}})),a.register("csz29",(function(e,n){t(e.exports,"getCoordSysInfoBySeries",(()=>s));var i=a("2FIaD"),r=a("2LuwV"),o=function(t){this.coordSysDims=[],this.axisMap=(0,i.createHashMap)(),this.categoryAxisMap=(0,i.createHashMap)(),this.coordSysName=t};function s(t){var e=t.get("coordinateSystem"),n=new o(e),i=l[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var l={cartesian2d:function(t,e,n,i){var a=t.getReferringComponents("xAxis",r.SINGLE_REFERRING).models[0],o=t.getReferringComponents("yAxis",r.SINGLE_REFERRING).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",o),u(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),u(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var a=t.getReferringComponents("singleAxis",r.SINGLE_REFERRING).models[0];e.coordSysDims=["single"],n.set("single",a),u(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var a=t.getReferringComponents("polar",r.SINGLE_REFERRING).models[0],o=a.findAxisModel("radiusAxis"),s=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",s),u(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),u(s)&&(i.set("angle",s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();(0,i.each)(o.parallelAxisIndex,(function(t,i){var o=a.getComponent("parallelAxis",t),l=s[i];n.set(l,o),u(o)&&(r.set(l,o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))}))}};function u(t){return"category"===t.get("type")}})),a.register("lSDa3",(function(e,n){t(e.exports,"enableDataStack",(()=>o)),t(e.exports,"isDimensionStacked",(()=>s)),t(e.exports,"getStackedDimension",(()=>l));var i=a("2FIaD"),r=a("24RqC");function o(t,e,n){var a,o,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(t){return!(0,r.isSeriesDataSchema)(t.schema)}(e)?(o=e.schema,a=o.dimensions,s=e.store):a=e;var c,h,d,p,f=!(!t||!t.get("stack"));if((0,i.each)(a,(function(t,e){(0,i.isString)(t)&&(a[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))})),!h||l||c||(l=!0),h){d="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,y=h.type,m=0;(0,i.each)(a,(function(t){t.coordDim===g&&m++}));var v={name:d,coordDim:g,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:p,coordDim:p,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(p,y),x.storeDimIndex=s.ensureCalculationDimension(d,y)),o.appendCalculationDimension(v),o.appendCalculationDimension(x)):(a.push(v),a.push(x))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:p,stackResultDimension:d}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}})),a.register("37xup",(function(e,n){t(e.exports,"getScaleExtent",(()=>f)),t(e.exports,"niceScaleExtent",(()=>g)),t(e.exports,"createScaleByModel",(()=>y)),t(e.exports,"ifAxisCrossZero",(()=>m)),t(e.exports,"makeLabelFormatter",(()=>v)),t(e.exports,"getAxisRawValue",(()=>x)),t(e.exports,"estimateLabelUnionRect",(()=>_)),t(e.exports,"getOptionCategoryInterval",(()=>b)),t(e.exports,"shouldShowAllLabels",(()=>S)),t(e.exports,"getDataDimensionsOnAxis",(()=>C)),t(e.exports,"unionAxisExtentFromData",(()=>w));var i=a("2FIaD"),r=a("hTGbR"),o=a("bMR4E"),s=a("8pDmQ"),l=a("hRFEi"),u=a("lV62k"),c=a("66ngc"),h=a("16fdz"),d=a("lSDa3"),p=a("1y4SD");function f(t,e){var n=t.type,r=(0,p.ensureScaleRawExtentInfo)(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,o=r.max,s=e.ecModel;if(s&&"time"===n){var u=(0,l.prepareLayoutBarSeries)("bar",s),c=!1;if(i.each(u,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var h=(0,l.makeColumnLayout)(u),d=function(t,e,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],s=(0,l.retrieveColumnLayout)(r,n.axis);if(void 0===s)return{min:t,max:e};var u=1/0;i.each(s,(function(t){u=Math.min(t.offset,u)}));var c=-1/0;i.each(s,(function(t){c=Math.max(t.offset+t.width,c)})),u=Math.abs(u),c=Math.abs(c);var h=u+c,d=e-t,p=d/(1-(u+c)/o)-d;return{min:t-=p*(u/h),max:e+=p*(c/h)}}(a,o,e,h);a=d.min,o=d.max}}return{extent:[a,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function g(t,e){var n=e,i=f(t,n),r=i.extent,a=n.get("splitNumber");t instanceof h.default&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),l="interval"===o||"time"===o;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function y(t,e){if(e=e||t.get("type"))switch(e){case"category":return new(0,r.default)({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new(0,c.default)({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(s.default.getClass(e)||o.default)}}function m(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function v(t){var e,n,r=t.getLabelModel().get("formatter"),a="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):i.isString(r)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(r):i.isFunction(r)?(e=r,function(n,i){return null!=a&&(i=n.value-a),e(x(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function x(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function _(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,a,o=n.getExtent();a=n instanceof r.default?n.count():(i=n.getTicks()).length;var s,l,c,h,d,p,f,g=t.getLabelModel(),y=v(t),m=1;a>40&&(m=Math.ceil(a/40));for(var x=0;x<a;x+=m){var _=y(i?i[x]:{value:o[0]+x},x),b=(l=g.getTextRect(_),void 0,void 0,void 0,void 0,void 0,c=(g.get("rotate")||0)*Math.PI/180,h=l.width,d=l.height,p=h*Math.abs(Math.cos(c))+Math.abs(d*Math.sin(c)),f=h*Math.abs(Math.sin(c))+Math.abs(d*Math.cos(c)),new(0,u.default)(l.x,l.y,p,f));s?s.union(b):s=b}return s}}function b(t){var e=t.get("interval");return null==e?"auto":e}function S(t){return"category"===t.type&&0===b(t.getLabelModel())}function C(t,e){var n={};return i.each(t.mapDimensionsAll(e),(function(e){n[(0,d.getStackedDimension)(t,e)]=!0})),i.keys(n)}function w(t,e,n){e&&i.each(C(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}})),a.register("hTGbR",(function(e,n){t(e.exports,"default",(()=>c));var i=a("lCvKW"),r=a("8pDmQ"),o=a("jWrbf"),s=a("4y2gb"),l=a("2FIaD"),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new(0,o.default)({})),(0,l.isArray)(i)&&(i=new(0,o.default)({categories:(0,l.map)(i,(function(t){return(0,l.isObject)(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,i.__extends)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,l.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),s.contain(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),s.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(s.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,a=this._ordinalMeta.categories.length,o=Math.min(a,e.length);r<o;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<a;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r.default);r.default.registerClass(u);var c=u})),a.register("8pDmQ",(function(e,n){t(e.exports,"default",(()=>o));var i=a("fN7Ut"),r=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i.enableClassManagement(r);var o=r})),a.register("jWrbf",(function(e,n){t(e.exports,"default",(()=>s));var i=a("2FIaD"),r=0;function o(t){return(0,i.isObject)(t)&&null!=t.value?t.value:t+""}var s=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&(0,i.map)(r,o);return new t({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!(0,i.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.createHashMap)(this.categories))},t}()})),a.register("4y2gb",(function(e,n){t(e.exports,"isIntervalOrLogScale",(()=>r)),t(e.exports,"intervalScaleNiceTicks",(()=>o)),t(e.exports,"getIntervalPrecision",(()=>l)),t(e.exports,"increaseInterval",(()=>s)),t(e.exports,"contain",(()=>c)),t(e.exports,"normalize",(()=>h)),t(e.exports,"scale",(()=>d));var i=a("lcKsG");function r(t){return"interval"===t.type||"log"===t.type}function o(t,e,n,r){var a={},o=t[1]-t[0],s=a.interval=(0,i.nice)(o/e,!0);null!=n&&s<n&&(s=a.interval=n),null!=r&&s>r&&(s=a.interval=r);var c=a.intervalPrecision=l(s);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),u(t,0,e),u(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(a.niceTickExtent=[(0,i.round)(Math.ceil(t[0]/s)*s,c),(0,i.round)(Math.floor(t[1]/s)*s,c)],t),a}function s(t){var e=Math.pow(10,(0,i.quantityExponent)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.round)(n*e)}function l(t){return(0,i.getPrecision)(t)+2}function u(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(t,e){return t>=e[0]&&t<=e[1]}function h(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function d(t,e){return t*(e[1]-e[0])+e[0]}})),a.register("bMR4E",(function(e,n){t(e.exports,"default",(()=>h));var i=a("lCvKW"),r=a("lcKsG"),o=a("bZ9NN"),s=a("8pDmQ"),l=a("4y2gb"),u=r.round,c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,i.__extends)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return l.contain(t,this._extent)},e.prototype.normalize=function(t){return l.normalize(t,this._extent)},e.prototype.scale=function(t){return l.scale(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=l.getIntervalPrecision(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;n[0]<i[0]&&(t?a.push({value:u(i[0]-e,r)}):a.push({value:n[0]}));for(var o=i[0];o<=i[1]&&(a.push({value:o}),(o=u(o+e,r))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:i[1];return n[1]>s&&(t?a.push({value:u(s+e,r)}):a.push({value:n[1]})),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var a=e[r],o=e[r-1],s=0,l=[],c=(a.value-o.value)/t;s<t-1;){var h=u(o.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=r.getPrecision(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=u(t.value,n,!0);return o.addCommas(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=l.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=u(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=u(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(s.default);s.default.registerClass(c);var h=c})),a.register("hRFEi",(function(e,n){t(e.exports,"getLayoutOnAxis",(()=>d)),t(e.exports,"prepareLayoutBarSeries",(()=>p)),t(e.exports,"makeColumnLayout",(()=>f)),t(e.exports,"retrieveColumnLayout",(()=>y)),t(e.exports,"layout",(()=>m)),t(e.exports,"createProgressiveLayout",(()=>v));var i=a("2FIaD"),r=a("lcKsG"),o=a("lSDa3"),s=a("h8Fzm"),l=a("7fjeP"),u="__ec_stack_";function c(t){return t.get("stack")||u+t.seriesIndex}function h(t){return t.dim+t.index}function d(t){var e=[],n=t.axis;if("category"===n.type){for(var r=n.getBandWidth(),a=0;a<t.count;a++)e.push((0,i.defaults)({bandWidth:r,axisKey:"axis0",stackId:u+a},t));var o=g(e),s=[];for(a=0;a<t.count;a++){var l=o.axis0[u+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function p(t,e){var n=[];return e.eachSeriesByType(t,(function(t){x(t)&&n.push(t)})),n}function f(t){var e=function(t){var e={};(0,i.each)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,a=i.getDimensionIndex(i.mapDimension(n.dim)),o=i.getStore(),s=0,l=o.count();s<l;++s){var u=o.get(a,s);e[r]?e[r].push(u):e[r]=[u]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort((function(t,e){return t-e}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}n[r]=o}}return n}(t),n=[];return(0,i.each)(t,(function(t){var i,a=t.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],u=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=l?u/p*l:u}else{var f=t.getData();i=Math.abs(o[1]-o[0])/f.count()}var g=(0,r.parsePercent)(t.get("barWidth"),i),y=(0,r.parsePercent)(t.get("barMaxWidth"),i),m=(0,r.parsePercent)(t.get("barMinWidth")||(_(t)?.5:1),i),v=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:y,barMinWidth:m,barGap:v,barCategoryGap:x,axisKey:h(a),stackId:c(t)})})),g(n)}function g(t){var e={};(0,i.each)(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,a=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;e[i]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var c=t.barMinWidth;c&&(o[s].minWidth=c);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return(0,i.each)(e,(function(t,e){n[e]={};var a=t.stacks,o=t.bandWidth,s=t.categoryGap;if(null==s){var l=(0,i.keys)(a).length;s=Math.max(35-4*l,15)+"%"}var u=(0,r.parsePercent)(s,o),c=(0,r.parsePercent)(t.gap,1),h=t.remainedWidth,d=t.autoWidthCount,p=(h-u)/(d+(d-1)*c);p=Math.max(p,0),(0,i.each)(a,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,h-=i+c*i,d--;else{var i=p;e&&e<i&&(i=Math.min(e,h)),n&&n>i&&(i=n),i!==p&&(t.width=i,h-=i+c*i,d--)}})),p=(h-u)/(d+(d-1)*c),p=Math.max(p,0);var f,g=0;(0,i.each)(a,(function(t,e){t.width||(t.width=p),f=t,g+=t.width*(1+c)})),f&&(g-=f.width*c);var y=-g/2;(0,i.each)(a,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:y,width:t.width},y+=t.width*(1+c)}))})),n}function y(t,e,n){if(t&&e){var i=t[h(e)];return null!=i&&null!=n?i[c(n)]:i}}function m(t,e){var n=p(t,e),r=f(n);(0,i.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=c(t),a=r[h(n)][i],o=a.offset,s=a.width;e.setLayout({bandWidth:a.bandWidth,offset:o,size:s})}))}function v(t){return{seriesType:t,plan:(0,s.default)(),reset:function(t){if(x(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),c=e.mapDimension(r.dim),h=e.getCalculationInfo("stackResultDimension"),d=(0,o.isDimensionStacked)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),f=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),g=_(t),y=t.get("barMinHeight")||0,m=h&&e.getDimensionIndex(h),v=e.getLayout("size"),b=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,o=g&&(0,l.createFloat32Array)(3*r),c=g&&u&&(0,l.createFloat32Array)(3*r),h=g&&(0,l.createFloat32Array)(r),x=n.master.getRect(),_=p?x.width:x.height,S=e.getStore(),C=0;null!=(i=t.next());){var w=S.get(d?m:a,i),M=S.get(s,i),I=f,T=void 0;d&&(T=+w-S.get(a,i));var A=void 0,D=void 0,L=void 0,k=void 0;if(p){var O=n.dataToPoint([w,M]);d&&(I=n.dataToPoint([T,M])[0]),A=I,D=O[1]+b,L=O[0]-I,k=v,Math.abs(L)<y&&(L=(L<0?-1:1)*y)}else O=n.dataToPoint([M,w]),d&&(I=n.dataToPoint([M,T])[1]),A=O[0]+b,D=I,L=v,k=O[1]-I,Math.abs(k)<y&&(k=(k<=0?-1:1)*y);g?(o[C]=A,o[C+1]=D,o[C+2]=p?L:k,c&&(c[C]=p?x.x:A,c[C+1]=p?D:x.y,c[C+2]=_),h[i]=i):e.setItemLayout(i,{x:A,y:D,width:L,height:k}),C+=3}g&&e.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function x(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function _(t){return t.pipelineContext&&t.pipelineContext.large}})),a.register("7fjeP",(function(e,n){t(e.exports,"createFloat32Array",(()=>s));var i=a("2FIaD"),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function s(t){return(0,i.isArray)(t)?r?new Float32Array(t):t:new o(t)}})),a.register("66ngc",(function(e,n){t(e.exports,"default",(()=>x));var i=a("lCvKW"),r=a("lcKsG"),o=a("aXh1w"),s=a("4y2gb"),l=a("bMR4E"),u=a("8pDmQ"),c=a("2FIaD"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,i.__extends)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,o.format)(t.value,o.fullLeveledFormatter[(0,o.getDefaultFormatPrecisionOfInterval)((0,o.getPrimaryTimeUnit)(this._minLevelUnit))]||o.fullLeveledFormatter.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,o.leveledFormat)(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),a=function(t,e,n,i){var a=o.timeUnits,s=0;function l(t,e,n,r,a,o,s){for(var l=new Date(e),u=e,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=t,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}function u(t,a,s){var u=[],c=!a.length;if(!function(t,e,n,i){var a=r.parseDate(e),s=r.parseDate(n),l=function(t){return(0,o.getUnitValue)(a,t,i)===(0,o.getUnitValue)(s,t,i)},u=function(){return l("year")},c=function(){return u()&&l("month")},h=function(){return c()&&l("day")},d=function(){return h()&&l("hour")},p=function(){return d()&&l("minute")},f=function(){return p()&&l("second")};switch(t){case"year":return u();case"month":return c();case"day":return h();case"hour":return d();case"minute":return p();case"second":return f();case"millisecond":return f()&&l("millisecond")}}((0,o.getPrimaryTimeUnit)(t),i[0],i[1],n)){c&&(a=[{value:v(new Date(i[0]),t,n)},{value:i[1]}]);for(var h=0;h<a.length-1;h++){var d=a[h].value,x=a[h+1].value;if(d!==x){var _=void 0,b=void 0,S=void 0;switch(t){case"year":_=Math.max(1,Math.round(e/o.ONE_DAY/365)),b=(0,o.fullYearGetterName)(n),S=(0,o.fullYearSetterName)(n);break;case"half-year":case"quarter":case"month":_=f(e),b=(0,o.monthGetterName)(n),S=(0,o.monthSetterName)(n);break;case"week":case"half-week":case"day":_=p(e,31),b=(0,o.dateGetterName)(n),S=(0,o.dateSetterName)(n),!0;break;case"half-day":case"quarter-day":case"hour":_=g(e),b=(0,o.hoursGetterName)(n),S=(0,o.hoursSetterName)(n);break;case"minute":_=y(e,!0),b=(0,o.minutesGetterName)(n),S=(0,o.minutesSetterName)(n);break;case"second":_=y(e,!1),b=(0,o.secondsGetterName)(n),S=(0,o.secondsSetterName)(n);break;case"millisecond":_=m(e),b=(0,o.millisecondsGetterName)(n),S=(0,o.millisecondsSetterName)(n)}l(_,d,x,b,S,0,u),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h<u.length;h++)s.push(u[h]);return u}}for(var h=[],d=[],x=0,_=0,b=0;b<a.length&&s++<1e4;++b){var S=(0,o.getPrimaryTimeUnit)(a[b]);if((0,o.isPrimaryTimeUnit)(a[b])&&(u(a[b],h[h.length-1]||[],d),S!==(a[b+1]?(0,o.getPrimaryTimeUnit)(a[b+1]):null))){if(d.length){_=x,d.sort((function(t,e){return t.value-e.value}));for(var C=[],w=0;w<d.length;++w){var M=d[w].value;0!==w&&d[w-1].value===M||(C.push(d[w]),M>=i[0]&&M<=i[1]&&x++)}var I=(i[1]-i[0])/e;if(x>1.5*I&&_>I/1.5)break;if(h.push(C),x>I||t===a[b])break}d=[]}}var T=(0,c.filter)((0,c.map)(h,(function(t){return(0,c.filter)(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),A=[],D=T.length-1;for(b=0;b<T.length;++b)for(var L=T[b],k=0;k<L.length;++k)A.push({value:L[k].value,level:D-b});A.sort((function(t,e){return t.value-e.value}));var O=[];for(b=0;b<A.length;++b)0!==b&&A[b].value===A[b-1].value||O.push(A[b]);return O}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(a)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o.ONE_DAY,e[1]+=o.ONE_DAY),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-o.ONE_DAY}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=d.length,o=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(d,this._approxInterval,0,a),a-1);this._interval=d[o][1],this._minLevelUnit=d[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return(0,c.isNumber)(t)?t:+r.parseDate(t)},e.prototype.contain=function(t){return s.contain(this.parse(t),this._extent)},e.prototype.normalize=function(t){return s.normalize(this.parse(t),this._extent)},e.prototype.scale=function(t){return s.scale(t,this._extent)},e.type="time",e}(l.default),d=[["second",o.ONE_SECOND],["minute",o.ONE_MINUTE],["hour",o.ONE_HOUR],["quarter-day",6*o.ONE_HOUR],["half-day",12*o.ONE_HOUR],["day",1.2*o.ONE_DAY],["half-week",3.5*o.ONE_DAY],["week",7*o.ONE_DAY],["month",31*o.ONE_DAY],["quarter",95*o.ONE_DAY],["half-year",o.ONE_YEAR/2],["year",o.ONE_YEAR]];function p(t,e){return(t/=o.ONE_DAY)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function f(t){return(t/=30*o.ONE_DAY)>6?6:t>3?3:t>2?2:1}function g(t){return(t/=o.ONE_HOUR)>12?12:t>6?6:t>3.5?4:t>2?2:1}function y(t,e){return(t/=e?o.ONE_MINUTE:o.ONE_SECOND)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function m(t){return r.nice(t,!0)}function v(t,e,n){var i=new Date(t);switch((0,o.getPrimaryTimeUnit)(e)){case"year":case"month":i[(0,o.monthSetterName)(n)](0);case"day":i[(0,o.dateSetterName)(n)](1);case"hour":i[(0,o.hoursSetterName)(n)](0);case"minute":i[(0,o.minutesSetterName)(n)](0);case"second":i[(0,o.secondsSetterName)(n)](0),i[(0,o.millisecondsSetterName)(n)](0)}return i.getTime()}u.default.registerClass(h);var x=h})),a.register("16fdz",(function(e,n){t(e.exports,"default",(()=>_));var i=a("lCvKW"),r=a("2FIaD"),o=a("8pDmQ"),s=a("lcKsG"),l=a("4y2gb"),u=a("bMR4E"),c=o.default.prototype,h=u.default.prototype,d=s.round,p=Math.floor,f=Math.ceil,g=Math.pow,y=Math.log,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new(0,u.default),e._interval=0,e}return(0,i.__extends)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),a=h.getTicks.call(this,t);return r.map(a,(function(t){var e=t.value,r=s.round(g(this.base,e));return r=e===n[0]&&this._fixMin?x(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?x(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=y(this.base);t=y(Math.max(0,t))/n,e=y(Math.max(0,e))/n,h.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=c.getExtent.call(this);e[0]=g(t,e[0]),e[1]=g(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=x(e[0],n[0])),this._fixMax&&(e[1]=x(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=y(t[0])/y(e),t[1]=y(t[1])/y(e),c.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=s.quantity(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[s.round(f(e[0]/i)*i),s.round(p(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){h.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=y(t)/y(this.base),l.contain(t,this._extent)},e.prototype.normalize=function(t){return t=y(t)/y(this.base),l.normalize(t,this._extent)},e.prototype.scale=function(t){return t=l.scale(t,this._extent),g(this.base,t)},e.type="log",e}(o.default),v=m.prototype;function x(t,e){return d(t,s.getPrecision(e))}v.getMinorTicks=h.getMinorTicks,v.getLabel=h.getLabel,o.default.registerClass(m);var _=m})),a.register("1y4SD",(function(e,n){t(e.exports,"ensureScaleRawExtentInfo",(()=>u));var i=a("2FIaD"),r=a("bv5ZD"),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);(0,i.isFunction)(o)?this._modelMinNum=c(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=c(t,o));var s=this._modelMaxRaw=e.get("max",!0);if((0,i.isFunction)(s)?this._modelMaxNum=c(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=c(t,s)),a)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=(0,i.isArray)(l)?l:[l||0,l||0];"boolean"==typeof u[0]||"boolean"==typeof u[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.parsePercent)(u[0],1),(0,r.parsePercent)(u[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?r?0:NaN:e-a[0]*o),null==l&&(l=t?r?r-1:NaN:n+a[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,i.eqNaN)(s)||(0,i.eqNaN)(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(s=d,u=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[l[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[s[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),s={min:"_determinedMin",max:"_determinedMax"},l={min:"_dataMin",max:"_dataMax"};function u(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i,i)}function c(t,e){return null==e?null:(0,i.eqNaN)(e)?NaN:t.parse(e)}})),a.register("7J1ai",(function(e,n){t(e.exports,"AxisModelCommonMixin",(()=>i));var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()})),a.register("kyrfh",(function(e,n){t(e.exports,"use",(()=>f));var i=a("cATUV"),r=a("2UHy9"),o=a("3dZ3l"),s=a("eWRYv"),l=a("gGiC4"),u=a("2FIaD"),c=a("6EE21"),h=a("deUmu"),d=[],p={registerPreprocessor:i.registerPreprocessor,registerProcessor:i.registerProcessor,registerPostInit:i.registerPostInit,registerPostUpdate:i.registerPostUpdate,registerUpdateLifecycle:i.registerUpdateLifecycle,registerAction:i.registerAction,registerCoordinateSystem:i.registerCoordinateSystem,registerLayout:i.registerLayout,registerVisual:i.registerVisual,registerTransform:i.registerTransform,registerLoading:i.registerLoading,registerMap:i.registerMap,registerImpl:c.registerImpl,PRIORITY:i.PRIORITY,ComponentModel:s.default,ComponentView:r.default,SeriesModel:l.default,ChartView:o.default,registerComponentModel:function(t){s.default.registerClass(t)},registerComponentView:function(t){r.default.registerClass(t)},registerSeriesModel:function(t){l.default.registerClass(t)},registerChartView:function(t){o.default.registerClass(t)},registerSubTypeDefaulter:function(t,e){s.default.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,h.registerPainter)(t,e)}};function f(t){(0,u.isArray)(t)?(0,u.each)(t,(function(t){f(t)})):(0,u.indexOf)(d,t)>=0||(d.push(t),(0,u.isFunction)(t)&&(t={install:t}),t.install(p))}})),a.register("m2aWg",(function(e,n){t(e.exports,"default",(()=>l));var i=a("2FIaD"),r=a("j9XHC");function o(t,e,n){for(var i=0;i<t.length;i++)t[i]=s(t[i],e[i],n)}function s(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,a=l+=a,i.push([s/n,l/n])}return i}function l(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return i.each(r,(function(t){var e=t.geometry,r=e.encodeOffsets,a=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=s(a,r,n);break;case"Polygon":case"MultiLineString":o(a,r,n);break;case"MultiPolygon":i.each(a,(function(t,e){return o(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,a=t.geometry,o=[];switch(a.type){case"Polygon":var s=a.coordinates;o.push(new(0,r.GeoJSONPolygonGeometry)(s[0],s.slice(1)));break;case"MultiPolygon":i.each(a.coordinates,(function(t){t[0]&&o.push(new(0,r.GeoJSONPolygonGeometry)(t[0],t.slice(1)))}));break;case"LineString":o.push(new(0,r.GeoJSONLineStringGeometry)([a.coordinates]));break;case"MultiLineString":o.push(new(0,r.GeoJSONLineStringGeometry)(a.coordinates))}var l=new(0,r.GeoJSONRegion)(n[e||"name"],o,n.cp);return l.properties=n,l}))}})),a.register("j9XHC",(function(e,n){t(e.exports,"GeoJSONPolygonGeometry",(()=>f)),t(e.exports,"GeoJSONLineStringGeometry",(()=>g)),t(e.exports,"GeoJSONRegion",(()=>y)),t(e.exports,"GeoSVGRegion",(()=>m));var i=a("lCvKW"),r=a("lV62k"),o=a("jkyg0"),s=a("4qDSQ"),l=a("0445l"),u=a("2FIaD"),c=[];function h(t,e){for(var n=0;n<t.length;n++)o.applyTransform(t[n],t[n],e)}function d(t,e,n,i){for(var r=0;r<t.length;r++){var a=t[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(o.min(e,e,a),o.max(n,n,a))}}var p=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),f=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},g=function(t){this.type="linestring",this.points=t},y=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,i.__extends)(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],a=r.exterior,o=a&&a.length;o>n&&(t=r,n=o)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,a=t[r-1][0],o=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,n+=(a+l)*c,i+=(o+u)*c,a=l,o=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],a=this.geometries;return(0,u.each)(a,(function(e){"polygon"===e.type?d(e.exterior,n,i,t):(0,u.each)(e.points,(function(e){d(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new(0,r.default)(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var a=n[i];if("polygon"===a.type){var o=a.exterior,l=a.interiors;if(s.contain(o,t[0],t[1])){for(var u=0;u<(l?l.length:0);u++)if(s.contain(l[u],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var a=this.getBoundingRect(),o=a.width/a.height;n?i||(i=n/o):n=o*i;for(var s=new(0,r.default)(t,e,n,i),l=a.calculateTransform(s),c=this.geometries,d=0;d<c.length;d++){var p=c[d];"polygon"===p.type?(h(p.exterior,l),(0,u.each)(p.interiors,(function(t){h(t,l)}))):(0,u.each)(p.points,(function(t){h(t,l)}))}(a=this._rect).copy(s),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(p),m=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,i.__extends)(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=l.identity(c),r=t;r&&!r.isGeoSVGGraphicRoot;)l.mul(i,r.getLocalTransform(),i),r=r.parent;return l.invert(i,i),o.applyTransform(n,n,i),n},e}(p)})),a.register("4qDSQ",(function(e,n){t(e.exports,"contain",(()=>o));var i=a("8xAKP");function r(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var a=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];a+=(0,i.default)(o[0],o[1],l[0],l[1],e,n),o=l}var u=t[0];return r(o[0],u[0])&&r(o[1],u[1])||(a+=(0,i.default)(o[0],o[1],u[0],u[1],e,n)),0!==a}})),a.register("68oIq",(function(e,n){t(e.exports,"linearMap",(()=>a("lcKsG").linearMap)),t(e.exports,"round",(()=>a("lcKsG").round)),t(e.exports,"asc",(()=>a("lcKsG").asc)),t(e.exports,"getPrecision",(()=>a("lcKsG").getPrecision)),t(e.exports,"getPrecisionSafe",(()=>a("lcKsG").getPrecisionSafe)),t(e.exports,"getPixelPrecision",(()=>a("lcKsG").getPixelPrecision)),t(e.exports,"getPercentWithPrecision",(()=>a("lcKsG").getPercentWithPrecision)),t(e.exports,"MAX_SAFE_INTEGER",(()=>a("lcKsG").MAX_SAFE_INTEGER)),t(e.exports,"remRadian",(()=>a("lcKsG").remRadian)),t(e.exports,"isRadianAroundZero",(()=>a("lcKsG").isRadianAroundZero)),t(e.exports,"parseDate",(()=>a("lcKsG").parseDate)),t(e.exports,"quantity",(()=>a("lcKsG").quantity)),t(e.exports,"quantityExponent",(()=>a("lcKsG").quantityExponent)),t(e.exports,"nice",(()=>a("lcKsG").nice)),t(e.exports,"quantile",(()=>a("lcKsG").quantile)),t(e.exports,"reformIntervals",(()=>a("lcKsG").reformIntervals)),t(e.exports,"isNumeric",(()=>a("lcKsG").isNumeric)),t(e.exports,"numericToNumber",(()=>a("lcKsG").numericToNumber)),a("lcKsG")})),a.register("5pdS6",(function(e,n){t(e.exports,"parse",(()=>a("lcKsG").parseDate)),t(e.exports,"format",(()=>a("aXh1w").format)),a("lcKsG"),a("aXh1w")})),a.register("ljBIR",(function(e,n){t(e.exports,"extendShape",(()=>a("dXBoT").extendShape)),t(e.exports,"extendPath",(()=>a("dXBoT").extendPath)),t(e.exports,"makePath",(()=>a("dXBoT").makePath)),t(e.exports,"makeImage",(()=>a("dXBoT").makeImage)),t(e.exports,"mergePath",(()=>a("dXBoT").mergePath)),t(e.exports,"resizePath",(()=>a("dXBoT").resizePath)),t(e.exports,"createIcon",(()=>a("dXBoT").createIcon)),t(e.exports,"updateProps",(()=>a("kJ7of").updateProps)),t(e.exports,"initProps",(()=>a("kJ7of").initProps)),t(e.exports,"getTransform",(()=>a("dXBoT").getTransform)),t(e.exports,"clipPointsByRect",(()=>a("dXBoT").clipPointsByRect)),t(e.exports,"clipRectByRect",(()=>a("dXBoT").clipRectByRect)),t(e.exports,"registerShape",(()=>a("dXBoT").registerShape)),t(e.exports,"getShapeClass",(()=>a("dXBoT").getShapeClass)),t(e.exports,"Group",(()=>a("2IUoL").default)),t(e.exports,"Image",(()=>a("kbAoh").default)),t(e.exports,"Text",(()=>a("jud7h").default)),t(e.exports,"Circle",(()=>a("1RKvJ").default)),t(e.exports,"Ellipse",(()=>a("46uXJ").default)),t(e.exports,"Sector",(()=>a("92sM9").default)),t(e.exports,"Ring",(()=>a("jBtAL").default)),t(e.exports,"Polygon",(()=>a("dVgap").default)),t(e.exports,"Polyline",(()=>a("fCBaM").default)),t(e.exports,"Rect",(()=>a("jKUgc").default)),t(e.exports,"Line",(()=>a("l0SnR").default)),t(e.exports,"BezierCurve",(()=>a("1IPNS").default)),t(e.exports,"Arc",(()=>a("hKSo9").default)),t(e.exports,"IncrementalDisplayable",(()=>a("l85SL").default)),t(e.exports,"CompoundPath",(()=>a("cmXBB").default)),t(e.exports,"LinearGradient",(()=>a("8BJkx").default)),t(e.exports,"RadialGradient",(()=>a("kcO1G").default)),t(e.exports,"BoundingRect",(()=>a("lV62k").default)),a("dXBoT"),a("kJ7of"),a("kbAoh"),a("1RKvJ"),a("46uXJ"),a("92sM9"),a("jBtAL"),a("dVgap"),a("fCBaM"),a("jKUgc"),a("l0SnR"),a("1IPNS"),a("hKSo9"),a("lV62k"),a("cmXBB"),a("2IUoL"),a("l85SL"),a("kJ7of"),a("8BJkx"),a("kcO1G"),a("jud7h")})),a.register("7FaTO",(function(e,n){t(e.exports,"addCommas",(()=>a("bZ9NN").addCommas)),t(e.exports,"toCamelCase",(()=>a("bZ9NN").toCamelCase)),t(e.exports,"normalizeCssArray",(()=>a("bZ9NN").normalizeCssArray)),t(e.exports,"encodeHTML",(()=>a("i1s7L").encodeHTML)),t(e.exports,"formatTpl",(()=>a("bZ9NN").formatTpl)),t(e.exports,"getTooltipMarker",(()=>a("bZ9NN").getTooltipMarker)),t(e.exports,"formatTime",(()=>a("bZ9NN").formatTime)),t(e.exports,"capitalFirst",(()=>a("bZ9NN").capitalFirst)),t(e.exports,"truncateText",(()=>a("l8RYh").truncateText)),t(e.exports,"getTextRect",(()=>a("j8gwn").getTextRect)),a("bZ9NN"),a("i1s7L"),a("j8gwn"),a("l8RYh")})),a.register("fi1vT",(function(e,n){t(e.exports,"map",(()=>a("2FIaD").map)),t(e.exports,"each",(()=>a("2FIaD").each)),t(e.exports,"indexOf",(()=>a("2FIaD").indexOf)),t(e.exports,"inherits",(()=>a("2FIaD").inherits)),t(e.exports,"reduce",(()=>a("2FIaD").reduce)),t(e.exports,"filter",(()=>a("2FIaD").filter)),t(e.exports,"bind",(()=>a("2FIaD").bind)),t(e.exports,"curry",(()=>a("2FIaD").curry)),t(e.exports,"isArray",(()=>a("2FIaD").isArray)),t(e.exports,"isString",(()=>a("2FIaD").isString)),t(e.exports,"isObject",(()=>a("2FIaD").isObject)),t(e.exports,"isFunction",(()=>a("2FIaD").isFunction)),t(e.exports,"extend",(()=>a("2FIaD").extend)),t(e.exports,"defaults",(()=>a("2FIaD").defaults)),t(e.exports,"clone",(()=>a("2FIaD").clone)),t(e.exports,"merge",(()=>a("2FIaD").merge)),a("2FIaD")})),a.register("z6R1J",(function(e,n){t(e.exports,"default",(()=>u));var i=a("2FIaD"),r=a("lcKsG"),o=a("9EcOE"),s=[0,1];function l(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var u=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,r.getPixelPrecision)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&l(n=n.slice(),i.count()),(0,r.linearMap)(t,s,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&l(n=n.slice(),i.count());var a=(0,r.linearMap)(t,n,s,e);return this.scale.scale(a)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=(0,o.createAxisTicks)(this,e).ticks,a=(0,i.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,a){var o=e.length;if(t.onBand&&!n&&o){var s,l,u=t.getExtent();if(1===o)e[0].coord=u[0],s=e[1]={coord:u[1]};else{var c=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/c;(0,i.each)(e,(function(t){t.coord-=h/2})),l=1+t.scale.getExtent()[1]-e[o-1].tickValue,s={coord:e[o-1].coord+h*l},e.push(s)}var d=u[0]>u[1];p(e[0].coord,u[0])&&(a?e[0].coord=u[0]:e.shift()),a&&p(u[0],e[0].coord)&&e.unshift({coord:u[0]}),p(u[1],s.coord)&&(a?s.coord=u[1]:e.pop()),a&&p(s.coord,u[1])&&e.push({coord:u[1]})}function p(t,e){return t=(0,r.round)(t),e=(0,r.round)(e),d?t>e:t<e}}(this,a,e.get("alignWithLabel"),t.clamp),a},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,i.map)(e,(function(t){return(0,i.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return(0,o.createAxisLabels)(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return(0,o.calculateCategoryInterval)(this)},t}()})),a.register("9EcOE",(function(e,n){t(e.exports,"createAxisLabels",(()=>u)),t(e.exports,"createAxisTicks",(()=>c)),t(e.exports,"calculateCategoryInterval",(()=>g));var i=a("2FIaD"),r=a("bv5ZD"),o=a("2LuwV"),s=a("37xup"),l=(0,o.makeInner)();function u(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=h(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=(0,s.makeLabelFormatter)(t);return{labels:i.map(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function c(t,e){return"category"===t.type?function(t,e){var n,r,a=d(t,"ticks"),o=(0,s.getOptionCategoryInterval)(e),l=p(a,o);if(l)return l;if(e.get("show")&&!t.scale.isBlank()||(n=[]),i.isFunction(o))n=m(t,o,!0);else if("auto"===o){var u=h(t,t.getLabelModel());r=u.labelCategoryInterval,n=i.map(u.labels,(function(t){return t.tickValue}))}else n=y(t,r=o,!0);return f(a,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:i.map(t.scale.getTicks(),(function(t){return t.value}))}}function h(t,e){var n,r,a=d(t,"labels"),o=(0,s.getOptionCategoryInterval)(e);return p(a,o)||(i.isFunction(o)?n=m(t,o):(r="auto"===o?function(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=y(t,r)),f(a,o,{labels:n,labelCategoryInterval:r}))}function d(t,e){return l(t)[e]||(l(t)[e]=[])}function p(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function f(t,e,n){return t.push({key:e,value:n}),n}function g(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=(0,s.makeLabelFormatter)(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),u=a.count();if(o[1]-o[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=o[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,y=0;h<=o[1];h+=c){var m,v,x=r.getBoundingRect(n({value:h}),e.font,"center","top");m=1.3*x.width,v=1.3*x.height,g=Math.max(g,m,7),y=Math.max(y,v,7)}var _=g/p,b=y/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b))),C=l(t.model),w=t.getExtent(),M=C.lastAutoInterval,I=C.lastTickCount;return null!=M&&null!=I&&Math.abs(M-S)<=1&&Math.abs(I-u)<=1&&M>S&&C.axisExtent0===w[0]&&C.axisExtent1===w[1]?S=M:(C.lastTickCount=u,C.lastAutoInterval=S,C.axisExtent0=w[0],C.axisExtent1=w[1]),S}function y(t,e,n){var i=(0,s.makeLabelFormatter)(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],h=r.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=(0,s.shouldShowAllLabels)(t),p=o.get("showMinLabel")||d,f=o.get("showMaxLabel")||d;p&&c!==a[0]&&y(a[0]);for(var g=c;g<=a[1];g+=u)y(g);function y(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&g-u!==a[1]&&y(a[1]),l}function m(t,e,n){var r=t.scale,a=(0,s.makeLabelFormatter)(t),o=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&o.push(n?s:{formattedLabel:a(t),rawLabel:i,tickValue:s})})),o}})),a.register("afLms",(function(e,n){t(e.exports,"installLabelLayout",(()=>s));var i=a("2LuwV"),r=a("gdCtC"),o=(0,i.makeInner)();function s(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=o(e).labelManager;i||(i=o(e).labelManager=new(0,r.default)),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=o(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}})),a.register("gdCtC",(function(e,n){t(e.exports,"default",(()=>C));var i=a("lV62k"),r=a("kJ7of");a("dXBoT"),r=a("kJ7of");var o=a("5v9xk"),s=a("lcKsG"),l=a("lnAL9"),u=a("ePpUr"),c=a("2LuwV"),h=a("2FIaD"),d=a("enB78"),p=a("c3Bep"),f=a("cy15m");function g(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function y(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:g(i&&i.shape.points)}}var m=["align","verticalAlign","width","height","fontSize"],v=new(0,l.default),x=(0,c.makeInner)(),_=(0,c.makeInner)();function b(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var S=["x","y","rotation"],C=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,a){var o=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();i.default.applyTransform(u,u,l),l?v.setLocalTransform(l):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1),v.rotation=(0,f.normalizeRadian)(v.rotation);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();i.default.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");((0,h.isFunction)(i)||(0,h.keys)(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),a=(0,o.getECData)(t);r&&!r.disableLabelLayout&&e._addLabel(a.dataIndex,a.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){(0,u.updateLabelLinePoints)(t,e)}}for(var r=0;r<this._labelList.length;r++){var a=this._labelList[r],o=a.label,l=o.__hostTarget,c=a.defaultAttr,d=void 0;d=(d=(0,h.isFunction)(a.layoutOption)?a.layoutOption(y(a,l)):a.layoutOption)||{},a.computedLayoutOption=d;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:c.attachedPos,rotation:null!=d.rotate?d.rotate*p:c.attachedRot,offset:[d.dx||0,d.dy||0]});var f=!1;if(null!=d.x?(o.x=(0,s.parsePercent)(d.x,e),o.setStyle("x",0),f=!0):(o.x=c.x,o.setStyle("x",c.style.x)),null!=d.y?(o.y=(0,s.parsePercent)(d.y,n),o.setStyle("y",0),f=!0):(o.y=c.y,o.setStyle("y",c.style.y)),d.labelLinePoints){var g=l.getTextGuideLine();g&&(g.setShape({points:d.labelLinePoints}),f=!1)}x(o).needsUpdateLabelLine=f,o.rotation=null!=d.rotate?d.rotate*p:c.rotation,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var v=0;v<m.length;v++){var _=m[v];o.setStyle(_,null!=d[_]?d[_]:c.style[_])}if(d.draggable){if(o.draggable=!0,o.cursor="move",l){var b=a.seriesModel;null!=a.dataIndex&&(b=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on("drag",i(l,b.getModel("labelLine")))}}else o.off("drag"),o.cursor=c.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=(0,d.prepareLayoutList)(this._labelList),r=(0,h.filter)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=(0,h.filter)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));(0,d.shiftLayoutOnX)(r,0,e),(0,d.shiftLayoutOnY)(a,0,n);var o=(0,h.filter)(i,(function(t){return t.layoutOption.hideOverlap}));(0,d.hideOverlap)(o)},t.prototype.processLabelsOverall=function(){var t=this;(0,h.each)(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var a=!i,o=e.getTextContent();!a&&o&&(a=x(o).needsUpdateLabelLine),a&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=(0,o.getECData)(t),r=i.dataIndex;if(n&&null!=r){var a=e.getData(i.dataType),s=a.getItemModel(r),l={},c=a.getItemVisual(r,"style");if(c){var h=a.getVisual("drawType");l.stroke=c[h]}var d=s.getModel("labelLine");(0,u.setLabelLineStyle)(t,(0,u.getLabelLineStatesModels)(s),l),(0,u.updateLabelLinePoints)(t,d)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!(0,r.isElementRemoved)(t))){var a=(m=x(n)).oldLayout,s=(0,o.getECData)(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=e.getData(s.dataType);if(a){n.attr(a);var d=t.prevStates;d&&((0,h.indexOf)(d,"select")>=0&&n.attr(m.oldLayoutSelect),(0,h.indexOf)(d,"emphasis")>=0&&n.attr(m.oldLayoutEmphasis)),(0,r.updateProps)(n,u,e,l)}else if(n.attr(u),!(0,p.labelInner)(n).valueAnimation){var f=(0,h.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,r.initProps)(n,{style:{opacity:f}},e,l)}if(m.oldLayout=u,n.states.select){var g=m.oldLayoutSelect={};b(g,u,S),b(g,n.states.select,S)}if(n.states.emphasis){var y=m.oldLayoutEmphasis={};b(y,u,S),b(y,n.states.emphasis,S)}(0,p.animateLabelValue)(n,l,c,e,e)}if(i&&!i.ignore&&!i.invisible){a=(m=_(i)).oldLayout;var m,v={points:i.shape.points};a?(i.attr({shape:a}),(0,r.updateProps)(i,{shape:v},e)):(i.setShape(v),i.style.strokePercent=0,(0,r.initProps)(i,{style:{strokePercent:1}},e)),m.oldLayout=v}},t}()})),a.register("ePpUr",(function(e,n){t(e.exports,"updateLabelLinePoints",(()=>D)),t(e.exports,"limitTurnAngle",(()=>O)),t(e.exports,"limitSurfaceAngle",(()=>P)),t(e.exports,"setLabelLineStyle",(()=>N)),t(e.exports,"getLabelLineStatesModels",(()=>B)),a("dXBoT");var i=a("isgWw"),r=a("fCBaM"),o=a("NBRFu"),s=a("hpPau"),l=a("cy15m"),u=a("ibBA5"),c=a("2FIaD"),h=a("0445l"),d=a("jkyg0"),p=a("4lzC1"),f=2*Math.PI,g=s.default.CMD,y=["top","right","bottom","left"];function m(t,e,n,i,r){var a=n.width,o=n.height;switch(t){case"top":i.set(n.x+a/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+a/2,n.y+o+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+o/2),r.set(-1,0);break;case"right":i.set(n.x+a+e,n.y+o/2),r.set(1,0)}}function v(t,e,n,i,r,a,o,s,u){o-=t,s-=e;var c=Math.sqrt(o*o+s*s),h=(o/=c)*n+t,d=(s/=c)*n+e;if(Math.abs(i-r)%f<1e-4)return u[0]=h,u[1]=d,c-n;if(a){var p=i;i=(0,l.normalizeRadian)(r),r=(0,l.normalizeRadian)(p)}else i=(0,l.normalizeRadian)(i),r=(0,l.normalizeRadian)(r);i>r&&(r+=f);var g=Math.atan2(s,o);if(g<0&&(g+=f),g>=i&&g<=r||g+f>=i&&g+f<=r)return u[0]=h,u[1]=d,c-n;var y=n*Math.cos(i)+t,m=n*Math.sin(i)+e,v=n*Math.cos(r)+t,x=n*Math.sin(r)+e,_=(y-o)*(y-o)+(m-s)*(m-s),b=(v-o)*(v-o)+(x-s)*(x-s);return _<b?(u[0]=y,u[1]=m,Math.sqrt(_)):(u[0]=v,u[1]=x,Math.sqrt(b))}function x(t,e,n,i,r,a,o,s){var l=r-t,u=a-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=o[0]=t+p*c,g=o[1]=e+p*h;return Math.sqrt((f-r)*(f-r)+(g-a)*(g-a))}function _(t,e,n,i,r,a,o){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=o[0]=Math.min(Math.max(r,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var b=[];function S(t,e,n){var i=_(e.x,e.y,e.width,e.height,t.x,t.y,b);return n.set(b[0],b[1]),i}function C(t,e,n){for(var i,r,a=0,o=0,s=0,l=0,c=1/0,h=e.data,d=t.x,p=t.y,f=0;f<h.length;){var y=h[f++];1===f&&(s=a=h[f],l=o=h[f+1]);var m=c;switch(y){case g.M:a=s=h[f++],o=l=h[f++];break;case g.L:m=x(a,o,h[f],h[f+1],d,p,b,!0),a=h[f++],o=h[f++];break;case g.C:m=(0,u.cubicProjectPoint)(a,o,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],d,p,b),a=h[f++],o=h[f++];break;case g.Q:m=(0,u.quadraticProjectPoint)(a,o,h[f++],h[f++],h[f],h[f+1],d,p,b),a=h[f++],o=h[f++];break;case g.A:var S=h[f++],C=h[f++],w=h[f++],M=h[f++],I=h[f++],T=h[f++];f+=1;var A=!!(1-h[f++]);i=Math.cos(I)*w+S,r=Math.sin(I)*M+C,f<=1&&(s=i,l=r),m=v(S,C,M,I,I+T,A,(d-S)*M/w+S,p,b),a=Math.cos(I+T)*w+S,o=Math.sin(I+T)*M+C;break;case g.R:m=_(s=a=h[f++],l=o=h[f++],h[f++],h[f++],d,p,b);break;case g.Z:m=x(a,o,s,l,d,p,b,!0),a=s,o=l}m<c&&(c=m,n.set(b[0],b[1]))}return c}var w=new(0,o.default),M=new(0,o.default),I=new(0,o.default),T=new(0,o.default),A=new(0,o.default);function D(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var a=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=a.candidates||y,u=r.getBoundingRect().clone();u.applyTransform(r.getComputedTransform());var c=1/0,d=a.anchor,p=t.getComputedTransform(),f=p&&(0,h.invert)([],p),g=e.get("length2")||0;d&&I.copy(d);for(var v=0;v<l.length;v++){m(l[v],0,u,w,T),o.default.scaleAndAdd(M,w,T,g),M.transform(f);var x=t.getBoundingRect(),_=d?d.distance(M):t instanceof i.default?C(M,t.path,I):S(M,x,I);_<c&&(c=_,M.transform(p),I.transform(p),I.toArray(s[0]),M.toArray(s[1]),w.toArray(s[2]))}O(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var L=[],k=new(0,o.default);function O(t,e){if(e<=180&&e>0){e=e/180*Math.PI,w.fromArray(t[0]),M.fromArray(t[1]),I.fromArray(t[2]),o.default.sub(T,w,M),o.default.sub(A,I,M);var n=T.len(),i=A.len();if(!(n<.001||i<.001)){T.scale(1/n),A.scale(1/i);var r=T.dot(A);if(Math.cos(e)<r){var a=x(M.x,M.y,I.x,I.y,w.x,w.y,L,!1);k.fromArray(L),k.scaleAndAdd(A,a/Math.tan(Math.PI-e));var s=I.x!==M.x?(k.x-M.x)/(I.x-M.x):(k.y-M.y)/(I.y-M.y);if(isNaN(s))return;s<0?o.default.copy(k,M):s>1&&o.default.copy(k,I),k.toArray(t[1])}}}}function P(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,w.fromArray(t[0]),M.fromArray(t[1]),I.fromArray(t[2]),o.default.sub(T,M,w),o.default.sub(A,I,M);var i=T.len(),r=A.len();if(!(i<.001||r<.001)&&(T.scale(1/i),A.scale(1/r),T.dot(e)<Math.cos(n))){var a=x(M.x,M.y,I.x,I.y,w.x,w.y,L,!1);k.fromArray(L);var s=Math.PI/2,l=s+Math.acos(A.dot(e))-n;if(l>=s)o.default.copy(k,I);else{k.scaleAndAdd(A,a/Math.tan(Math.PI/2-l));var u=I.x!==M.x?(k.x-M.x)/(I.x-M.x):(k.y-M.y)/(I.y-M.y);if(isNaN(u))return;u<0?o.default.copy(k,M):u>1&&o.default.copy(k,I)}k.toArray(t[1])}}}function E(t,e,n,i){var r="normal"===n,a=r?t:t.ensureState(n);a.ignore=e;var o=i.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):a.style=s}function R(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=d.dist(i[0],i[1]),a=d.dist(i[1],i[2]);if(!r||!a)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var o=Math.min(r,a)*n,s=d.lerp([],i[1],i[0],o/r),l=d.lerp([],i[1],i[2],o/a),u=d.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function N(t,e,n){var i=t.getTextGuideLine(),a=t.getTextContent();if(a){for(var o=e.normal,s=o.get("show"),l=a.ignore,u=0;u<p.DISPLAY_STATES.length;u++){var h=p.DISPLAY_STATES[u],d=e[h],f="normal"===h;if(d){var g=d.get("show");if((f?l:(0,c.retrieve2)(a.states[h]&&a.states[h].ignore,l))||!(0,c.retrieve2)(g,s)){var y=f?i:i&&i.states[h];y&&(y.ignore=!0),i&&E(i,!0,h,d);continue}i||(i=new(0,r.default),t.setTextGuideLine(i),f||!l&&s||E(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),E(i,!1,h,d)}}if(i){(0,c.defaults)(i.style,n),i.style.fill=null;var m=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=m||!1,i.buildPath=R}}else i&&t.removeTextGuideLine()}function B(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<p.SPECIAL_STATES.length;i++){var r=p.SPECIAL_STATES[i];n[r]=t.getModel([r,e])}return n}})),a.register("enB78",(function(e,n){t(e.exports,"prepareLayoutList",(()=>o)),t(e.exports,"shiftLayoutOnX",(()=>l)),t(e.exports,"shiftLayoutOnY",(()=>u)),t(e.exports,"hideOverlap",(()=>c));var i=a("lV62k"),r=a("iVSZE");function o(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var a=i.label,o=a.getComputedTransform(),s=a.getBoundingRect(),l=!o||o[1]<1e-5&&o[2]<1e-5,u=a.style.margin||0,c=s.clone();c.applyTransform(o),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new(0,r.default)(s,o):null;e.push({label:a,labelLine:i.labelLine,rect:c,localRect:s,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:o})}}return e}function s(t,e,n,i,r,a){var o=t.length;if(!(o<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<o;d++){var p=t[d],f=p.rect;(s=f[e]-l)<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&a&&S(-h/o,0,o);var y,m,v=t[0],x=t[o-1];return _(),y<0&&C(-y,.8),m<0&&C(m,.8),_(),b(y,m,1),b(m,y,-1),_(),y<0&&w(-y),m<0&&w(m),u}function _(){y=v.rect[e]-i,m=r-x.rect[e]-x.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){S(i*n,0,o);var r=i+t;r<0&&C(-r*n,1)}else C(-t*n,1)}}function S(n,i,r){0!==n&&(u=!0);for(var a=i;a<r;a++){var o=t[a];o.rect[e]+=n,o.label[e]+=n}}function C(i,r){for(var a=[],s=0,l=1;l<o;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);a.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<o-1;l++)S(a[l]*h,0,l+1);else for(l=o-1;l>0;l--)S(-a[l-1]*h,l,o)}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),i=0;i<o-1;i++)if(e>0?S(n,0,i+1):S(-n,o-i-1,o),(t-=n)<=0)return}}function l(t,e,n,i){return s(t,"x","width",e,n,i)}function u(t,e,n,i){return s(t,"y","height",e,n,i)}function c(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new(0,i.default)(0,0,0,0);function a(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var o=0;o<t.length;o++){var s=t[o],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<e.length;g++){var y=e[g];if(n.intersect(y.rect)){if(l&&y.axisAligned){f=!0;break}if(y.obb||(y.obb=new(0,r.default)(y.localRect,y.transform)),p||(p=new(0,r.default)(u,c)),p.intersect(y.obb)){f=!0;break}}}f?(a(h),d&&a(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}})),a.register("2rdKW",(function(e,n){t(e.exports,"install",(()=>r));var i=a("eh2fw");function r(t){t.registerPainter("canvas",i.default)}})),a.register("eh2fw",(function(e,n){t(e.exports,"default",(()=>g));var i=a("7tJ16"),r=a("2FIaD"),o=a("4sprY"),s=a("618oX"),l=a("6rpCZ"),u=a("foMLt"),c=a("fIYrT"),h=a("5Qz5p"),d=1e5,p=314159,f=.01,g=function(){function t(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var s=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i.devicePixelRatio,this._singleCanvas=s,this.root=t,t.style&&(r.disableUserSelect(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(s){var c=t,d=c.width,f=c.height;null!=n.width&&(d=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,c.width=d*this.dpr,c.height=f*this.dpr,this._width=d,this._height=f;var g=new(0,o.default)(c,this,this.dpr);g.__builtin__=!0,g.initContext(),u[314159]=g,g.zlevel=p,l.push(p),this._domRoot=t}else{this._width=(0,h.getSize)(t,0,n),this._height=(0,h.getSize)(t,1,n);var y=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(y)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var a=i[r],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===r?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<e;a++){var o=t[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(d)),i||(i=n.ctx).save(),(0,u.brush)(i,o,r,a===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(d)},t.prototype.paintOne=function(t,e){(0,u.brushSingle)(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),a=r.finished,o=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),a)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var l=this;(0,s.default)((function(){l._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(p).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&a.push(c)}for(var h=!0,d=!1,p=function(r){var s,l=a[r],u=l.ctx,c=o&&l.createRepaintRects(t,e,f._width,f._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),m=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,c);else if(p===l.__startIndex){var v=t[p];v.incremental&&v.notClear&&!n||l.clear(!1,m,c)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(d=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-y>15)break}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var _=f.dpr,b=0;b<c.length;++b){var S=c[b];u.save(),u.beginPath(),u.rect(S.x*_,S.y*_,S.width*_,S.height*_),u.clip(),x(S),u.restore()}else u.save(),x(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},f=this,g=0;g<a.length;g++)p(g);return l.default.wxa&&r.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:d}},t.prototype._doPaintEl=function(t,e,n,i,r,a){var o=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&((0,u.brush)(o,t,r,a),t.setPrevPaintRect(s))}else(0,u.brush)(o,t,r,a)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=p);var n=this._layers[t];return n||((n=new(0,o.default)("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r.merge(n,this._layerConfig[t],!0):this._layerConfig[t-f]&&r.merge(n,this._layerConfig[t-f],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=this._domRoot,o=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(e.dom,l.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__&&t.call(e,a,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],a=this._layers[r];a.__builtin__||t.call(e,a,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}var i,a,o=null,s=0;for(a=0;a<t.length;a++){var l,u=(l=t[a]).zlevel,h=void 0;i!==u&&(i=u,s=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(u+(s>0?f:0),this._needsManuallyCompositing),h.__builtin__||r.logError("ZLevel "+u+" has been used by unkown layer "+h.id),h!==o&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.incremental?h.__drawIndex=-1:h.__drawIndex=a,e(a),o=h),l.__dirty&c.REDRAW_BIT&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=a))}e(a),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,r.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+f){var o=this._layers[a];r.merge(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.indexOf(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=(0,h.getSize)(r,0,i),e=(0,h.getSize)(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var a in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(p).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new(0,o.default)("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var h=s[l];(0,u.brush)(n,h,a,l===c-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}()})),a.register("4sprY",(function(e,n){t(e.exports,"default",(()=>f));var i=a("lCvKW"),r=a("2FIaD"),o=a("7tJ16"),s=a("gqWkF"),l=a("5Qz5p"),u=a("foMLt"),c=a("lV62k"),h=a("fIYrT"),d=a("2JyUO");function p(t,e,n){var i=d.platformApi.createCanvas(),r=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=a*n,i}var f=function(t){function e(e,n,i){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,i=i||o.devicePixelRatio,"string"==typeof e?a=p(e,n,i):r.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(r.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=i,s}return(0,i.__extends)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=p("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,a=[],o=this.maxRepaintRectCount,s=!1,l=new(0,c.default)(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new(0,c.default)(0,0,0,0)).copy(t),a.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u<a.length;++u){var h=a[u];if(h.intersect(t)){var d=new(0,c.default)(0,0,0,0);d.copy(h),d.union(t),a[u]=d,n=!0;break}if(s){l.copy(t),l.union(h);var p=t.width*t.height,f=h.width*h.height,g=l.width*l.height-p-f;g<i&&(i=g,r=u)}}s&&(a[r].union(t),n=!0),n||((e=new(0,c.default)(0,0,0,0)).copy(t),a.push(e)),s||(s=a.length>=o)}}for(var d=this.__startIndex;d<this.__endIndex;++d)if(g=t[d]){var p=g.shouldBePainted(n,i,!0,!0);(y=g.__isRendered&&(g.__dirty&h.REDRAW_BIT||!p)?g.getPrevPaintRect():null)&&u(y);var f=p&&(g.__dirty&h.REDRAW_BIT||!g.__isRendered)?g.getPaintRect():null;f&&u(f)}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g,y;p=(g=e[d])&&g.shouldBePainted(n,i,!0,!0),!g||p&&g.__zr||!g.__isRendered||(y=g.getPrevPaintRect())&&u(y)}do{for(r=!1,d=0;d<a.length;)if(a[d].isZero())a.splice(d,1);else{for(var m=d+1;m<a.length;)a[d].intersect(a[m])?(r=!0,a[d].union(a[m]),a.splice(m,1)):m++;d++}}while(r);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,a=this.ctx,o=i.width,s=i.height;e=e||this.clearColor;var c=this.motionBlur&&!t,h=this.lastFrameAlpha,d=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/d,s/d));var f=this.domBack;function g(t,n,i,o){if(a.clearRect(t,n,i,o),e&&"transparent"!==e){var s=void 0;r.isGradientObject(e)?(s=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||(0,l.getCanvasGradient)(a,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=s,e.__width=i,e.__height=o):r.isImagePatternObject(e)&&(e.scaleX=e.scaleX||d,e.scaleY=e.scaleY||d,s=(0,u.createCanvasPattern)(a,e,{dirty:function(){p.setUnpainted(),p.painter.refresh()}})),a.save(),a.fillStyle=s||e,a.fillRect(t,n,i,o),a.restore()}c&&(a.save(),a.globalAlpha=h,a.drawImage(f,t,n,i,o),a.restore())}!n||c?g(0,0,o,s):n.length&&r.each(n,(function(t){g(t.x*d,t.y*d,t.width*d,t.height*d)}))},e}(s.default)})),a.register("7HXlD",(function(e,n){t(e.exports,"install",(()=>h));var i=a("lCvKW"),r=a("eWRYv"),o=a("2UHy9"),s=a("1tAq5"),l=a("hm4Oa"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.__extends)(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new(0,l.SourceManager)(this),(0,l.disableTransformOptionMerge)(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),(0,l.disableTransformOptionMerge)(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:s.SERIES_LAYOUT_BY_COLUMN},e}(r.default),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.__extends)(e,t),e.type="dataset",e}(o.default);function h(t){t.registerComponentModel(u),t.registerComponentView(c)}}));var o=a("ed8Oj"),s={},l=Math.log(2),u=s,c={},h=c;function d(t){return 1-Math.abs(t)}c.isNumber=function(t){return"number"==typeof t},c.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},c.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},c.findMinMulti=function(t){for(var e=h.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,h.findMin(t[n]));return e},c.findMaxMulti=function(t){for(var e=h.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,h.findMax(t[n]));return e},c.inside=function(t,e,n){return t<=n&&n<=e},s.getUnifiedMinMax=function(t,e){return u.getUnifiedMinMaxMulti([t],e)},s.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,i=!1,r=c.isNumber(e.width)?e.width:2,a=c.isNumber(e.size)?e.size:50,o=c.isNumber(e.min)?e.min:(n=!0,c.findMinMulti(t)),s=c.isNumber(e.max)?e.max:(i=!0,c.findMaxMulti(t)),l=(s-o)/(a-1);return n&&(o-=2*r*l),i&&(s+=2*r*l),{min:o,max:s}},s.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=c.isNumber(e.size)?e.size:50,i=c.isNumber(e.width)?e.width:2,r=u.getUnifiedMinMax(t,{size:n,width:i,min:e.min,max:e.max}),a=r.min,o=r.max-a,s=o/(n-1);if(0===o)return[{x:a,y:1}];for(var l=[],h=0;h<n;h++)l.push({x:a+h*s,y:0});var p=function(t,e){for(var n={},i=0,r=-e;r<=e;r++)i+=t(r/e),n[r]=i;return n}(d,i),f=p[i],g=p[i-1]-p[i-2],y=0;t.forEach((function(t){var e=function(t){return Math.floor((t-a)/s)}(t);if(!(e+i<0||e-i>=l.length)){var n=Math.max(e-i,0),r=e,o=Math.min(e+i,l.length-1),u=n-(e-i),h=e+i-o,d=p[-i-1+u]||0,m=p[-i-1+h]||0,v=f/(f-d-m);u>0&&(y+=v*(u-1)*g);var x=Math.max(0,e-i+1);c.inside(0,l.length-1,x)&&(l[x].y+=1*v*g),c.inside(0,l.length-1,r+1)&&(l[r+1].y-=2*v*g),c.inside(0,l.length-1,o+1)&&(l[o+1].y+=1*v*g)}}));var m=y,v=0,x=0;return l.forEach((function(t){v+=t.y,m+=v,t.y=m,x+=m})),x>0&&l.forEach((function(t){t.y/=x})),l},s.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},s.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,i=0,r=0;r<t.length&&(i=r,!((n+=t[r].y)>=e));r++);return t[i].x}},s.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/l,Math.pow(2,e)}};var p=a("kyrfh");a("cATUV");var f=a("2rdKW"),g=a("bA7iH"),y=a("isgWw"),m=a("kbAoh"),v=a("bv5ZD"),x=a("eIhqd"),_=(g=a("bA7iH"),Math.sin),b=Math.cos,S=Math.PI,w=2*Math.PI,M=180/S,I=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){this._add("C",t,e,n,i,r,a)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,a){this.ellipse(t,e,n,n,0,i,r,a)},t.prototype.ellipse=function(t,e,n,i,r,a,o,s){var l,u=o-a,c=!s,h=Math.abs(u),d=(0,g.isAroundZero)(h-w)||(c?u>=w:-u>=w),p=u>0?u%w:u%w+w;l=!!d||!(0,g.isAroundZero)(h)&&p>=S==!!c;var f=t+n*b(a),y=e+i*_(a);this._start&&this._add("M",f,y);var m=Math.round(r*M);if(d){var v=1/this._p,x=(c?1:-1)*(w-v);this._add("A",n,i,m,1,+c,t+n*b(a+x),e+i*_(a+x)),v>.01&&this._add("A",n,i,m,0,+c,f,y)}else{var C=t+n*b(o),I=e+i*_(o);this._add("A",n,i,m,+l,+c,C,I)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,a,o,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),T=(y=a("isgWw"),m=a("kbAoh"),a("1VL9N")),C=a("2FIaD"),A=(g=a("bA7iH"),Math.round),D=["lineCap","miterLimit","lineJoin"],L=(0,C.map)(D,(function(t){return"stroke-"+t.toLowerCase()}));function k(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof m.default)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var a=(0,g.normalizeColor)(e.fill);t("fill",a.color);var o=null!=e.fillOpacity?e.fillOpacity*a.opacity*r:a.opacity*r;(i||o<1)&&t("fill-opacity",o)}else t("fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var s=(0,g.normalizeColor)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,h=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||h)&&t("paint-order",h?"stroke":"fill"),(i||c<1)&&t("stroke-opacity",c),e.lineDash){var d=(0,T.getLineDash)(n),p=d[0],f=d[1];p&&(f=A(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray","none");for(var v=0;v<D.length;v++){var x=D[v];if(i||e[x]!==y.DEFAULT_PATH_STYLE[x]){var _=e[x]||y.DEFAULT_PATH_STYLE[x];_&&t(L[v],_)}}}else i&&t("stroke","none")}}C=a("2FIaD");var O=a("i1s7L");function P(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function E(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function R(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,a=e.attrs,o=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],a=i;!1!==r&&(!0!==r&&null!=r&&(a+='="'+r+'"'),n.push(a))}return"<"+t+" "+n.join(" ")+">"}(r,a)+("style"!==r?(0,O.encodeHTML)(o):o||"")+(i?""+n+(0,C.map)(i,(function(e){return t(e)})).join(n)+n:"")+"</"+r+">"}(t)}function N(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,a=i+"}",o=(0,C.map)((0,C.keys)(t),(function(e){return e+r+(0,C.map)((0,C.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),s=(0,C.map)((0,C.keys)(e),(function(t){return"@keyframes "+t+r+(0,C.map)((0,C.keys)(e[t]),(function(n){return n+r+(0,C.map)((0,C.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+a})).join(i)+a})).join(i);return o||s?["<![CDATA[",o,s,"]]>"].join(i):""}function F(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function B(t,e,n,i){return E("svg","root",{width:t,height:e,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}C=a("2FIaD");var z=a("2aSlr"),V=a("lnAL9"),W=a("hpPau"),G=(g=a("bA7iH"),C=a("2FIaD"),a("cmXBB")),H=a("gWJlw"),U=0;function Y(){return U++}var X={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"};function K(t,e,n){var i=(0,C.extend)({},t.shape);(0,C.extend)(i,e),t.buildPath(n,i);var r=new I;return r.reset((0,g.getPathPrecision)(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function j(t,e){var n=e.originX,i=e.originY;(n||i)&&(t["transform-origin"]=n+"px "+i+"px")}var Z={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function q(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function J(t){return(0,C.isString)(t)?X[t]?"cubic-bezier("+X[t]+")":(0,H.createCubicEasingFunc)(t)?t:"":""}function Q(t,e,n,i){var r=t.animators,a=r.length,o=[];if(t instanceof G.default){var s=function(t,e,n){var i,r,a=t.shape.paths,o={};if((0,C.each)(a,(function(t){var e=F(n.zrId);e.animation=!0,Q(t,{},e,!0);var a=e.cssAnims,s=e.cssNodes,l=(0,C.keys)(a),u=l.length;if(u){var c=a[r=l[u-1]];for(var h in c){var d=c[h];o[h]=o[h]||{d:""},o[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=q(o,n);return i.replace(r,s)}}(t,e,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],d=J(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function y(r){var a,o=r[1],s=o.length,l={},u={},c={};function h(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),a=0;a<i.length;a++){var o=i[a];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],h=Math.round(c.time/r*100)+"%",d=J(c.easing),p=c.rawValue;((0,C.isString)(p)||(0,C.isNumber)(p))&&(e[h]=e[h]||{},e[h][l]=c.rawValue,d&&(e[h]["animation-timing-function"]=d))}}}}for(var d=0;d<s;d++)(w=(S=o[d]).targetName)?"shape"===w&&h(S,u):!i&&h(S,l);for(var p in l){var f={};(0,V.copyTransform)(f,t),(0,C.extend)(f,l[p]);var y=(0,g.getSRTTransformString)(f),m=l[p]["animation-timing-function"];c[p]=y?{transform:y}:{},j(c[p],f),m&&(c[p]["animation-timing-function"]=m)}var v=!0;for(var p in u){c[p]=c[p]||{};var x=!a;m=u[p]["animation-timing-function"],x&&(a=new(0,W.default));var _=a.len();a.reset(),c[p].d=K(t,u[p],a);var b=a.len();if(!x&&_!==b){v=!1;break}m&&(c[p]["animation-timing-function"]=m)}if(!v)for(var p in c)delete c[p].d;if(!i)for(d=0;d<s;d++){var S,w;"style"===(w=(S=o[d]).targetName)&&h(S,c,(function(t){return Z[t]}))}var M,I=(0,C.keys)(c),T=!0;for(d=1;d<I.length;d++){var A=I[d-1],D=I[d];if(c[A]["transform-origin"]!==c[D]["transform-origin"]){T=!1;break}M=c[A]["transform-origin"]}if(T&&M){for(var p in c)c[p]["transform-origin"]&&delete c[p]["transform-origin"];e["transform-origin"]=M}if((0,C.filter)(I,(function(t){return(0,C.keys)(c[t]).length>0})).length)return q(c,n)+" "+r[0]+" both"}for(var m in l)(s=y(l[m]))&&o.push(s);if(o.length){var v=n.zrId+"-cls-"+Y();n.cssNodes["."+v]={animation:o.join(",")},e.class=v}}var $=a("jud7h"),ee=a("2JyUO"),te=a("l3Be0");function ne(t,e,n){if(!t.ignore)if(t.isSilent())ie(u={"pointer-events":"none"},e,n,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var a=t.style&&t.style.fill,o=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&o||a;s&&(r=(0,te.liftColor)(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),ie(u,e,n,!0)}}function ie(t,e,n,i){var r=JSON.stringify(t),a=n.cssStyleCache[r];a||(a=n.zrId+"-cls-"+Y(),n.cssStyleCache[r]=a,n.cssNodes["."+a+(i?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var re=a("deUmu"),ae=Math.round;function oe(t){return t&&(0,C.isString)(t.src)}function se(t){return t&&(0,C.isFunction)(t.toDataURL)}function le(t,e,n,i){k((function(r,a){var o="fill"===r||"stroke"===r;o&&(0,g.isGradient)(a)?xe(e,t,r,i):o&&(0,g.isPattern)(a)?_e(n,t,r,i):t[r]=o&&"none"===a?"transparent":a}),e,n,!1),function(t,e,n){var i=t.style;if((0,g.hasShadow)(i)){var r=(0,g.getShadowKey)(t),a=n.shadowCache,o=a[r];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=(0,g.normalizeColor)(i.shadowColor),f=p.opacity,y=p.color,m=d/2/l+" "+d/2/u;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=E("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[E("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":y,"flood-opacity":f})]),a[r]=o}e.filter=(0,g.getIdURL)(o)}}(n,t,i)}function ue(t,e){var n=(0,re.getElementSSRData)(e);n&&(n.each((function(e,n){null!=e&&(t[("ecmeta_"+n).toLowerCase()]=e+"")})),e.isSilent()&&(t.ecmeta_silent="true"))}function ce(t){return(0,g.isAroundZero)(t[0]-1)&&(0,g.isAroundZero)(t[1])&&(0,g.isAroundZero)(t[2])&&(0,g.isAroundZero)(t[3]-1)}function he(t,e,n){if(e&&(!function(t){return(0,g.isAroundZero)(t[4])&&(0,g.isAroundZero)(t[5])}(e)||!ce(e))){var i=n?10:1e4;t.transform=ce(e)?"translate("+ae(e[4]*i)/i+" "+ae(e[5]*i)/i+")":(0,g.getMatrixStr)(e)}}function de(t,e,n){for(var i=t.points,r=[],a=0;a<i.length;a++)r.push(ae(i[a][0]*n)/n),r.push(ae(i[a][1]*n)/n);e.points=r.join(" ")}function pe(t){return!t.smooth}var fe,ge,ye={circle:[(fe=["cx","cy","r"],ge=(0,C.map)(fe,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<ge.length;i++){var r=ge[i],a=t[r[0]];null!=a&&(e[r[1]]=ae(a*n)/n)}})],polyline:[de,pe],polygon:[de,pe]};function me(t,e){var n=t.style,i=t.shape,r=ye[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&(0,g.getPathPrecision)(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||o&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new I),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),a.d=f.getStr()}else{s=t.type;var y=Math.pow(10,u);r[0](i,a,y)}return he(a,t.transform),le(a,n,t,e),ue(a,t),e.animation&&Q(t,a,e),e.emphasis&&ne(t,a,e),E(s,t.id+"",a)}function ve(t,e){return t instanceof y.default?me(t,e):t instanceof m.default?function(t,e){var n=t.style,i=n.image;if(i&&!(0,C.isString)(i)&&(oe(i)?i=i.src:se(i)&&(i=i.toDataURL())),i){var r=n.x||0,a=n.y||0,o={href:i,width:n.width,height:n.height};return r&&(o.x=r),a&&(o.y=a),he(o,t.transform),le(o,n,t,e),ue(o,t),e.animation&&Q(t,o,e),E("image",t.id+"",o)}}(t,e):t instanceof x.default?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||ee.DEFAULT_FONT,a=n.x||0,o=(0,g.adjustTextY)(n.y||0,(0,v.getLineHeight)(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":g.TEXT_ALIGN_TO_ANCHOR[n.textAlign]||n.textAlign};if((0,$.hasSeparateFont)(n)){var l="",u=n.fontStyle,c=(0,$.parseFontSize)(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||ee.DEFAULT_FONT_FAMILY,d=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),a&&(s.x=a),o&&(s.y=o),he(s,t.transform),le(s,n,t,e),ue(s,t),e.animation&&Q(t,s,e),E("text",t.id+"",s,void 0,i)}}(t,e):void 0}function xe(t,e,n,i){var r,a=t[n],o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if((0,g.isLinearGradient)(a))r="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!(0,g.isRadialGradient)(a))return;r="radialGradient",o.cx=(0,C.retrieve2)(a.x,.5),o.cy=(0,C.retrieve2)(a.y,.5),o.r=(0,C.retrieve2)(a.r,.5)}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*(0,g.round4)(s[u].offset)+"%",d=s[u].color,p=(0,g.normalizeColor)(d),f=p.color,y=p.opacity,m={offset:h};m["stop-color"]=f,y<1&&(m["stop-opacity"]=y),l.push(E("stop",u+"",m))}var v=R(E(r,"",o,l)),x=i.gradientCache,_=x[v];_||(_=i.zrId+"-g"+i.gradientIdx++,x[v]=_,o.id=_,i.defs[_]=E(r,_,o,l)),e[n]=(0,g.getIdURL)(_)}function _e(t,e,n,i){var r,a=t.style[n],o=t.getBoundingRect(),s={},l=a.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if((0,g.isImagePattern)(a)){var d=a.imageWidth,p=a.imageHeight,f=void 0,y=a.image;if((0,C.isString)(y)?f=y:oe(y)?f=y.src:se(y)&&(f=y.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";(0,C.assert)(d,m),(0,C.assert)(p,m)}else if(null==d||null==p){var v=function(t,e){if(t){var n=t.elm,i=d||e.width,r=p||e.height;"pattern"===t.tag&&(c?(r=1,i/=o.width):h&&(i=1,r/=o.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},x=(0,z.createOrUpdateImage)(f,null,t,(function(t){u||v(w,t),v(r,t)}));x&&x.width&&x.height&&(d=d||x.width,p=p||x.height)}r=E("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else a.svgElement&&(r=(0,C.clone)(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(r){var _,b;u?_=b=1:c?(b=1,_=s.width/o.width):h?(_=1,b=s.height/o.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==b||isNaN(b)||(s.height=b);var S=(0,g.getSRTTransformString)(a);S&&(s.patternTransform=S);var w=E("pattern","",s,[r]),M=R(w),I=i.patternCache,T=I[M];T||(T=i.zrId+"-p"+i.patternIdx++,I[M]=T,s.id=T,w=i.defs[T]=E("pattern",T,s,[r])),e[n]=(0,g.getIdURL)(T)}}function be(t,e,n){var i=n.clipPathCache,r=n.defs,a=i[t.id];if(!a){var o={id:a=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=a,r[a]=E("clipPath",a,o,[me(t,n)])}e["clip-path"]=(0,g.getIdURL)(a)}function Se(t){return document.createTextNode(t)}function we(t,e,n){t.insertBefore(e,n)}function Me(t,e){t.removeChild(e)}function Ie(t,e){t.appendChild(e)}function Te(t){return t.parentNode}function Ce(t){return t.nextSibling}function Ae(t,e){t.textContent=e}g=a("bA7iH"),C=a("2FIaD"),C=a("2FIaD");var De=E("","");function Le(t){return void 0===t}function ke(t){return void 0!==t}function Oe(t,e,n){for(var i={},r=e;r<=n;++r){var a=t[r].key;void 0!==a&&(i[a]=r)}return i}function Pe(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Ee(t){var e,n=t.children,i=t.tag;if(ke(i)){var r=t.elm=P(i);if(Fe(De,t),(0,C.isArray)(n))for(e=0;e<n.length;++e){var a=n[e];null!=a&&Ie(r,Ee(a))}else ke(t.text)&&!(0,C.isObject)(t.text)&&Ie(r,Se(t.text))}else t.elm=Se(t.text);return t.elm}function Re(t,e,n,i,r){for(;i<=r;++i){var a=n[i];null!=a&&we(t,Ee(a),e)}}function Ne(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(ke(r.tag)?Me(Te(r.elm),r.elm):Me(t,r.elm))}}function Fe(t,e){var n,i=e.elm,r=t&&t.attrs||{},a=e.attrs||{};if(r!==a){for(n in a){var o=a[n];r[n]!==o&&(!0===o?i.setAttribute(n,""):!1===o?i.removeAttribute(n):"style"===n?i.style.cssText=o:120!==n.charCodeAt(0)?i.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,o):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):58===n.charCodeAt(5)?i.setAttributeNS("http://www.w3.org/1999/xlink",n,o):i.setAttribute(n,o))}for(n in r)n in a||i.removeAttribute(n)}}function Be(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Fe(t,e),Le(e.text)?ke(i)&&ke(r)?i!==r&&function(t,e,n){for(var i,r,a,o=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,d=n[0],p=n[h];o<=l&&s<=h;)null==u?u=e[++o]:null==c?c=e[--l]:null==d?d=n[++s]:null==p?p=n[--h]:Pe(u,d)?(Be(u,d),u=e[++o],d=n[++s]):Pe(c,p)?(Be(c,p),c=e[--l],p=n[--h]):Pe(u,p)?(Be(u,p),we(t,u.elm,Ce(c.elm)),u=e[++o],p=n[--h]):Pe(c,d)?(Be(c,d),we(t,c.elm,u.elm),c=e[--l],d=n[++s]):(Le(i)&&(i=Oe(e,o,l)),Le(r=i[d.key])||(a=e[r]).tag!==d.tag?we(t,Ee(d),u.elm):(Be(a,d),e[r]=void 0,we(t,a.elm,u.elm)),d=n[++s]);(o<=l||s<=h)&&(o>l?Re(t,null==n[h+1]?null:n[h+1].elm,n,s,h):Ne(t,e,o,l))}(n,i,r):ke(r)?(ke(t.text)&&Ae(n,""),Re(n,null,r,0,r.length-1)):ke(i)?Ne(n,i,0,i.length-1):ke(t.text)&&Ae(n,""):t.text!==e.text&&(ke(i)&&Ne(n,i,0,i.length-1),Ae(n,e.text)))}function ze(t,e){if(Pe(t,e))Be(t,e);else{var n=t.elm,i=Te(n);Ee(e),null!==i&&(we(i,e.elm,Ce(n)),Ne(i,[t],0,0))}return e}var Ve=a("5Qz5p"),We=0,Ge=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=(0,C.extend)({},n),this.root=t,this._id="zr"+We++,this._oldVNode=B(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=P("svg");Fe(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ze(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return ve(t,F(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=F(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis;var a=[],o=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=E("rect","bg",{width:t,height:e,x:"0",y:"0"}),(0,g.isGradient)(n))xe({fill:n},r.attrs,"fill",i);else if((0,g.isPattern)(n))_e({style:{fill:n},dirty:C.noop,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var a=(0,g.normalizeColor)(n),o=a.color,s=a.opacity;r.attrs.fill=o,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);o&&a.push(o);var s=t.compress?null:this._mainVNode=E("g","main",{},[]);this._paintList(e,r,s?s.children:a),s&&a.push(s);var l=(0,C.map)((0,C.keys)(r.defs),(function(t){return r.defs[t]}));if(l.length&&a.push(E("defs","defs",{},l)),t.animation){var u=N(r.cssNodes,r.cssAnims,{newline:!0});if(u){var c=E("style","stl",{},[],u);a.push(c)}}return B(n,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},R(this.renderToVNode({animation:(0,C.retrieve2)(t.cssAnimation,!0),emphasis:(0,C.retrieve2)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,C.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,a=t.length,o=[],s=0,l=0,u=0;u<a;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=o[--s-1];for(var y=f+1;y<d;y++){var m={};be(h[y],m,e);var v=E("g","clip-g-"+l++,m,[]);(i?i.children:n).push(v),o[s++]=v,i=v}r=h;var x=ve(c,e);x&&(i?i.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=(0,Ve.getSize)(i,0,n),e=(0,Ve.getSize)(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var a=r.style;a.width=t+"px",a.height=e+"px"}if((0,g.isPattern)(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=(0,g.encodeBase64)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}(),He=Ge;C=a("2FIaD");var Ue=a("hRFEi"),Ye=(C=a("2FIaD"),{average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],a=Math.abs(r);a>e&&(e=a,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}}),Xe=function(t){return Math.round(t.length/2)};function Ke(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,o=i.count();if(o>10&&"cartesian2d"===a.type&&r){var s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(o/h);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;(0,C.isString)(r)?p=Ye[r]:(0,C.isFunction)(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,Xe))}}}}}var je=a("lCvKW"),Ze=(je=a("lCvKW"),a("gGiC4")),qe=a("4TZPm"),Je=(C=a("2FIaD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,qe.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),a=i.dataToPoint(r);if(n)(0,C.each)(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),o=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!o&&(s+=1),i.length<2)return;if(2===i.length)return void(a[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),a[n]=t.toGlobalCoord(c)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;a[u]+=s+l/2}return a}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ze.default));Ze.default.registerClass(Je);var Qe=Je,$e=(qe=a("4TZPm"),a("jmxtG")),et=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(){return(0,qe.default)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,$e.inheritDefaultOption)(Qe.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}),e}(Qe),tt=(je=a("lCvKW"),y=a("isgWw"),a("2IUoL")),nt=(C=a("2FIaD"),a("kJ7of")),it=a("dXBoT"),rt=(nt=a("kJ7of"),a("jKUgc")),at=a("92sM9"),ot=a("5v9xk"),st=a("4lzC1"),lt=a("c3Bep"),ut=a("3deD8");nt=a("kJ7of"),a("dXBoT"),rt=a("jKUgc"),at=a("92sM9");var ct=a("lcKsG");function ht(t,e,n,i,r){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new rt.default({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=(0,C.isFunction)(r)?function(t){r(t,h)}:null;nt.initProps(h,{shape:{width:l,height:u,x:o,y:s}},n,null,i,g)}return h}function dt(t,e,n){var i=t.getArea(),r=(0,ct.round)(i.r0,1),a=(0,ct.round)(i.r,1),o=new at.default({shape:{cx:(0,ct.round)(t.cx,1),cy:(0,ct.round)(t.cy,1),r0:r,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?o.shape.endAngle=i.startAngle:o.shape.r=r,nt.initProps(o,{shape:{endAngle:i.endAngle,r:a}},n)),o}function pt(t,e,n,i,r){return t?"polar"===t.type?dt(t,e,n):"cartesian2d"===t.type?ht(t,e,n,i,r):null:null}C=a("2FIaD"),je=a("lCvKW"),a("dXBoT"),y=a("isgWw");var ft=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},gt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new ft},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,o,-Math.PI+l,l,!c)):t.moveTo(p*a+n,f*a+i),t.arc(n,i,a,l,u,!c),t.arc(g*s+n,y*s+i,o,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(y.default),yt=a("3dZ3l");function mt(t,e){return t.type===e}var vt=a("lzjvl");function xt(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=(0,vt.retrieveRawValue)(t,e,n[0]);return null!=r?r+"":null}if(i){for(var a=[],o=0;o<n.length;o++)a.push((0,vt.retrieveRawValue)(t,e,n[o]));return a.join(" ")}}function _t(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,C.isArray)(e))return e+"";for(var i=[],r=0;r<n.length;r++){var a=t.getDimensionIndex(n[r]);a>=0&&i.push(e[a])}return i.join(" ")}function bt(t,e,n,i){if((0,C.isNumber)(i))t.setTextConfig({rotation:i});else if((0,C.isArray)(e))t.setTextConfig({rotation:0});else{var r,a=t.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=o;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function St(t,e,n){return e*Math.sin(t)*(n?-1:1)}function wt(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Mt(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;(0,C.isArray)(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,C.map)(i,(function(t){return(0,v.parsePercent)(t,r)}))}}C=a("2FIaD"),v=a("bv5ZD"),C=a("2FIaD"),nt=a("kJ7of"),C=a("2FIaD"),v=a("bv5ZD");var It=Math.max,Tt=Math.min,Ct=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");"cartesian2d"!==r&&"polar"!==r||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){(0,it.traverseElements)(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,o,n);var d=t.get("clip",!0)||h,p=function(t,e){var n=t.getArea&&t.getArea();if(mt(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,o);a.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),m=y.get("borderRadius")||0,v=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function S(t){var e=Rt[l.type](o,t),n=function(t,e,n){return new("polar"===t.type?at.default:rt.default)({shape:Gt(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),v[t]=n,n}o.diff(s).add((function(e){var n=o.getItemModel(e),i=Rt[l.type](o,e,n);if(g&&S(e),o.hasValue(e)&&Et[l.type](i)){var s=!1;d&&(s=At[l.type](p,i));var y=Dt[l.type](t,o,e,i,r,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),Ft(y,o,e,n,i,t,r,"polar"===l.type),_?y.attr({shape:i}):h?Lt(h,c,y,i,e,r,!1,!1):(0,nt.initProps)(y,{shape:i},t,e),o.setItemGraphicEl(e,y),a.add(y),y.ignore=s}})).update((function(e,n){var i=o.getItemModel(e),C=Rt[l.type](o,e,i);if(g){var w=void 0;0===x.length?w=S(n):((w=x[n]).useStyle(y.getItemStyle()),"cartesian2d"===l.type?w.setShape("r",m):w.setShape("cornerRadius",m),v[e]=w);var M=Rt[l.type](o,e),I=Gt(r,M,l);(0,nt.updateProps)(w,{shape:I},c,e)}var T=s.getItemGraphicEl(n);if(o.hasValue(e)&&Et[l.type](C)){var A=!1;if(d&&(A=At[l.type](p,C))&&a.remove(T),T?(0,nt.saveOldStyle)(T):T=Dt[l.type](t,o,e,C,r,c,u.model,!!T,f),h&&(T.forceLabelAnimation=!0),b){var D=T.getTextContent();if(D){var L=(0,lt.labelInner)(D);null!=L.prevValue&&(L.prevValue=L.value)}}else Ft(T,o,e,i,C,t,r,"polar"===l.type);_?T.attr({shape:C}):h?Lt(h,c,T,C,e,r,!0,b):(0,nt.updateProps)(T,{shape:C},t,e,null),o.setItemGraphicEl(e,T),T.ignore=A,a.add(T)}else a.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&(0,nt.removeElementWithFadeOut)(n,t,e)})).execute();var C=this._backgroundGroup||(this._backgroundGroup=new(0,tt.default));C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);a.add(C),this._backgroundEls=v,this._data=o},e.prototype._renderLarge=function(t,e,n){this._clear(),Vt(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Vt(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&pt(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var a=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,a,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:(0,C.map)(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=i.getOrdinalMeta().categories.length;o<s;++o){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),a=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=a;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){(0,nt.removeElementWithFadeOut)(e,t,(0,ot.getECData)(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(yt.default),At={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,a=t.y+t.height,o=It(e.x,t.x),s=Tt(e.x+e.width,r),l=It(e.y,t.y),u=Tt(e.y+e.height,a),c=s<o,h=u<l;return e.x=c&&o>r?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=Tt(e.r,t.r),a=It(e.r0,t.r0);e.r=r,e.r0=a;var o=r-a<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),o}},Dt={cartesian2d:function(t,e,n,i,r,a,o,s,l){var u=new(0,rt.default)({shape:(0,C.extend)({},i),z2:1});return u.__dataIndex=n,u.name="item",a&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,a,o,s,l){var u=!r&&l?gt:at.default,c=new u({shape:i,z2:1});c.name="item";var h,d,p=Nt(r);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===gt}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return(0,v.calculateTextPosition)(t,e,n);var r=h(i),a=null!=e.distance?e.distance:5,o=this.shape,s=o.cx,l=o.cy,u=o.r,c=o.r0,p=(u+c)/2,f=o.startAngle,g=o.endAngle,y=(f+g)/2,m=d?Math.abs(u-c)/2:0,x=Math.cos,_=Math.sin,b=s+u*x(f),S=l+u*_(f),C="left",w="top";switch(r){case"startArc":b=s+(c-a)*x(y),S=l+(c-a)*_(y),C="center",w="top";break;case"insideStartArc":b=s+(c+a)*x(y),S=l+(c+a)*_(y),C="center",w="bottom";break;case"startAngle":b=s+p*x(f)+St(f,a+m,!1),S=l+p*_(f)+wt(f,a+m,!1),C="right",w="middle";break;case"insideStartAngle":b=s+p*x(f)+St(f,-a+m,!1),S=l+p*_(f)+wt(f,-a+m,!1),C="left",w="middle";break;case"middle":b=s+p*x(y),S=l+p*_(y),C="center",w="middle";break;case"endArc":b=s+(u+a)*x(y),S=l+(u+a)*_(y),C="center",w="bottom";break;case"insideEndArc":b=s+(u-a)*x(y),S=l+(u-a)*_(y),C="center",w="top";break;case"endAngle":b=s+p*x(g)+St(g,a+m,!0),S=l+p*_(g)+wt(g,a+m,!0),C="left",w="middle";break;case"insideEndAngle":b=s+p*x(g)+St(g,-a+m,!0),S=l+p*_(g)+wt(g,-a+m,!0),C="right",w="middle";break;default:return(0,v.calculateTextPosition)(t,e,n)}return(t=t||{}).x=b,t.y=S,t.align=C,t.verticalAlign=w,t}),a){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?nt.updateProps:nt.initProps)(c,{shape:g},a)}return c}};function Lt(t,e,n,i,r,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?nt.updateProps:nt.initProps)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(o?nt.updateProps:nt.initProps)(n,{shape:u},c,r)}function kt(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Ot=["x","y","width","height"],Pt=["cx","cy","r","startAngle","endAngle"],Et={cartesian2d:function(t){return!kt(t,Ot)},polar:function(t){return!kt(t,Pt)}},Rt={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,a)}(n,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Nt(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function Ft(t,e,n,i,r,a,o,s){var l=e.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var u=t.shape,c=Mt(i.getModel("itemStyle"),u,!0);(0,C.extend)(u,c),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?o?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":o?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=(0,lt.getLabelStatesModels)(i);(0,lt.setLabelStyle)(t,f,{labelFetcher:a,labelDataIndex:n,defaultText:xt(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,bt(t,"outside"===y?p:y,Nt(o),i.get(["label","rotate"]))}(0,lt.setLabelValueAnimation)(g,f,a.getRawValue(n),(function(t){return _t(e,t)}));var m=i.getModel(["emphasis"]);(0,st.toggleHoverEmphasis)(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),(0,st.setStatesStylesFromModel)(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",(0,C.each)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var Bt=function(){},zt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Bt},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[i]=s,o[r]=n[l+2],a[i]=n[l+i],a[r]=n[l+r],t.rect(a[0],a[1],o[0],o[1])},e}(y.default);function Vt(t,e,n,i){var r=t.getData(),a=r.getLayout("valueAxisHorizontal")?1:0,o=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new zt({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new zt({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),(0,ot.getECData)(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",Wt),h.on("mousemove",Wt)),n&&n.push(h)}var Wt=(0,ut.throttle)((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=a.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=a[d+2],s[i]=a[d+i],s[r]=a[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}(this,t.offsetX,t.offsetY);(0,ot.getECData)(this).dataIndex=e>=0?e:null}),30,!1);function Gt(t,e,n){if(mt(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var a=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:a.r0,r:t?r.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:2*Math.PI}}var Ht=Ct;je=a("lCvKW"),Ze=a("gGiC4");var Ut=a("8QwAx"),Yt=a("hpTXA");function Xt(t,e,n){e=(0,C.isArray)(e)&&{coordDimensions:e}||(0,C.extend)({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=(0,Ut.default)(i,e).dimensions,a=new(0,Yt.default)(r,t);return a.initData(i,n),a}C=a("2FIaD"),C=a("2FIaD");var Kt=a("4MjWZ"),jt=a("39jKu"),Zt=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=r.get("type"),s=a.get("type");"category"===o?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=a.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,a],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&i){var y=[];C.each(g,(function(t,e){var n;C.isArray(t)?(n=t.slice(),t.unshift(e)):C.isArray(t.value)?((n=C.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var m=this.defaultValueDimensions,v=[{name:c,type:(0,Kt.getDimensionTypeByAxis)(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:(0,Kt.getDimensionTypeByAxis)(f),dimsDef:m.slice()}];return Xt(this,{coordDimensions:v,dimensionsCount:m.length+1,encodeDefaulter:C.curry(jt.makeSeriesEncodeForAxisCoordSys,v,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),qt=(C=a("2FIaD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(0,je.__extends)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Ze.default));(0,C.mixin)(qt,Zt,!0);var Jt=qt,Qt=(je=a("lCvKW"),C=a("2FIaD"),yt=a("3dZ3l"),it=a("dXBoT"),st=a("4lzC1"),y=a("isgWw"),nt=a("kJ7of"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===t.get("layout")?1:0;i.diff(a).add((function(t){if(i.hasValue(t)){var e=tn(i.getItemLayout(t),i,t,o,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?((0,nt.saveOldStyle)(n),nn(s,n,i,t)):n=tn(s,i,t,o),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(yt.default)),$t=function(){},en=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new $t},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(y.default);function tn(t,e,n,i,r){var a=t.ends,o=new en({shape:{points:r?rn(a,i,t):a}});return nn(t,o,e,n,r),o}function nn(t,e,n,i,r){var a=n.hostModel;(0,it[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},a,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var o=n.getItemModel(i),s=o.getModel("emphasis");(0,st.setStatesStylesFromModel)(e,o),(0,st.toggleHoverEmphasis)(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function rn(t,e,n){return C.map(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var an=Qt,on=(C=a("2FIaD"),ct=a("lcKsG"),C.each);function sn(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=C.indexOf(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}(t);on(e,(function(t){var e=t.seriesModels;e.length&&(function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,a=t.boxWidthList=[],o=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;on(i,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}on(i,(function(t){var n=t.get("boxWidth");C.isArray(n)||(n=[n,n]),s.push([(0,ct.parsePercent)(n[0],e)||0,(0,ct.parsePercent)(n[1],e)||0])}));var c=.8*e-2,h=c/r*.3,d=(c-h*(r-1))/r,p=d/2-c/2;on(i,(function(t,e){o.push(p),p+=h+d,a.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}(t),on(e,(function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),a=n/2,o="horizontal"===t.get("layout")?0:1,s=1-o,l=["x","y"],u=r.mapDimension(l[o]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),y=x(d,c[3],h),m=x(d,c[4],h),v=[];_(v,g,!1),_(v,y,!0),v.push(f,g,m,y),b(v,f),b(v,m),b(v,p),r.setItemLayout(h,{initBaseline:p[s],ends:v})}function x(t,n,a){var l,u=r.get(n,a),c=[];return c[o]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c))[o]+=e,l}function _(t,e,n){var i=e.slice(),r=e.slice();i[o]+=a,r[o]-=a,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[o]-=a,i[o]+=a,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function ln(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,a="none"===r||0===r,o=0;o<t.length;o++){var s=(0,ct.asc)(t[o].slice()),l=(0,ct.quantile)(s,.25),u=(0,ct.quantile)(s,.5),c=(0,ct.quantile)(s,.75),h=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=a?h:Math.max(h,l-p),g=a?d:Math.min(d,c+p),y=e.itemNameFormatter,m=(0,C.isFunction)(y)?y({value:o}):(0,C.isString)(y)?y.replace("{value}",o+""):o+"";n.push([m,f,l,u,c,g]);for(var v=0;v<s.length;v++){var x=s[v];if(x<f||x>g){var _=[m,x];i.push(_)}}}return{boxData:n,outliers:i}}ct=a("lcKsG"),C=a("2FIaD");var un=a("lgV6V"),cn=a("1tAq5"),hn={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==cn.SOURCE_FORMAT_ARRAY_ROWS&&(0,un.throwError)("");var n=ln(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};je=a("lCvKW"),C=a("2FIaD"),yt=a("3dZ3l"),nt=a("kJ7of"),it=a("dXBoT"),nt=a("kJ7of"),st=a("4lzC1"),y=a("isgWw"),nt=a("kJ7of");var dn=["color","borderColor"],pn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){it.traverseElements(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),a=t.get("clip",!0),o=t.coordinateSystem,s=o.getArea&&o.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var o=e.getItemLayout(n);if(a&&mn(s,o))return;var l=yn(o,n,!0);nt.initProps(l,{shape:{points:o.ends}},t,n),vn(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(o,l){var u=n.getItemGraphicEl(l);if(e.hasValue(o)){var c=e.getItemLayout(o);a&&mn(s,c)?i.remove(u):(u?(nt.updateProps(u,{shape:{points:c.ends}},t,o),(0,nt.saveOldStyle)(u)):u=yn(c,o),vn(u,e,o,r),i.add(u),e.setItemGraphicEl(o,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Sn(t,this.group);var e=t.get("clip",!0)?pt(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var a=yn(i.getItemLayout(n),n);vn(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){Sn(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(yt.default),fn=function(){},gn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new fn},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(y.default);function yn(t,e,n){var i=t.ends;return new gn({shape:{points:n?xn(i,t):i},z2:100})}function mn(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function vn(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,(0,st.setStatesStylesFromModel)(t,r)}function xn(t,e){return C.map(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var _n=function(){},bn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new _n},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(y.default);function Sn(t,e,n,i){var r=t.getData(),a=r.getLayout("largePoints"),o=new bn({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new bn({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new bn({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),wn(1,o,t,r),wn(-1,s,t,r),wn(0,l,t,r),i&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function wn(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var a=n.getModel("itemStyle").getItemStyle(dn);e.useStyle(a),e.style.fill=null,e.style.stroke=r}var Mn=pn,In=(je=a("lCvKW"),Ze=a("gGiC4"),C=a("2FIaD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,je.__extends)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Ze.default));(0,C.mixin)(In,Zt,!0);var Tn=In;function Cn(t){t&&C.isArray(t.series)&&C.each(t.series,(function(t){C.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}C=a("2FIaD");var An=a("h8Fzm"),Dn=(C=a("2FIaD"),["itemStyle","borderColor"]),Ln=["itemStyle","borderColor0"],kn=["itemStyle","borderColorDoji"],On=["itemStyle","color"],Pn=["itemStyle","color0"],En={seriesType:"candlestick",plan:(0,An.default)(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?On:Pn)}function i(t,e){return e.get(0===t?kn:t>0?Dn:Ln)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var a=e.getItemModel(r),o=e.getItemLayout(r).sign,s=a.getItemStyle();s.fill=n(o,a),s.stroke=i(o,a)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");(0,C.extend)(l,s)}}}}},Rn=(it=a("dXBoT"),An=a("h8Fzm"),ct=a("lcKsG"),C=a("2FIaD"),a("7fjeP"));function Nn(t,e,n,i,r,a){return n>i?-1:n<i?1:a?0:e>0?t.get(r,e-1)<=i?1:-1:1}var Fn={seriesType:"candlestick",plan:(0,An.default)(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=(0,ct.parsePercent)((0,C.retrieve2)(t.get("barMaxWidth"),r),r),o=(0,ct.parsePercent)((0,C.retrieve2)(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?(0,ct.parsePercent)(s,r):Math.max(Math.min(r/2,a),o)}(t,n),r=["x","y"],a=n.getDimensionIndex(n.mapDimension(r[0])),o=(0,C.map)(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=o[0],l=o[1],u=o[2],c=o[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(a<0||o.length<4))return{progress:t.pipelineContext.large?function(n,i){for(var r,o,h=(0,Rn.createFloat32Array)(4*n.count),d=0,p=[],f=[],g=i.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);null!=(o=n.next());){var m=g.get(a,o),v=g.get(s,o),x=g.get(l,o),_=g.get(u,o),b=g.get(c,o);isNaN(m)||isNaN(_)||isNaN(b)?(h[d++]=NaN,d+=3):(h[d++]=Nn(g,o,v,x,l,y),p[0]=m,p[1]=_,r=e.dataToPoint(p,null,f),h[d++]=r?r[0]:NaN,h[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),h[d++]=r?r[1]:NaN)}i.setLayout("largePoints",h)}:function(t,n){for(var r,o=n.getStore();null!=(r=t.next());){var h=o.get(a,r),d=o.get(s,r),p=o.get(l,r),f=o.get(u,r),g=o.get(c,r),y=Math.min(d,p),m=Math.max(d,p),v=w(y,h),x=w(m,h),_=w(f,h),b=w(g,h),S=[];M(S,x,0),M(S,v,1),S.push(T(b),T(x),T(_),T(v));var C=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:Nn(o,r,d,p,l,C),initBaseline:d>p?x[1]:v[1],ends:S,brushRect:I(f,g,h)})}function w(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function M(t,e,n){var r=e.slice(),a=e.slice();r[0]=(0,it.subPixelOptimize)(r[0]+i/2,1,!1),a[0]=(0,it.subPixelOptimize)(a[0]-i/2,1,!0),n?t.push(r,a):t.push(a,r)}function I(t,e,n){var r=w(t,n),a=w(e,n);return r[0]-=i/2,a[0]-=i/2,{x:r[0],y:r[1],width:i,height:a[1]-r[1]}}function T(t){return t[0]=(0,it.subPixelOptimize)(t[0],1),t}}}}};je=a("lCvKW"),qe=a("4TZPm");var Bn=a("2LuwV"),zn=(Ze=a("gGiC4"),{color:"fill",borderColor:"stroke"}),Vn={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Wn=(0,Bn.makeInner)(),Gn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return(0,qe.default)(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=Wn(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ze.default);je=a("lCvKW"),C=a("2FIaD"),a("dXBoT"),y=a("isgWw"),it=a("dXBoT"),m=a("kbAoh"),tt=a("2IUoL"),$=a("jud7h"),st=a("4lzC1"),lt=a("c3Bep"),Ue=a("hRFEi");var Hn=a("7aXlh");function Un(t,e){return e=e||[0,0],C.map(["x","y"],(function(n,i){var r=this.getAxis(n),a=e[i],o=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))}),this)}function Yn(t,e){return e=e||[0,0],C.map([0,1],(function(n){var i=e[n],r=t[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function Xn(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function Kn(t,e){return e=e||[0,0],C.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),a=e[i],o=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}yt=a("3dZ3l"),C=a("2FIaD"),C=a("2FIaD"),C=a("2FIaD"),C=a("2FIaD");var jn=a("77M3u");function Zn(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||(0,C.hasOwn)(t,"text")))}function qn(t,e,n){var i,r,a,o=t;if("text"===e)a=o;else{a={},(0,C.hasOwn)(o,"text")&&(a.text=o.text),(0,C.hasOwn)(o,"rich")&&(a.rich=o.rich),(0,C.hasOwn)(o,"textFill")&&(a.fill=o.textFill),(0,C.hasOwn)(o,"textStroke")&&(a.stroke=o.textStroke),(0,C.hasOwn)(o,"fontFamily")&&(a.fontFamily=o.fontFamily),(0,C.hasOwn)(o,"fontSize")&&(a.fontSize=o.fontSize),(0,C.hasOwn)(o,"fontStyle")&&(a.fontStyle=o.fontStyle),(0,C.hasOwn)(o,"fontWeight")&&(a.fontWeight=o.fontWeight),r={type:"text",style:a,silent:!0},i={};var s=(0,C.hasOwn)(o,"textPosition");n?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),(0,C.hasOwn)(o,"textPosition")&&(i.position=o.textPosition),(0,C.hasOwn)(o,"textOffset")&&(i.offset=o.textOffset),(0,C.hasOwn)(o,"textRotation")&&(i.rotation=o.textRotation),(0,C.hasOwn)(o,"textDistance")&&(i.distance=o.textDistance)}return Jn(a,t),(0,C.each)(a.rich,(function(t){Jn(t,t)})),{textConfig:i,textContent:r}}function Jn(t,e){e&&(e.font=e.textFont||e.font,(0,C.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,C.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),(0,C.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,C.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,C.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),(0,C.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),(0,C.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),(0,C.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),(0,C.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,C.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,C.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,C.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,C.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,C.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,C.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Qn(t,e,n){var i=t;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 r=i.textPosition.indexOf("inside")>=0,a=t.fill||"#000";$n(i,e);var o=null==i.textFill;return r?o&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(o&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,(0,C.each)(e.rich,(function(t){$n(t,t)})),i}function $n(t,e){e&&((0,C.hasOwn)(e,"fill")&&(t.textFill=e.fill),(0,C.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),(0,C.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,C.hasOwn)(e,"font")&&(t.font=e.font),(0,C.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,C.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,C.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,C.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,C.hasOwn)(e,"align")&&(t.textAlign=e.align),(0,C.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,C.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,C.hasOwn)(e,"width")&&(t.textWidth=e.width),(0,C.hasOwn)(e,"height")&&(t.textHeight=e.height),(0,C.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,C.hasOwn)(e,"padding")&&(t.textPadding=e.padding),(0,C.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,C.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,C.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,C.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,C.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,C.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,C.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,C.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,C.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,C.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,C.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}C=a("2FIaD"),un=a("lgV6V");var ei=a("8yeYH"),ti=(Bn=a("2LuwV"),C=a("2FIaD"),a("8S9Jc"));jn=a("77M3u"),nt=a("kJ7of"),a("dXBoT"),y=a("isgWw"),V=a("lnAL9");var ni={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ii=(0,C.keys)(ni),ri=((0,C.reduce)(V.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=1,t}),{}),V.TRANSFORMABLE_PROPS.join(", "),["","style","shape","extra"]),ai=(0,Bn.makeInner)();function oi(t,e,n,i,r){var a=t+"Animation",o=(0,nt.getAnimationConfig)(t,i,r)||{},s=ai(e).userDuring;return o.duration>0&&(o.during=s?(0,C.bind)(pi,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),(0,C.extend)(o,n[a]),o}function si(t,e,n,i){var r=(i=i||{}).dataIndex,a=i.isInit,o=i.clearStyle,s=n.isAnimationEnabled(),l=ai(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var i=0;i<ii.length;i++){var r=ii[i],a=ni[r],o=e[r];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(i=0;i<V.TRANSFORMABLE_PROPS.length;i++){var s=V.TRANSFORMABLE_PROPS[i];null!=e[s]&&(n[s]=e[s])}}(0,e,h),gi("shape",e,h),gi("extra",e,h),!a&&s&&(function(t,e,n){for(var i=e.transition,r=ci(i)?V.TRANSFORMABLE_PROPS:(0,Bn.normalizeToArray)(i||[]),a=0;a<r.length;a++){var o=r[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=t[o];n[o]=s}}}(t,e,c),fi("shape",t,e,c),fi("extra",t,e,c),function(t,e,n,i){if(n){var r,a=t.style;if(a){var o=n.transition,s=e.transition;if(o&&!ci(o)){var l=(0,Bn.normalizeToArray)(o);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=a[f=l[u]];r[f]=c}}else if(t.getAnimationStyleProps&&(ci(s)||ci(o)||(0,C.indexOf)(s,"style")>=0)){var h=t.getAnimationStyleProps(),d=h?h.style:null;if(d){!r&&(r=i.style={});var p=(0,C.keys)(n);for(u=0;u<p.length;u++){var f;d[f=p[u]]&&(c=a[f],r[f]=c)}}}}}}(t,e,u,c)),h.style=u,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,a=0;a<r.length;a++){var o=r[a];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,h,o),function(t,e){(0,C.hasOwn)(e,"silent")&&(t.silent=e.silent),(0,C.hasOwn)(e,"ignore")&&(t.ignore=e.ignore),t instanceof jn.default&&(0,C.hasOwn)(e,"invisible")&&(t.invisible=e.invisible),t instanceof y.default&&(0,C.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(a){var d={};(0,C.each)(ri,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),(0,C.extend)(t?d[t]:d,n.enterFrom))}));var p=oi("enter",t,e,n,r);p.duration>0&&t.animateFrom(d,p)}else!function(t,e,n,i,r){if(r){var a=oi("update",t,e,i,n);a.duration>0&&t.animateFrom(r,a)}}(t,e,r||0,n,c);li(t,e),u?t.dirty():t.markRedraw()}function li(t,e){for(var n=ai(t).leaveToProps,i=0;i<ri.length;i++){var r=ri[i],a=r?e[r]:e;a&&a.leaveTo&&(n||(n=ai(t).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,C.extend)(r?n[r]:n,a.leaveTo))}}function ui(t,e,n,i){if(t){var r=t.parent,a=ai(t).leaveToProps;if(a){var o=oi("update",t,e,n,0);o.done=function(){r.remove(t),i&&i()},t.animateTo(a,o)}else r.remove(t),i&&i()}}function ci(t){return"all"===t}var hi={},di={setTransform:function(t,e){return hi.el[t]=e,this},getTransform:function(t){return hi.el[t]},setShape:function(t,e){var n=hi.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=hi.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=hi.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=hi.el.style;if(e)return e[t]},setExtra:function(t,e){return(hi.el.extra||(hi.el.extra={}))[t]=e,this},getExtra:function(t){var e=hi.el.extra;if(e)return e[t]}};function pi(){var t=this,e=t.el;if(e){var n=ai(e).userDuring,i=t.userDuring;n===i?(hi.el=e,i(di)):t.el=t.userDuring=null}}function fi(t,e,n,i){var r=n[t];if(r){var a,o=e[t];if(o){var s=n.transition,l=r.transition;if(l)if(!a&&(a=i[t]={}),ci(l))(0,C.extend)(a,o);else for(var u=(0,Bn.normalizeToArray)(l),c=0;c<u.length;c++){var h=o[p=u[c]];a[p]=h}else if(ci(s)||(0,C.indexOf)(s,t)>=0){!a&&(a=i[t]={});var d=(0,C.keys)(o);for(c=0;c<d.length;c++){var p;h=o[p=d[c]],yi(r[p],h)&&(a[p]=h)}}}}}function gi(t,e,n){var i=e[t];if(i)for(var r=n[t]={},a=(0,C.keys)(i),o=0;o<a.length;o++){var s=a[o];r[s]=(0,ti.cloneValue)(i[s])}}function yi(t,e){return(0,C.isArrayLike)(t)?t!==e:null!=t&&isFinite(t)}C=a("2FIaD"),nt=a("kJ7of");var mi=(0,(Bn=a("2LuwV")).makeInner)(),vi=["percent","easing","shape","style","extra"];function xi(t){t.stopAnimation("keyframe"),t.attr(mi(t))}function _i(t,e,n){if(n.isAnimationEnabled()&&e)if((0,C.isArray)(e))(0,C.each)(e,(function(e){_i(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var a=(0,nt.getAnimationConfig)("enter",n,0);r=a&&a.duration}if(i&&r){var o=mi(t);(0,C.each)(ri,(function(n){var a;n&&!t[n]||(i.sort((function(t,e){return t.percent-e.percent})),(0,C.each)(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=(0,C.keys)(l);if(n||(u=(0,C.filter)(u,(function(t){return(0,C.indexOf)(vi,t)<0}))),u.length){a||((a=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==a&&s[c].targetName===a.targetName&&s[c].stopTracks(u);n&&(o[n]=o[n]||{});var h=n?o[n]:o;(0,C.each)(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),a.whenWithKeys(r*i.percent,l,u,i.easing)}}})),a&&a.delay(e.delay||0).duration(r).start(e.easing))}))}}}var bi=["normal","emphasis","blur","select"],Si={normal:["itemStyle"],emphasis:["emphasis","itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},wi={normal:["label"],emphasis:["emphasis","label"],blur:["blur","label"],select:["select","label"]},Mi=["x","y"],Ii={normal:{},emphasis:{},blur:{},select:{}},Ti={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:C.bind(Un,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:C.bind(Yn,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,C.bind)(Xn,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o},size:C.bind(Kn,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Ci(t){return t instanceof y.default}function Ai(t){return t instanceof jn.default}var Di=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,a=t.getData(),o=this.group,s=Ei(t,a,e,n);r||o.removeAll(),a.diff(r).add((function(e){Ni(n,null,e,s(e,i),t,o,a)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&ui(n,Wn(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);Ni(n,u,e,s(e,i),t,o,a)})).execute();var l=t.get("clip",!0)?pt(t.coordinateSystem,!1,t):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var a=e.getData(),o=Ei(e,a,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=Ni(null,null,u,o(u,r),e,this.group,a);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){it.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(yt.default);function Li(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=Xi(i);e=it.makePath(a,null,r,i.layout||"center"),Wn(e).customPathData=a}else if("image"===n)e=new m.default({}),Wn(e).customImagePath=t.style.image;else if("text"===n)e=new $.default({});else if("group"===n)e=new tt.default;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=it.getShapeClass(n);o||(0,un.throwError)(""),e=new o}return Wn(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function ki(t,e,n,i,r,a,o){xi(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=Mi);var l=i&&i.style;if(l){if("text"===e.type){var u=l;(0,C.hasOwn)(u,"textFill")&&(u.fill=u.textFill),(0,C.hasOwn)(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Ci(e)?l.decal:null;t&&h&&(h.dirty=!0,c=(0,ei.createOrUpdatePatternFromDecal)(h,t)),l.__decalPattern=c}Ai(e)&&l&&(c=l.__decalPattern)&&(l.decal=c),si(e,i,a,{dataIndex:n,isInit:o,clearStyle:!0}),_i(e,i.keyframeAnimation,a)}function Oi(t,e,n,i,r){var a=e.isGroup?null:e,o=r&&r[t].cfg;if(a){var s=a.ensureState(t);if(!1===i){var l=a.getState(t);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),(0,st.setDefaultStateProxy)(a)}}function Pi(t,e,n){var i="normal"===n,r=i?e:Vi(e,n),a=r?r.z2:null;null!=a&&((i?t:t.ensureState(n)).z2=a||0)}function Ei(t,e,n,i){var r=t.get("renderItem"),a=t.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):Ti[a.type](a));for(var s,l,u=(0,C.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=s);var r=e.getItemVisual(i,"style"),a=r&&r.fill,o=r&&r.opacity,l=v(i,"normal").getItemStyle();null!=a&&(l.fill=a),null!=o&&(l.opacity=o);var u={inheritColor:(0,C.isString)(a)?a:"#000"},c=x(i,"normal"),h=lt.createTextStyle(c,null,u,!1,!0);h.text=c.getShallow("show")?(0,C.retrieve2)(t.getFormattedLabel(i,"normal"),xt(e,i)):null;var d=lt.createTextConfig(c,u,!1);return b(n,l),l=Qn(l,h,d),n&&_(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var a=e.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[a]:a},styleEmphasis:function(n,i){null==i&&(i=s);var r=v(i,"emphasis").getItemStyle(),a=x(i,"emphasis"),o=lt.createTextStyle(a,null,null,!0,!0);o.text=a.getShallow("show")?(0,C.retrieve3)(t.getFormattedLabel(i,"emphasis"),t.getFormattedLabel(i,"normal"),xt(e,i)):null;var l=lt.createTextConfig(a,null,!0);return b(n,r),r=Qn(r,o,l),n&&_(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),(0,C.hasOwn)(zn,t)){var i=e.getItemVisual(n,"style");return i?i[zn[t]]:null}if((0,C.hasOwn)(Vn,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===a.type){var e=a.getBaseAxis();return(0,Ue.getLayoutOnAxis)((0,C.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return lt.getFont(t,n)}},o.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Ri(t.getData())},h={},d={},p={},f={},g=0;g<bi.length;g++){var y=bi[g];p[y]=t.getModel(Si[y]),f[y]=t.getModel(wi[y])}function m(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function v(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=m(t).getModel(Si[n])):m(t).getModel(Si[n]):p[n]}function x(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=m(t).getModel(wi[n])):m(t).getModel(wi[n]):f[n]}return function(t,n){return s=t,l=null,h={},d={},r&&r((0,C.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function _(t,e){for(var n in e)(0,C.hasOwn)(e,n)&&(t[n]=e[n])}function b(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Ri(t){var e={};return(0,C.each)(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(e[r]=e[r]||[])[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function Ni(t,e,n,i,r,a,o){if(i){var s=Fi(t,e,n,i,r,a);return s&&o.setItemGraphicEl(n,s),s&&(0,st.toggleHoverEmphasis)(s,i.focus,i.blurScope,i.emphasisDisabled),s}a.remove(e)}function Fi(t,e,n,i,r,a){var o=-1,s=e;e&&Bi(e,i,r)&&(o=(0,C.indexOf)(a.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=Li(i),s&&(l=s,(u=h).copyTransform(l),Ai(u)&&Ai(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,Ci(u)&&Ci(l)&&u.setShape(l.shape)))),!1===i.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),Ii.normal.cfg=Ii.normal.conOpt=Ii.emphasis.cfg=Ii.emphasis.conOpt=Ii.blur.cfg=Ii.blur.conOpt=Ii.select.cfg=Ii.select.conOpt=null,Ii.isLegacy=!1,function(t,e,n,i,r,a){if(!t.isGroup){zi(n,null,a),zi(n,"emphasis",a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===o)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=Li(o),t.setTextContent(c)),ki(null,c,e,o,null,i,r);for(var h=o&&o.style,d=0;d<bi.length;d++){var p=bi[d];if("normal"!==p)Oi(p,c,0,Wi(o,a[p].conOpt,p),null)}h?c.dirty():c.markRedraw()}}}}(h,n,i,r,c,Ii),function(t,e,n,i,r){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&Bi(o,a,i)&&(o=null),o||(o=Li(a),t.setClipPath(o)),ki(null,o,e,a,null,i,r)}}(h,n,i,r,c),ki(t,h,n,i,Ii,r,c),(0,C.hasOwn)(i,"info")&&(Wn(h).info=i.info);for(var d=0;d<bi.length;d++){var p=bi[d];if("normal"!==p)Oi(p,h,0,Wi(i,Vi(i,p),p),Ii)}return function(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,a=n.currentZLevel;i.z=r,i.zlevel=a;var o=e.z2;null!=o&&(i.z2=o||0);for(var s=0;s<bi.length;s++)Pi(i,e,bi[s])}}(h,i,r),"group"===i.type&&function(t,e,n,i,r){var a=i.children,o=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(o||l||u){if(l)return c={api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:r,group:e},void new(0,Hn.default)(c.oldChildren,c.newChildren,Hi,Hi,c).add(Ui).update(Ui).remove(Yi).execute();var c;u&&e.removeAll();for(var h=0;h<o;h++){var d=a[h],p=e.childAt(h);d?(null==d.ignore&&(d.ignore=!1),Fi(t,p,n,d,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=h;f--){var g=e.childAt(f);Gi(e,g,r)}}}(t,h,n,i,r),o>=0?a.replaceAt(h,o):a.add(h),h}function Bi(t,e,n){var i,r=Wn(t),a=e.type,o=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==r.customGraphicType||"path"===a&&(i=o)&&((0,C.hasOwn)(i,"pathData")||(0,C.hasOwn)(i,"d"))&&Xi(o)!==r.customPathData||"image"===a&&(0,C.hasOwn)(s,"image")&&s.image!==r.customImagePath}function zi(t,e,n){var i=e?Vi(t,e):t,r=e?Wi(t,i,"emphasis"):t.style,a=t.type,o=i?i.textConfig:null,s=t.textContent,l=s?e?Vi(s,e):s:null;if(r&&(n.isLegacy||Zn(r,a,!!o,!!l))){n.isLegacy=!0;var u=qn(r,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=o,h.conOpt=l}function Vi(t,e){return e?t?t[e]:null:t}function Wi(t,e,n){var i=e&&e.style;return null==i&&"emphasis"===n&&t&&(i=t.styleEmphasis),i}function Gi(t,e,n){e&&ui(e,Wn(t).option,n)}function Hi(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function Ui(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Fi(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Yi(t){var e=this.context,n=e.oldChildren[t];n&&ui(n,Wn(n).option,e.seriesModel)}function Xi(t){return t&&(t.pathData||t.d)}je=a("lCvKW"),tt=a("2IUoL"),a("dXBoT"),nt=a("kJ7of"),it=a("dXBoT"),je=a("lCvKW");var Ki=a("2ZiWs");function ji(t,e){this.parent.drift(t,e)}tt=a("2IUoL"),nt=a("kJ7of"),a("dXBoT"),nt=a("kJ7of"),ot=a("5v9xk"),st=a("4lzC1"),C=a("2FIaD"),lt=a("c3Bep"),m=a("kbAoh"),nt=a("kJ7of");var Zi=function(t){function e(e,n,i,r){var a=t.call(this)||this;return a.updateData(e,n,i,r),a}return(0,je.__extends)(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var a=(0,Ki.createSymbol)(t,-1,-1,2,2,null,r);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=ji,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){(0,st.enterEmphasis)(this.childAt(0))},e.prototype.downplay=function(){(0,st.leaveEmphasis)(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",o=t.hostModel,s=e.getSymbolSize(t,n),l=a!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):nt.updateProps(d,h,o,n),(0,nt.saveOldStyle)(d)}if(this._updateCommon(t,n,s,i,r),l){var d=this.childAt(0);u||(h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,nt.initProps(d,h,o,n))}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var a,o,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(a=i.emphasisItemStyle,o=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");a=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),o=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=(0,lt.getLabelStatesModels)(y),d=v.getShallow("scale"),p=y.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(x||0)*Math.PI/180||0);var _=(0,Ki.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),p&&f.attr("cursor",p);var b=t.getItemVisual(e,"style"),S=b.fill;if(f instanceof m.default){var w=f.style;f.useStyle((0,C.extend)({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle((0,C.extend)({},b)):f.useStyle(b),f.style.decal=null,f.setColor(S,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=f.z2,f.z2+=M):null!=I&&(f.z2=I,this._z2=null);var T=r&&r.useNameLabel;(0,lt.setLabelStyle)(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):xt(t,e)},inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=f.ensureState("emphasis");A.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=o;var D=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;A.scaleX=this._sizeX*D,A.scaleY=this._sizeY*D,this.setSymbolScale(1),(0,st.toggleHoverEmphasis)(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=(0,ot.getECData)(this).dataIndex,a=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var o=i.getTextContent();o&&nt.removeElement(o,{style:{opacity:0}},e,{dataIndex:r,removeOpt:a,cb:function(){i.removeTextContent()}})}else i.removeTextContent();nt.removeElement(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return(0,Ki.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize"))},e}(tt.default);function qi(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Ji(t){return null==t||(0,C.isObject)(t)||(t={isIgnore:t}),t||{}}function Qi(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,lt.getLabelStatesModels)(e),cursorStyle:e.get("cursor")}}C=a("2FIaD"),lt=a("c3Bep");var $i=function(){function t(t){this.group=new tt.default,this._SymbolCtor=t||Zi}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ji(e);var n=this.group,i=t.hostModel,r=this._data,a=this._SymbolCtor,o=e.disableAnimation,s=Qi(t),l={disableAnimation:o},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(qi(t,r,i,e)){var o=new a(t,i,s,l);o.setPosition(r),t.setItemGraphicEl(i,o),n.add(o)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(qi(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new a(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var y={x:p[0],y:p[1]};o?d.attr(y):nt.updateProps(d,y,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Qi(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Ji(n);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(qi(e,a,r,n)){var o=new this._SymbolCtor(e,r,this._seriesScope);o.traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},t.prototype.eachRendered=function(t){it.traverseElements(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();function er(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}je=a("lCvKW"),Ki=a("2ZiWs"),tt=a("2IUoL"),st=a("4lzC1");var tr=function(t){function e(e,n){var i=t.call(this)||this,r=new Zi(e,n),a=new(0,tt.default);return i.add(r),i.add(a),i.updateData(e,n),i}return(0,je.__extends)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),a=0;a<i;a++){var o=(0,Ki.createSymbol)(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/i*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(o)}er(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var a=i[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}er(n,t)},e.prototype.highlight=function(){(0,st.enterEmphasis)(this)},e.prototype.downplay=function(){(0,st.leaveEmphasis)(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),a=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),s=(0,Ki.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=a.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var h=(0,Ki.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=a.get(["rippleEffect","scale"]),p.brushType=a.get(["rippleEffect","brushType"]),p.period=1e3*a.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=o,p.color=u,p.rippleEffectColor=a.get(["rippleEffect","color"]),p.rippleNumber=a.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,(0,st.toggleHoverEmphasis)(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(tt.default),nr=a("0445l"),ir=(C=a("2FIaD"),An=a("h8Fzm"),a("lSDa3"));function rr(t,e){return{seriesType:t,plan:(0,An.default)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,a=e||r.large;if(i){var o=(0,C.map)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");(0,ir.isDimensionStacked)(n,o[0])&&(o[0]=l),(0,ir.isDimensionStacked)(n,o[1])&&(o[1]=l);var u=n.getStore(),c=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=a&&(0,Rn.createFloat32Array)(n*s),o=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=i.dataToPoint(g,null,l)}else o[0]=u.get(c,d),o[1]=u.get(h,d),f=i.dataToPoint(o,null,l);a?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(d,f.slice())}a&&e.setLayout("points",r)}}}}}}Rn=a("7fjeP");var ar=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(){this._symbolDraw=new $i(tr)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=rr("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=nr.clone(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}((yt=a("3dZ3l")).default),or=(je=a("lCvKW"),qe=a("4TZPm"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,qe.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.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},e}((Ze=a("gGiC4")).default));je=a("lCvKW"),nt=a("kJ7of");var sr=a("NBRFu");a("dXBoT");var lr=a("fCBaM"),ur=(nt=a("kJ7of"),a("dVgap")),cr=($=a("jud7h"),st=a("4lzC1"),yt=a("3dZ3l"),a("ePpUr")),hr=(lt=a("c3Bep"),nt=a("kJ7of"),["itemStyle","opacity"]),dr=function(t){function e(e,n){var i=t.call(this)||this,r=i,a=new lr.default,o=new $.default;return r.setTextContent(o),i.setTextGuideLine(a),i.updateData(e,n,!0),i}return(0,je.__extends)(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,a=t.getItemModel(e),o=t.getItemLayout(e),s=a.getModel("emphasis"),l=a.get(hr);l=null==l?1:l,n||(0,nt.saveOldStyle)(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:o.points}),i.style.opacity=0,nt.initProps(i,{style:{opacity:l}},r,e)):nt.updateProps(i,{style:{opacity:l},shape:{points:o.points}},r,e),(0,st.setStatesStylesFromModel)(i,a),this._updateLabel(t,e),(0,st.toggleHoverEmphasis)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;(0,lt.setLabelStyle)(r,(0,lt.getLabelStatesModels)(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new sr.default(c[0][0],c[0][1]):null},nt.updateProps(r,{style:{x:s.x,y:s.y}},a,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),(0,cr.setLabelLineStyle)(n,(0,cr.getLabelLineStatesModels)(o),{stroke:u})},e}(ur.default),pr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,a=this.group;i.diff(r).add((function(t){var e=new dr(i,t);i.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),a.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);nt.removeElementWithFadeOut(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(yt.default),fr=(je=a("lCvKW"),C=a("2FIaD"),Bn=a("2LuwV"),jt=a("39jKu"),function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}()),gr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new fr(C.bind(this.getData,this),C.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Xt(this,{coordDimensions:["value"],encodeDefaulter:C.curry(jt.makeSeriesEncodeForNameBased,this)})},e.prototype._defaultLabelLine=function(t){(0,Bn.defaultEmphasis)(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),a=n.getSum(r);return i.percent=a?+(n.get(r,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.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"}}},e}((Ze=a("gGiC4")).default),yr=a("3Q8SW");function mr(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),a=function(t,e){return yr.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),o=t.get("orient"),s=a.width,l=a.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],a="ascending"===e,o=0,s=t.count();o<s;o++)r[o]=o;return(0,C.isFunction)(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return a?i[t]-i[e]:i[e]-i[t]})),r}(n,r),c=a.x,h=a.y,d="horizontal"===o?[(0,ct.parsePercent)(t.get("minSize"),l),(0,ct.parsePercent)(t.get("maxSize"),l)]:[(0,ct.parsePercent)(t.get("minSize"),s),(0,ct.parsePercent)(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),v=(("horizontal"===o?s:l)-m*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===o){var r=n.get(i,t)||0,a=(0,ct.linearMap)(r,[f,g],d,!0),u=void 0;switch(y){case"top":u=h;break;case"center":u=h+(l-a)/2;break;case"bottom":u=h+(l-a)}return[[e,u],[e,u+a]]}var p,m=n.get(i,t)||0,v=(0,ct.linearMap)(m,[f,g],d,!0);switch(y){case"left":p=c;break;case"center":p=c+(s-v)/2;break;case"right":p=c+s-v}return[[p,e],[p+v,e]]};"ascending"===r&&(v=-v,m=-m,"horizontal"===o?c+=s:h+=l,u=u.reverse());for(var _=0;_<u.length;_++){var b=u[_],S=u[_+1],w=n.getItemModel(b);if("horizontal"===o){var M=w.get(["itemStyle","width"]);null==M?M=v:(M=(0,ct.parsePercent)(M,s),"ascending"===r&&(M=-M));var I=x(b,c),T=x(S,c+M);c+=M+m,n.setItemLayout(b,{points:I.concat(T.slice().reverse())})}else{var A=w.get(["itemStyle","height"]);null==A?A=v:(A=(0,ct.parsePercent)(A,l),"ascending"===r&&(A=-A)),I=x(b,h),T=x(S,h+A),h+=A+m,n.setItemLayout(b,{points:I.concat(T.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var i,r,a,o,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(h[0][0]+h[3][0])/2+5,a=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,a=(h[1][1]+h[2][1])/2,i="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),o=[[r,a],[r,a]];else{var p=void 0,f=void 0,g=void 0,y=void 0,m=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(g=p-m)-5,i="right"):"right"===l?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(g=p+m)+5,i="left"):"top"===l?(p=(h[3][0]+h[0][0])/2,a=(y=(f=(h[3][1]+h[0][1])/2)-m)-5,i="center"):"bottom"===l?(p=(h[1][0]+h[2][0])/2,a=(y=(f=(h[1][1]+h[2][1])/2)+m)+5,i="center"):"rightTop"===l?(p="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(a=(y=f-m)-5,i="center"):(r=(g=p+m)+5,i="top")):"rightBottom"===l?(p=h[2][0],f=h[2][1],"horizontal"===e?(a=(y=f+m)+5,i="center"):(r=(g=p+m)+5,i="bottom")):"leftTop"===l?(p=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(a=(y=f-m)-5,i="center"):(r=(g=p-m)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(a=(y=f+m)+5,i="center"):(r=(g=p-m)-5,i="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(a=(y=f+m)+5,i="center"):(r=(g=p+m)+5,i="left")),"horizontal"===e?r=g=p:a=y=f,o=[[p,f],[g,y]]}c.label={linePoints:o,x:r,y:a,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}function vr(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}ct=a("lcKsG"),C=a("2FIaD"),je=a("lCvKW"),je=a("lCvKW"),y=a("isgWw");var xr=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},_r=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new xr},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=r/3?1:2),l=e.y-i(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(o)*a,e.y+i(o)*a),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(o)*a,e.y-i(o)*a),t.lineTo(s,l)},e}(y.default);tt=a("2IUoL"),nt=a("kJ7of"),a("dXBoT"),at=a("92sM9");var br=a("l0SnR");function Sr(t,e){var n=null==t?"":t+"";return e&&((0,C.isString)(e)?n=e.replace("{value}",n):(0,C.isFunction)(e)&&(n=e(t))),n}nt=a("kJ7of"),$=a("jud7h"),st=a("4lzC1"),lt=a("c3Bep"),yt=a("3dZ3l"),ct=a("lcKsG"),Ki=a("2ZiWs"),m=a("kbAoh"),C=a("2FIaD"),ot=a("5v9xk"),W=a("hpPau");var wr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r);return{cx:(0,ct.parsePercent)(n[0],e.getWidth()),cy:(0,ct.parsePercent)(n[1],e.getHeight()),r:(0,ct.parsePercent)(t.get("radius"),a/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var a=this.group,o=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?gt:at.default,h=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),f=[s,l];(0,W.normalizeArcAngles)(f,!o);for(var g=(l=f[1])-(s=f[0]),y=s,m=[],v=0;h&&v<i.length;v++){var x=new c({shape:{startAngle:y,endAngle:l=s+g*Math.min(Math.max(i[v][0],0),1),cx:r.cx,cy:r.cy,clockwise:o,r0:r.r-p,r:r.r},silent:!0});x.setStyle({fill:i[v][1]}),x.setStyle(d.getLineStyle(["color","width"])),m.push(x),y=l}m.reverse(),(0,C.each)(m,(function(t){return a.add(t)}));var _=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,_,r,s,l,o,p),this._renderTitleAndDetail(t,e,n,_,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,_,r,s,l,o,p)},e.prototype._renderTicks=function(t,e,n,i,r,a,o,s,l){for(var u,c,h=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),v=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=v.get("splitNumber"),S=(0,ct.parsePercent)(m.get("length"),f),w=(0,ct.parsePercent)(v.get("length"),f),M=a,I=(o-a)/_,T=I/b,A=m.getModel("lineStyle").getLineStyle(),D=v.getModel("lineStyle").getLineStyle(),L=m.get("distance"),k=0;k<=_;k++){if(u=Math.cos(M),c=Math.sin(M),m.get("show")){var O=L?L+l:l,P=new br.default({shape:{x1:u*(f-O)+d,y1:c*(f-O)+p,x2:u*(f-S-O)+d,y2:c*(f-S-O)+p},style:A,silent:!0});"auto"===A.stroke&&P.setStyle({stroke:i(k/_)}),h.add(P)}if(x.get("show")){O=x.get("distance")+L;var E=Sr((0,ct.round)(k/_*(y-g)+g),x.get("formatter")),R=i(k/_),N=u*(f-S-O)+d,B=c*(f-S-O)+p,F=x.get("rotate"),z=0;"radial"===F?(z=-M+2*Math.PI)>Math.PI/2&&(z+=Math.PI):"tangential"===F?z=-M-Math.PI/2:(0,C.isNumber)(F)&&(z=F*Math.PI/180),0===z?h.add(new $.default({style:(0,lt.createTextStyle)(x,{text:E,x:N,y:B,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):h.add(new $.default({style:(0,lt.createTextStyle)(x,{text:E,x:N,y:B,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:B,rotation:z}))}if(v.get("show")&&k!==_){O=(O=v.get("distance"))?O+l:l;for(var V=0;V<=b;V++){u=Math.cos(M),c=Math.sin(M);var W=new br.default({shape:{x1:u*(f-O)+d,y1:c*(f-O)+p,x2:u*(f-w-O)+d,y2:c*(f-w-O)+p},silent:!0,style:D});"auto"===D.stroke&&W.setStyle({stroke:i((k+V/b)/_)}),h.add(W),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,a,o,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),x=+t.get("min"),_=+t.get("max"),b=[x,_],S=[a,o];function w(e,n){var i,a=y.getItemModel(e).getModel("pointer"),o=(0,ct.parsePercent)(a.get("width"),r.r),s=(0,ct.parsePercent)(a.get("length"),r.r),l=t.get(["pointer","icon"]),u=a.get("offsetCenter"),c=(0,ct.parsePercent)(u[0],r.r),h=(0,ct.parsePercent)(u[1],r.r),d=a.get("keepAspect");return(i=l?(0,Ki.createSymbol)(l,c-o/2,h-s,o,s,null,d):new _r({shape:{angle:-Math.PI/2,width:o,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function M(t,e){var n=f.get("roundCap")?gt:at.default,i=f.get("overlap"),o=i?f.get("width"):l/y.count(),u=i?r.r-o:r.r-(t+1)*o,c=i?r.r:r.r-t*o,h=new n({shape:{startAngle:a,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=_-y.get(v,t)%_),h}(g||p)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(p){var i=w(e,a);nt.initProps(i,{rotation:-((isNaN(+n)?S[0]:(0,ct.linearMap)(n,b,S,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=M(e,a),o=f.get("clip");nt.initProps(r,{shape:{endAngle:(0,ct.linearMap)(n,b,S,o)}},t),u.add(r),(0,ot.setCommonECData)(t.seriesIndex,y.dataType,e,r),d[e]=r}})).update((function(e,n){var i=y.get(v,e);if(p){var r=c.getItemGraphicEl(n),o=r?r.rotation:a,s=w(e,o);s.rotation=o,nt.updateProps(s,{rotation:-((isNaN(+i)?S[0]:(0,ct.linearMap)(i,b,S,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=M(e,l?l.shape.endAngle:a),x=f.get("clip");nt.updateProps(m,{shape:{endAngle:(0,ct.linearMap)(i,b,S,x)}},t),u.add(m),(0,ot.setCommonECData)(t.seriesIndex,y.dataType,e,m),d[e]=m}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(p){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof m.default){var c=s.style;s.useStyle((0,C.extend)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,ct.linearMap)(y.get(v,t),b,[0,1],!0))),s.z2EmphasisLift=0,(0,st.setStatesStylesFromModel)(s,e),(0,st.toggleHoverEmphasis)(s,r,a,o)}if(g){var h=d[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,st.setStatesStylesFromModel)(h,e),(0,st.toggleHoverEmphasis)(h,r,a,o)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),a=n.get("offsetCenter"),o=n.get("keepAspect"),s=(0,Ki.createSymbol)(r,e.cx-i/2+(0,ct.parsePercent)(a[0],e.r),e.cy-i/2+(0,ct.parsePercent)(a[1],e.r),i,i,null,o);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var a=this,o=t.getData(),s=o.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new tt.default,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);o.diff(this._data).add((function(t){h[t]=new $.default({silent:!0}),d[t]=new $.default({silent:!0})})).update((function(t,e){h[t]=a._titleEls[e],d[t]=a._detailEls[e]})).execute(),o.each((function(e){var n=o.getItemModel(e),a=o.get(s,e),g=new tt.default,y=i((0,ct.linearMap)(a,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),x=r.cx+(0,ct.parsePercent)(v[0],r.r),_=r.cy+(0,ct.parsePercent)(v[1],r.r);(A=h[e]).attr({z2:f?0:2,style:(0,lt.createTextStyle)(m,{x:x,y:_,text:o.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(A)}var b=n.getModel("detail");if(b.get("show")){var S=b.get("offsetCenter"),C=r.cx+(0,ct.parsePercent)(S[0],r.r),w=r.cy+(0,ct.parsePercent)(S[1],r.r),M=(0,ct.parsePercent)(b.get("width"),r.r),I=(0,ct.parsePercent)(b.get("height"),r.r),T=t.get(["progress","show"])?o.getItemVisual(e,"style").fill:y,A=d[e],D=b.get("formatter");A.attr({z2:f?0:2,style:(0,lt.createTextStyle)(b,{x:C,y:w,text:Sr(a,D),width:isNaN(M)?null:M,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:T})}),(0,lt.setLabelValueAnimation)(A,{normal:b},a,(function(t){return Sr(t,D)})),p&&(0,lt.animateLabelValue)(A,e,o,t,{getFormattedLabel:function(t,e,n,i,r,o){return Sr(o?o.interpolatedValue:a,D)}}),g.add(A)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(yt.default),Mr=(je=a("lCvKW"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Xt(this,["value"])},e.type="series.gauge",e.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}},e}((Ze=a("gGiC4")).default));function Ir(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){(0,C.isNumber)(n)&&(n=r[n]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(n))return!1}return!0}))}))}function Tr(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(a,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){(0,C.isString)(e)&&(e=r["ec-"+e]);var a=n.getItemVisual(e,"style"),o=i.ensureUniqueItemVisual(t,"style");(0,C.extend)(o,a);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(t,s[l],n.getItemVisual(e,s[l]))}}))}))}function Cr(t){return t instanceof Array||(t=[t,t]),t}function Ar(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Cr(t.get("edgeSymbol")),r=Cr(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),a=Cr(i.getShallow("symbol",!0)),o=Cr(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch((0,C.extend)(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style"),l.stroke=u&&u.fill}a[0]&&r.setVisual("fromSymbol",a[0]),a[1]&&r.setVisual("toSymbol",a[1]),o[0]&&r.setVisual("fromSymbolSize",o[0]),o[1]&&r.setVisual("toSymbolSize",o[1])}))}))}C=a("2FIaD"),C=a("2FIaD"),C=a("2FIaD"),C=a("2FIaD");var Dr=a("jkyg0"),Lr=(C=a("2FIaD"),C=a("2FIaD"),function(t){return t.get("autoCurveness")||null}),kr=function(t,e){var n=Lr(t),i=20,r=[];if(C.isNumber(n))i=n;else if(C.isArray(n))return void(t.__curvenessList=n);e>i&&(i=e);var a=i%2?i+2:i+3;r=[];for(var o=0;o<a;o++)r.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=r},Or=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join("--\x3e")},Pr=function(t){var e=t.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},Er=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Rr(t,e,n,i){if(Lr(n)){var r=Or(t,e,n),a=n.__edgeMap,o=a[Pr(r)];a[r]&&!o?a[r].isForward=!0:o&&a[r]&&(o.isForward=!0,a[r].isForward=!1),a[r]=a[r]||[],a[r].push(i)}}function Nr(t,e,n,i){var r=Lr(e),a=C.isArray(r);if(!r)return null;var o=function(t,e){var n=Or(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=function(t,e){return Er(Or(t.node1,t.node2,e),e)+Er(Or(t.node2,t.node1,e),e)}(t,e);kr(e,u),t.lineStyle=t.lineStyle||{};var c=Or(t.node1,t.node2,e),h=e.__curvenessList,d=a||u%2?0:1;if(o.isForward)return h[d+s];var p=Pr(c),f=Er(p,e),g=h[s+f+d];return i?a?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function Fr(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),Br(n,t)}}function Br(t,e){t.eachEdge((function(t,n){var i=C.retrieve3(t.getModel().get(["lineStyle","curveness"]),-Nr(t,e,n,!0),0),r=Dr.clone(t.node1.getLayout()),a=Dr.clone(t.node2.getLayout()),o=[r,a];+i&&o.push([(r[0]+a[0])/2-(r[1]-a[1])*i,(r[1]+a[1])/2-(a[0]-r[0])*i]),t.setLayout(o)}))}function zr(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];(0,C.each)(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var a=0;a<i.count();a++){for(var o=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],a);isNaN(u)||(s=!0),o.push(u)}s?i.setItemLayout(a,n.dataToPoint(o)):i.setItemLayout(a,[NaN,NaN])}Br(i.graph,t)}else e&&"none"!==e||Fr(t)}))}function Vr(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function Wr(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}Dr=a("jkyg0"),C=a("2FIaD");var Gr=Math.PI,Hr=[];function Ur(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var a=r.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),h){if(n){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-u];Dr.normalize(g,g),Dr.scale(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),Xr(n,t.get(["circular","rotateLabel"]),l,u)}Yr[e](t,s,o,c,l,u,h),s.eachEdge((function(e,n){var i,r=C.retrieve3(e.getModel().get(["lineStyle","curveness"]),Nr(e,t,n),0),a=Dr.clone(e.node1.getLayout()),o=Dr.clone(e.node2.getLayout()),s=(a[0]+o[0])/2,c=(a[1]+o[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),u*r+c*(1-r)]),e.setLayout([a,o,i])}))}}}var Yr={value:function(t,e,n,i,r,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+a]),s+=n}))},symbolSize:function(t,e,n,i,r,a,o){var s=0;Hr.length=o;var l=Vr(t);e.eachNode((function(t){var e=Wr(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=Gr/2),Hr[t.dataIndex]=n,s+=2*n}));var u=(2*Gr-s)/o/2,c=0;e.eachNode((function(t){var e=u+Hr[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+a]),c+=e}))}};function Xr(t,e,n,i){var r=t.getGraphicEl();if(r){var a=t.getModel().get(["label","rotate"])||0,o=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";o.setTextConfig({rotation:-l,position:c,origin:"center"});var h=o.ensureState("emphasis");C.extend(h.textConfig||(h.textConfig={}),{position:c})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function Kr(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&Ur(t,"symbolSize")}))}var jr=(Dr=a("jkyg0")).scaleAndAdd;function Zr(t,e,n){for(var i=t,r=e,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=Dr.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Dr.clone(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,a=0;a<r.length;a++){var o=r[a];if(!o.ignoreForceLayout){var s=o.n1,c=o.n2;Dr.sub(e,c.p,s.p);var h=Dr.len(e)-o.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),Dr.normalize(e,e),!s.fixed&&jr(s.p,s.p,e,f*h*g),!c.fixed&&jr(c.p,c.p,e,-(1-f)*h*g)}}for(a=0;a<n;a++)(x=i[a]).fixed||(Dr.sub(e,l,x.p),jr(x.p,x.p,e,u*g));for(a=0;a<n;a++){s=i[a];for(var y=a+1;y<n;y++){c=i[y],Dr.sub(e,c.p,s.p),0===(h=Dr.len(e))&&(Dr.set(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&jr(s.pp,s.pp,e,m),!c.fixed&&jr(c.pp,c.pp,e,-m)}}var v=[];for(a=0;a<n;a++){var x;(x=i[a]).fixed||(Dr.sub(v,x.p,x.pp),jr(x.p,x.p,v,g),Dr.copy(x.pp,x.p))}var _=(g*=.992)<.01;p&&p(i,r,_),t&&t(_)}}}function qr(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,a=i.edgeData,o=t.getModel("force"),s=o.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Ur(t,"value"):Fr(t);var l=r.getDataExtent("value"),u=a.getDataExtent("value"),c=o.get("repulsion"),h=o.get("edgeLength"),d=C.isArray(c)?c:[c,c],p=C.isArray(h)?h:[h,h];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=(0,ct.linearMap)(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=a.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),a=(0,ct.linearMap)(e,u,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=r.getModel(),s=C.retrieve3(r.getModel().get(["lineStyle","curveness"]),-Nr(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),y=e.getBoundingRect(),m=Zr(f,g,{rect:y,gravity:o.get("gravity"),friction:o.get("friction")});m.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&Dr.copy(t[n].p,i.getNodeByIndex(n).getLayout())})),m.afterStep((function(t,e,a){for(var o=0,s=t.length;o<s;o++)t[o].fixed||i.getNodeByIndex(o).setLayout(t[o].p),n[r.getId(o)]=t[o].p;for(o=0,s=e.length;o<s;o++){var l=e[o],u=i.getEdgeByIndex(o),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],Dr.copy(d[0],c),Dr.copy(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null}))}ct=a("lcKsG"),Dr=a("jkyg0"),C=a("2FIaD"),je=a("lCvKW"),Dr=a("jkyg0"),nr=a("0445l");var Jr=a("lV62k"),Qr=(V=a("lnAL9"),ct=a("lcKsG"),Dr.applyTransform);function $r(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var ea=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new(0,V.default),n._rawTransformable=new(0,V.default),n.name=e,n}return(0,je.__extends)(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new(0,Jr.default)(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new(0,Jr.default)(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new(0,Jr.default)(t,e,n,i));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[(0,ct.parsePercent)(t[0],e.getWidth()),(0,ct.parsePercent)(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Dr.applyTransform([],i,t),n=Dr.applyTransform([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),nr.copy(this.transform||(this.transform=[]),e.transform||nr.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],nr.invert(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new(0,V.default);return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Qr(n,t,i):Dr.copy(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?Qr([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=$r(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=$r(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(V.default),ta=(yr=a("3Q8SW"),a("2WfwC"));function na(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),a=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o=[],s=[];ta.fromPoints(a,o,s),s[0]-o[0]==0&&(s[0]+=1,o[0]-=1),s[1]-o[1]==0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),u=function(t,e,n){var i=(0,C.extend)(t.getBoxLayoutParams(),{aspect:n});return(0,yr.getLayoutRect)(i,{width:e.getWidth(),height:e.getHeight()})}(t,e,l);isNaN(l)&&(o=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-o[0],h=s[1]-o[1],d=u.width,p=u.height,f=t.coordinateSystem=new ea;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}C=a("2FIaD"),je=a("lCvKW"),tt=a("2IUoL"),it=a("dXBoT"),je=a("lCvKW"),C=a("2FIaD"),Dr=a("jkyg0"),Ki=a("2ZiWs"),je=a("lCvKW"),a("dXBoT"),br=a("l0SnR");var ia=a("1IPNS"),ra=(y=a("isgWw"),Dr=a("jkyg0"),br.default.prototype),aa=ia.default.prototype,oa=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function sa(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}!function(t){(0,je.__extends)((function(){return null!==t&&t.apply(this,arguments)||this}),t)}(oa);var la=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return(0,je.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oa},e.prototype.buildPath=function(t,e){sa(e)?ra.buildPath.call(this,t,e):aa.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return sa(this.shape)?ra.pointAt.call(this,t):aa.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=sa(e)?[e.x2-e.x1,e.y2-e.y1]:aa.tangentAt.call(this,t);return Dr.normalize(n,n)},e}(y.default);tt=a("2IUoL"),nt=a("kJ7of"),a("dXBoT"),nt=a("kJ7of"),st=a("4lzC1"),lt=a("c3Bep"),ct=a("lcKsG");var ua=["fromSymbol","toSymbol"];function ca(t){return"_"+t+"Type"}function ha(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Ki.normalizeSymbolSize(r);return i+l+Ki.normalizeSymbolOffset(o||0,l)+(a||"")+(s||"")}function da(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Ki.normalizeSymbolSize(r),u=Ki.normalizeSymbolOffset(o||0,l),c=Ki.createSymbol(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=t,c}}function pa(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var fa=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return(0,je.__extends)(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new la({name:"line",subPixelOptimize:!0});return pa(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,nt.initProps(r,{shape:{percent:1}},i,e),this.add(r),(0,C.each)(ua,(function(n){var i=da(n,t,e);this.add(i),this[ca(n)]=ha(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),a=t.getItemLayout(e),o={shape:{}};pa(o.shape,a),nt.updateProps(r,o,i,e),(0,C.each)(ua,(function(n){var i=ha(n,t,e),r=ca(n);if(this[r]!==i){this.remove(this.childOfName(n));var a=da(n,t,e);this.add(a)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");a=p.getModel("lineStyle").getLineStyle(),o=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=(0,lt.getLabelStatesModels)(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,r.ensureState("blur").style=o,r.ensureState("select").style=s,(0,C.each)(ua,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<st.SPECIAL_STATES.length;n++){var i=st.SPECIAL_STATES[n],a=r.getState(i);if(a){var o=a.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=o.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}e.markRedraw()}}),this);var y=i.getRawValue(e);(0,lt.setLabelStyle)(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?(0,ct.round)(y):y)+""});var m=this.getTextContent();if(m){var v=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=v.get("position")||"middle";var x=v.get("distance");(0,C.isArray)(x)||(x=[x,x]),m.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),(0,st.toggleHoverEmphasis)(this,c,h,u)},e.prototype.highlight=function(){(0,st.enterEmphasis)(this)},e.prototype.downplay=function(){(0,st.leaveEmphasis)(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");pa(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){for(var r=1,a=this.parent;a;)a.scaleX&&(r/=a.scaleX),a=a.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=Dr.sub([],u,l);if(Dr.normalize(c,c),e&&(e.setPosition(l),C(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),C(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,y=s/2,m=o.tangentAt(y),v=[m[1],-m[0]],x=o.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,d="top";break;default:S=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+S,h=m[0]<0?"right":"left",i.originX=-f*_,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+S,h="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+S,h=m[0]>=0?"right":"left",i.originX=f*_,i.originY=-S}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function C(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(tt.default);function ga(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,lt.getLabelStatesModels)(e)}}function ya(t){return isNaN(t[0])||isNaN(t[1])}function ma(t){return t&&!ya(t[0])&&!ya(t[1])}lt=a("c3Bep");var va=function(){function t(t){this.group=new tt.default,this._LineCtor=t||fa}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var a=ga(t);t.diff(r).add((function(n){e._doAdd(t,n,a)})).update((function(n,i){e._doUpdate(r,t,i,n,a)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ga(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++)if(ma(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){it.traverseElements(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(ma(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var a=t.getItemGraphicEl(n);ma(e.getItemLayout(i))?(a?a.updateData(e,i,r):a=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,a),this.group.add(a)):this.group.remove(a)},t}(),xa=(je=a("lCvKW"),a("gqWkF")),_a=a("1DnBg"),ba=a("cATUV");function Sa(t,e){return!!wa(t)[e]}function wa(t){return t["\0_ec_interaction_mutex"]||(t["\0_ec_interaction_mutex"]={})}function Ma(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(_a.stop(i.event),Ia(t,e,n,i,r))}function Ia(t,e,n,i,r){r.isAvailableBehavior=(0,C.bind)(Ta,null,n,i),t.trigger(e,r)}function Ta(t,e,n){var i=n[t];return!t||i&&(!(0,C.isString)(i)||e.event[i+"Key"])}C=a("2FIaD"),ba.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},C.noop),C=a("2FIaD");var Ca=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,C.bind)(n._mousedownHandler,n),r=(0,C.bind)(n._mousemoveHandler,n),a=(0,C.bind)(n._mouseupHandler,n),o=(0,C.bind)(n._mousewheelHandler,n),s=(0,C.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,C.defaults)((0,C.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",o),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",a),e.off("mousewheel",o),e.off("pinch",s)},n}return(0,je.__extends)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!_a.isMiddleOrRightButtonOnMouseUpDown(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&Ta("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Sa(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,a=e-i,o=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&_a.stop(t.event),Ia(this,"pan","moveOnMouseMove",t,{dx:a,dy:o,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){_a.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=Ta("zoomOnMouseWheel",t,this._opt),n=Ta("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),a=t.offsetX,o=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;Ma(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(i);Ma(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:o,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Sa(this._zr,"globalPan")||Ma(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(xa.default);function Aa(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Da(t,e,n,i){var r=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var La={axisPointer:1,tooltip:1,brush:1};function ka(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!La.hasOwnProperty(i.mainType)&&r&&r.model!==n}a("dXBoT"),nt=a("kJ7of");var Oa=a("ibBA5"),Pa=(Dr=a("jkyg0"),[]),Ea=[],Ra=[],Na=Oa.quadraticAt,Fa=Dr.distSquare,Ba=Math.abs;function za(t,e,n){for(var i,r=t[0],a=t[1],o=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)Pa[0]=Na(r[0],a[0],o[0],c),Pa[1]=Na(r[1],a[1],o[1],c),(p=Ba(Fa(Pa,e)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u;Ea[0]=Na(r[0],a[0],o[0],i),Ea[1]=Na(r[1],a[1],o[1],i),Ra[0]=Na(r[0],a[0],o[0],d),Ra[1]=Na(r[1],a[1],o[1],d);var p=Fa(Ea,e)-l;if(Ba(p)<.01)break;var f=Fa(Ra,e)-l;u/=2,p<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function Va(t,e){var n=[],i=Oa.quadraticSubdivide,r=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Dr.clone(l[0]),Dr.clone(l[1])],l[2]&&l.__original.push(Dr.clone(l[2])));var h=l.__original;if(null!=l[2]){if(Dr.copy(r[0],h[0]),Dr.copy(r[1],h[2]),Dr.copy(r[2],h[1]),u&&"none"!==u){var d=Wr(t.node1),p=za(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(d=Wr(t.node2),p=za(r,h[1],d*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),Dr.copy(l[0],r[0]),Dr.copy(l[1],r[2]),Dr.copy(l[2],r[1])}else Dr.copy(a[0],h[0]),Dr.copy(a[1],h[1]),Dr.sub(o,a[1],a[0]),Dr.normalize(o,o),u&&"none"!==u&&(d=Wr(t.node1),Dr.scaleAndAdd(a[0],a[0],o,d*e)),c&&"none"!==c&&(d=Wr(t.node2),Dr.scaleAndAdd(a[1],a[1],o,-d*e)),Dr.copy(l[0],a[0]),Dr.copy(l[1],a[1])}))}function Wa(t){return"view"===t.type}yt=a("3dZ3l"),ot=a("5v9xk");var Ga=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){var n=new $i,i=new va,r=this.group;this._controller=new Ca(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(Wa(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):nt.updateProps(s,l,t)}Va(t.getGraph(),Vr(t));var u=t.getData();a.updateData(u);var c=t.getEdgeData();o.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),a=e.getModel();if(r){r.off("drag").off("dragend");var o=a.get("draggable");o&&r.on("drag",(function(a){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),Ur(t,"symbolSize",e,[a.offsetX,a.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),Br(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(o,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"])&&((0,ot.getECData)(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&((0,ot.getECData)(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(t){Xr(t,f,g,y)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,a=this._controllerHost,o=this.group;r.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!ka(e,n,t)})),Wa(t.coordinateSystem)?(r.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Aa(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Da(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),Va(t.getGraph(),Vr(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Vr(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Va(t.getGraph(),Vr(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(yt.default),Ha=(je=a("lCvKW"),Yt=a("hpTXA"),C=a("2FIaD"),Bn=a("2LuwV"),a("9xTlQ"));function Ua(t){return"_EC_"+t}C=a("2FIaD"),Yt=a("hpTXA"),C=a("2FIaD");var Ya=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[Ua(t)]){var i=new Xa(t,e);return i.hostGraph=this,this.nodes.push(i),n[Ua(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[Ua(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(C.isNumber(t)&&(t=this.nodes[t]),C.isNumber(e)&&(e=this.nodes[e]),t instanceof Xa||(t=i[Ua(t)]),e instanceof Xa||(e=i[Ua(e)]),t&&e){var a=t.id+"-"+e.id,o=new Ka(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),r[a]=o,o}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof Xa&&(t=t.id),e instanceof Xa&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof Xa||(e=this._nodesMap[Ua(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,e,null))for(var o=[e];o.length;){var s=o.shift(),l=s[r];for(a=0;a<l.length;a++){var u=l[a],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;o.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r;for(e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0})),r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(r=0,a=e.count();r<a;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var a=i[r];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),Xa=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=C.createHashMap(),e=C.createHashMap(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var r=[i.node1],a=[i.node2],o=0;o<r.length;){var s=r[o];o++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(o=0;o<a.length;){var u=a[o];for(o++,e.set(u.dataIndex,!0),l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),a.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),Ka=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=C.createHashMap(),e=C.createHashMap();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var a=n[r];r++,e.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)t.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}for(r=0;r<i.length;){var s=i[r];for(r++,e.set(s.dataIndex,!0),o=0;o<s.outEdges.length;o++)t.set(s.outEdges[o].dataIndex,!0),i.push(s.outEdges[o].node2)}return{edge:t.keys(),node:e.keys()}},t}();function ja(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}C.mixin(Xa,ja("hostGraph","data")),C.mixin(Ka,ja("hostGraph","edgeData"));var Za=Ya,qa=(C=a("2FIaD"),(0,(Bn=a("2LuwV")).makeInner)());function Ja(t,e){if(qa(this).mainData===this){var n=(0,C.extend)({},qa(this).datas);n[this.dataType]=e,no(e,n,t)}else io(e,this.dataType,qa(this).mainData,t);return e}function Qa(t,e){return t.struct&&t.struct.update(),e}function $a(t,e){return(0,C.each)(qa(e).datas,(function(n,i){n!==e&&io(n.cloneShallow(),i,e,t)})),e}function eo(t){var e=qa(this).mainData;return null==t||null==e?e:qa(e).datas[t]}function to(){var t=qa(this).mainData;return null==t?[{data:t}]:(0,C.map)((0,C.keys)(qa(t).datas),(function(e){return{type:e,data:qa(t).datas[e]}}))}function no(t,e,n){qa(t).datas={},(0,C.each)(e,(function(e,i){io(e,i,t,n)}))}function io(t,e,n,i){qa(n).datas[e]=t,qa(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=eo,t.getLinkedDataAll=to}var ro=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,no(e,n,t),(0,C.each)(n,(function(n){(0,C.each)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,(0,C.curry)(Ja,t))}))})),e.wrapMethod("cloneShallow",(0,C.curry)($a,t)),(0,C.each)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,(0,C.curry)(Qa,t))})),(0,C.assert)(n[e.dataType]===e)},ao=(Ut=a("8QwAx"),a("fbRBA"));function oo(t,e,n,i,r){for(var a=new Za(i),o=0;o<t.length;o++)a.addNode(C.retrieve(t[o].id,t[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<e.length;o++){var c=e[o],h=c.source,d=c.target;a.addEdge(h,d,u)&&(l.push(c),s.push(C.retrieve((0,Bn.convertOptionIdName)(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=(0,qe.default)(t,n);else{var g=ao.default.get(f),y=g&&g.dimensions||[];C.indexOf(y,"value")<0&&y.concat(["value"]);var m=(0,Ut.default)(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(p=new(0,Yt.default)(m,n)).initData(t)}var v=new(0,Yt.default)(["value"],n);return v.initData(l,s),r&&r(p,v),ro({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}qe=a("4TZPm"),Bn=a("2LuwV"),Ze=a("gGiC4");var so=a("eckBc"),lo=a("5LNAo"),uo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,je.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new fr(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,Bn.defaultEmphasis)(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],a=this;if(r&&i){Lr(n=this)&&(n.__curvenessList=[],n.__edgeMap={},kr(n));var o=oo(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Ha.default.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return C.each(o.edges,(function(t){Rr(t.node1,t.node2,this,t.dataIndex)}),this),o.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),(0,so.createTooltipMarkup)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return(0,lo.defaultSeriesFormatTooltip)({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=C.map(this.option.categories||[],(function(t){return null!=t.value?t:C.extend({value:0},t)})),e=new(0,Yt.default)(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(Ze.default);function co(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function ho(t,e,n,i){var r=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(co(t,s),i)),null!=o){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(r*o,u),l)/r}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),h=(e.originY-t.y)*(o-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(co(t,s),i),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}}C=a("2FIaD");var po={type:"graphRoam",event:"graphRoam",update:"none"};je=a("lCvKW"),it=a("dXBoT"),rt=a("jKUgc"),m=a("kbAoh"),st=a("4lzC1"),ee=a("2JyUO");var fo=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ee.platformApi.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,a){var o=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],y=f[1],m=i(f[2]);h.globalAlpha=m,h.drawImage(o,g-u,y-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),x=v.data,_=0,b=x.length,S=this.minOpacity,C=this.maxOpacity-S;_<b;){m=x[_+3]/256;var w=4*Math.floor(255*m);if(m>0){var M=a(m)?s:l;m>0&&(m=m*C+S),x[_++]=M[w],x[_++]=M[w+1],x[_++]=M[w+2],x[_++]=M[w+3]*m*256}else _+=4}return h.putImageData(v,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ee.platformApi.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,o=0;o<256;o++)t[e](o/255,!0,r),i[a++]=r[0],i[a++]=r[1],i[a++]=r[2],i[a++]=r[3];return i},t}();function go(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}C=a("2FIaD"),yt=a("3dZ3l"),lt=a("c3Bep");var yo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):go(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(go(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){it.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var a,o,s,l,u=t.coordinateSystem,c=mt(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");a=h.getBandWidth()+.5,o=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=t.get(["itemStyle","borderRadius"]),x=(0,lt.getLabelStatesModels)(t),_=t.getModel("emphasis"),b=_.get("focus"),S=_.get("blurScope"),C=_.get("disabled"),w=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var I=void 0,T=f.getItemVisual(M,"style");if(c){var A=f.get(w[0],M),D=f.get(w[1],M);if(isNaN(f.get(w[2],M))||isNaN(A)||isNaN(D)||A<s[0]||A>s[1]||D<l[0]||D>l[1])continue;var L=u.dataToPoint([A,D]);I=new rt.default({shape:{x:L[0]-a/2,y:L[1]-o/2,width:a,height:o},style:T})}else{if(isNaN(f.get(w[1],M)))continue;I=new rt.default({z2:1,shape:u.dataToRect([f.get(w[0],M)]).contentShape,style:T})}if(f.hasItemOption){var k=f.getItemModel(M),O=k.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),y=k.getModel(["blur","itemStyle"]).getItemStyle(),m=k.getModel(["select","itemStyle"]).getItemStyle(),v=k.get(["itemStyle","borderRadius"]),b=O.get("focus"),S=O.get("blurScope"),C=O.get("disabled"),x=(0,lt.getLabelStatesModels)(k)}I.shape.r=v;var P=t.getRawValue(M),E="-";P&&null!=P[2]&&(E=P[2]+""),(0,lt.setLabelStyle)(I,x,{labelFetcher:t,labelDataIndex:M,defaultOpacity:T.opacity,defaultText:E}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=m,(0,st.toggleHoverEmphasis)(I,b,S,C),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=e.getData(),s=this._hmLayer||this._hmLayer||new fo;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,y=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(y,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),x=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(x,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=C.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,a=0;return function(t){var i;for(i=a;i<r;i++)if((o=e[i].interval)[0]<=t&&t<=o[1]){a=i;break}if(i===r)for(i=a-1;i>=0;i--){var o;if((o=e[i].interval)[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&i<r&&n[i]}}(x,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:a.color.getColorMapper()},_);var b=new m.default({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(yt.default),mo=(je=a("lCvKW"),Ze=a("gGiC4"),qe=a("4TZPm"),ao=a("fbRBA"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,qe.default)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ao.default.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ze.default));je=a("lCvKW"),qe=a("4TZPm"),Ze=a("gGiC4"),Ki=a("2ZiWs"),tt=a("2IUoL");var vo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t){return(0,qe.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new(0,tt.default),n=(0,Ki.createSymbol)("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),a="none"===i?"circle":i,o=.8*t.itemHeight,s=(0,Ki.createSymbol)(a,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Ze.default);function xo(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),a=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:(0,C.isNumber)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),o=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(o),c="x"===s||"radius"===s?1:0,h=(0,C.map)(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return(0,ir.isDimensionStacked)(e,h[0])&&(d=!0,h[0]=p),(0,ir.isDimensionStacked)(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _o(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}function bo(t,e,n,i,r,a,o,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],y=xo(r,e,o),m=t.getLayout("points")||[],v=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,C=void 0;switch(_.cmd){case"=":S=2*_.idx,C=2*_.idx1;var w=m[S],M=m[S+1],I=v[C],T=v[C+1];(isNaN(w)||isNaN(M))&&(w=I,M=T),u.push(w,M),c.push(I,T),h.push(n[S],n[S+1]),d.push(i[C],i[C+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,D=y.dataDimsForPoint,L=r.dataToPoint([e.get(D[0],A),e.get(D[1],A)]);C=2*A,u.push(L[0],L[1]),c.push(v[C],v[C+1]);var k=_o(y,r,e,A);h.push(k[0],k[1]),d.push(i[C],i[C+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(p.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var O=u.length,P=(0,Rn.createFloat32Array)(O),E=(0,Rn.createFloat32Array)(O),R=(0,Rn.createFloat32Array)(O),N=(0,Rn.createFloat32Array)(O),B=[];for(x=0;x<f.length;x++){var F=f[x],z=2*x,V=2*F;P[z]=u[V],P[z+1]=u[V+1],E[z]=c[V],E[z+1]=c[V+1],R[z]=h[V],R[z+1]=h[V+1],N[z]=d[V],N[z+1]=d[V+1],B[x]=p[F]}return{current:P,next:E,stackedOnCurrent:R,stackedOnNext:N,status:B}}je=a("lCvKW"),C=a("2FIaD"),ir=a("lSDa3"),C=a("2FIaD"),Rn=a("7fjeP"),tt=a("2IUoL"),nt=a("kJ7of");var So=a("8BJkx");$=a("jud7h"),a("dXBoT"),nt=a("kJ7of"),Bn=a("2LuwV"),je=a("lCvKW"),y=a("isgWw"),W=a("hpPau"),Oa=a("ibBA5");var wo=Math.min,Mo=Math.max;function Io(t,e){return isNaN(t)||isNaN(e)}function To(t,e,n,i,r,a,o,s,l){for(var u,c,h,d,p,f,g=n,y=0;y<i;y++){var m=e[2*g],v=e[2*g+1];if(g>=r||g<0)break;if(Io(m,v)){if(l){g+=a;continue}break}if(g===n)t[a>0?"moveTo":"lineTo"](m,v),h=m,d=v;else{var x=m-u,_=v-c;if(x*x+_*_<.5){g+=a;continue}if(o>0){for(var b=g+a,S=e[2*b],C=e[2*b+1];S===m&&C===v&&y<i;)y++,g+=a,S=e[2*(b+=a)],C=e[2*b+1],x=(m=e[2*g])-u,_=(v=e[2*g+1])-c;var w=y+1;if(l)for(;Io(S,C)&&w<i;)w++,S=e[2*(b+=a)],C=e[2*b+1];var M=.5,I=0,T=0,A=void 0,D=void 0;if(w>=i||Io(S,C))p=m,f=v;else{I=S-u,T=C-c;var L=m-u,k=S-m,O=v-c,P=C-v,E=void 0,R=void 0;if("x"===s){var N=I>0?1:-1;p=m-N*(E=Math.abs(L))*o,f=v,A=m+N*(R=Math.abs(k))*o,D=v}else if("y"===s){var B=T>0?1:-1;p=m,f=v-B*(E=Math.abs(O))*o,A=m,D=v+B*(R=Math.abs(P))*o}else E=Math.sqrt(L*L+O*O),p=m-I*o*(1-(M=(R=Math.sqrt(k*k+P*P))/(R+E))),f=v-T*o*(1-M),D=v+T*o*M,A=wo(A=m+I*o*M,Mo(S,m)),D=wo(D,Mo(C,v)),A=Mo(A,wo(S,m)),f=v-(T=(D=Mo(D,wo(C,v)))-v)*E/R,p=wo(p=m-(I=A-m)*E/R,Mo(u,m)),f=wo(f,Mo(c,v)),A=m+(I=m-(p=Mo(p,wo(u,m))))*R/E,D=v+(T=v-(f=Mo(f,wo(c,v))))*R/E}t.bezierCurveTo(h,d,p,f,m,v),h=A,d=D}else t.lineTo(m,v)}u=m,c=v,g+=a}return y}var Co=function(){this.smooth=0,this.smoothConstraint=!0},Ao=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,je.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Co},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Io(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Io(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=To(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,a=W.default.CMD,o="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case a.M:n=r[l++],i=r[l++];break;case a.L:if(u=r[l++],c=r[l++],(g=o?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var y=o?(c-i)*g+i:(u-n)*g+n;return o?[t,y]:[y,t]}n=u,i=c;break;case a.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],p=r[l++],f=r[l++];var m=o?(0,Oa.cubicRootAt)(n,u,h,p,t,s):(0,Oa.cubicRootAt)(i,c,d,f,t,s);if(m>0)for(var v=0;v<m;v++){var x=s[v];if(x<=1&&x>=0)return y=o?(0,Oa.cubicAt)(i,c,d,f,x):(0,Oa.cubicAt)(n,u,h,p,x),o?[t,y]:[y,t]}n=p,i=f}}},e}(y.default),Do=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e}(Co),Lo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Do},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length/2,o=e.smoothMonotone;if(e.connectNulls){for(;a>0&&Io(n[2*a-2],n[2*a-1]);a--);for(;r<a&&Io(n[2*r],n[2*r+1]);r++);}for(;r<a;){var s=To(t,n,r,a,a,1,e.smooth,o,e.connectNulls);To(t,i,r+s-1,s,a,-1,e.stackedOnSmooth,o,e.connectNulls),r+=s+1,t.closePath()}},e}(y.default),ko=(yt=a("3dZ3l"),st=a("4lzC1"),lt=a("c3Bep"),ot=a("5v9xk"),Rn=a("7fjeP"),a("bZ9NN"));function Oo(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Po(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),i=Math.max(o,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Eo(t,e){var n=Po(t),i=n[0],r=n[1],a=Po(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function Ro(t){return C.isNumber(t)?t:t?.5:0}function No(t,e,n,i){var r=e.getBaseAxis(),a="x"===r.dim||"radius"===r.dim?0:1,o=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],o.push(u[0],u[1]),n){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+c[a])/2,p=[];l[a]=p[a]=d,l[1-a]=u[1-a],p[1-a]=c[1-a],o.push(l[0],l[1]),o.push(p[0],p[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function Fo(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){a=i[o];break}}if(a){var l=e.getAxis(r),u=C.map(a.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,i,r=[],a=t.length;function o(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:(0,te.lerp)(r,[t.color,e.color])}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(o(i,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}n&&(r.push(o(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,y=g-f;if(y<.001)return"transparent";C.each(d,(function(t){t.offset=(t.coord-f)/y})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new So.default(0,0,0,0,d,!0);return m[r]=f,m[r+"2"]=g,m}}}function Bo(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*Zi.getSymbolSize(e,o)[t.isHorizontal()?1:0]>i)return!1;return!0}(a,e))){var o=e.mapDimension(a.dim),s={};return C.each(a.getViewLabels(),(function(t){var e=a.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function zo(t,e){return[t[2*e],t[2*e+1]]}function Vo(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<st.SPECIAL_STATES.length;e++)if(t.get([st.SPECIAL_STATES[e],"endLabel","show"]))return!0;return!1}function Wo(t,e,n,i){if(mt(e,"cartesian2d")){var r=i.getModel("endLabel"),a=r.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=Vo(i)?function(n,i){t._endLabelOnDuring(n,i,o,s,a,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=ht(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return dt(e,n,i)}te=a("l3Be0");var Go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.init=function(){var t=new tt.default,e=new $i;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,y=!e.ssr&&t.get("animation"),m=!l.isEmpty(),v=l.get("origin"),x=xo(r,o,v),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=(0,Rn.createFloat32Array)(2*i),a=0;a<i;a++){var o=_o(n,t,e,a);r[2*a]=o[0],r[2*a+1]=o[1]}return r}(r,o,x),b=t.get("showSymbol"),S=t.get("connectNulls"),w=b&&!c&&Bo(t,o,r),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),M.setItemGraphicEl(e,null))})),b||d.remove(),a.add(g);var I,T=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(I=r.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=Fo(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(p&&h.type===r.type&&T===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,ko.convertToColorString)(A));var D=g.getClipPath();if(D){var L=Wo(this,r,!1,t);nt.initProps(D,{shape:L.shape},t)}else g.setClipPath(Wo(this,r,!0,t));b&&d.updateData(o,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Oo(this._stackedOnPoints,_)&&Oo(this._points,u)||(y?this._doUpdateAnimation(o,_,r,n,T,v,S):(T&&(u=No(u,r,T,S),_&&(_=No(_,r,T,S))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&d.updateData(o,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(o,r,I),T&&(u=No(u,r,T,S),_&&(_=No(_,r,T,S))),p=this._newPolyline(u),m?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,ko.convertToColorString)(A)),g.setClipPath(Wo(this,r,!0,t));var k=t.getModel("emphasis"),O=k.get("focus"),P=k.get("blurScope"),E=k.get("disabled");p.useStyle(C.defaults(s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),(0,st.setStatesStylesFromModel)(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),(0,ot.getECData)(p).seriesIndex=t.seriesIndex,(0,st.toggleHoverEmphasis)(p,O,P,E);var R=Ro(t.get("smooth")),N=t.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),f){var B=o.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(C.defaults(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),B&&(F=Ro(B.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:N,connectNulls:S}),(0,st.setStatesStylesFromModel)(f,t,"areaStyle"),(0,ot.getECData)(f).seriesIndex=t.seriesIndex,(0,st.toggleHoverEmphasis)(f,O,P,E)}var z=function(t){i._changePolyState(t)};o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=T,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){(0,ot.getECData)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),a=Bn.queryDataIndex(r,i);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=r.getLayout("points"),s=r.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Zi(r,a)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else yt.default.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),a=Bn.queryDataIndex(r,i);if(this._changePolyState("normal"),null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else yt.default.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,st.setStatesFlag)(this._polyline,t),e&&(0,st.setStatesFlag)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Ao({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Lo({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,a=e.getBaseAxis(),o=a.inverse;"cartesian2d"===e.type?(i=a.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===a.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");C.isFunction(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=C.isFunction(u)?u(null):u;t.eachItemGraphicEl((function(t,a){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-y[1]/180*Math.PI):(d=g.r0,p=g.r,f=y[0])}else{var m=n;i?(d=m.x,p=m.x+m.width,f=t.x):(d=m.y+m.height,p=m.y,f=t.y)}var v=p===d?0:(f-d)/(p-d);o&&(v=1-v);var x=C.isFunction(u)?u(a):l*v+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Vo(t)){var r=t.getData(),a=this._polyline,o=r.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new $.default({z2:200})).ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(o);l>=0&&((0,lt.setLabelStyle)(a,(0,lt.getLabelStatesModels)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?_t(r,n):xt(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,a=i?r?"right":"left":"center",o=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}(i,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,a,o){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=a.get("precision"),p=a.get("distance")||0,f=o.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=e.shape,v=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(y?-1:1),_=(g?0:-p)*(y?-1:1),b=g?"x":"y",S=function(t,e,n){for(var i,r,a=t.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(r=t[2*u+o],!isNaN(r)&&!isNaN(t[2*u+1-o]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,v,b),C=S.range,w=C[1]-C[0],M=void 0;if(w>=1){if(w>1&&!h){var I=zo(u,C[0]);s.attr({x:I[0]+x,y:I[1]+_}),r&&(M=c.getRawValue(C[0]))}else{(I=l.getPointOn(v,b))&&s.attr({x:I[0]+x,y:I[1]+_});var T=c.getRawValue(C[0]),A=c.getRawValue(C[1]);r&&(M=Bn.interpolateRawValues(n,d,T,A,S.t))}i.lastFrameIndex=C[0]}else{var D=1===t||i.lastFrameIndex>0?C[0]:0;I=zo(u,D),r&&(M=c.getRawValue(D)),s.attr({x:I[0]+x,y:I[1]+_})}if(r){var L=(0,lt.labelInner)(s);"function"==typeof L.setLabelText&&L.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,a,o){var s=this._polyline,l=this._polygon,u=t.hostModel,c=bo(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(h=No(c.current,n,r,o),d=No(c.stackedOnCurrent,n,r,o),p=No(c.next,n,r,o),f=No(c.stackedOnNext,n,r,o)),Eo(h,p)>3e3||l&&Eo(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),nt.updateProps(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),nt.updateProps(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],m=c.status,v=0;v<m.length;v++)if("="===m[v].cmd){var x=t.getItemGraphicEl(m[v].idx1);x&&y.push({el:x,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(yt.default);je=a("lCvKW"),je=a("lCvKW"),tt=a("2IUoL"),C=a("2FIaD"),Ki=a("2ZiWs"),Dr=a("jkyg0"),Oa=a("ibBA5");var Ho=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return(0,je.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new fa(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");C.isArray(i)||(i=[i,i]);var a=t.getItemVisual(e,"style"),o=n.get("color")||a&&a.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=(0,Ki.createSymbol)(r,-.5,-.5,1,1,o)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",o),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(o),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),a=1e3*e.get("period"),o=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=C.retrieve(e.get("delay"),(function(e){return e/t.count()*a/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(a=this._getLineLength(i)/l*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=C.isFunction(u)?u(n):u,i.__t>0&&(c=-a*i.__t),this._animateSymbol(i,a,c,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var a=this,o=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){a._updateSymbolPosition(t)}));i||o.done((function(){a.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return Dr.dist(t.__p1,t.__cp1)+Dr.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,a=[t.x,t.y],o=a.slice(),s=Oa.quadraticAt,l=Oa.quadraticDerivativeAt;a[0]=s(e[0],i[0],n[0],r),a[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Dr.dist(o,a),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===t.__lastT?t.scaleY=2*Dr.dist(e,a):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=a[0],t.y=a[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(tt.default);je=a("lCvKW"),tt=a("2IUoL"),a("dXBoT"),lr=a("fCBaM"),nt=a("kJ7of"),st=a("4lzC1");var Uo=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return(0,je.__extends)(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new lr.default({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};nt.updateProps(r,a,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,(0,st.toggleHoverEmphasis)(this,o,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(tt.default),Yo=(je=a("lCvKW"),Dr=a("jkyg0"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return(0,je.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new Uo(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var a=e[r-1],o=e[r];i+=Dr.dist(a,o),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var a,o=this._lastFrame;if(e<this._lastFramePercent){for(a=Math.min(o+1,r-1);a>=0&&!(i[a]<=e);a--);a=Math.min(a,r-2)}else{for(a=o;a<r&&!(i[a]>e);a++);a=Math.min(a-1,r-2)}var s=(e-i[a])/(i[a+1]-i[a]),l=n[a],u=n[a+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},e}(Ho));je=a("lCvKW"),Jr=a("lV62k"),tt=a("2IUoL"),a("dXBoT"),y=a("isgWw");var Xo=a("anAoQ"),Ko=a("lK81I"),jo=(ot=a("5v9xk"),function(){this.polyline=!1,this.curveness=0,this.segs=[]}),Zo=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,je.__extends)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jo},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var a=i[n++];if(a>0){t.moveTo(i[n++],i[n++]);for(var o=1;o<a;o++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(Xo.containStroke(u,c,d,p,a,t,e))return o}o++}else for(o=0,s=0;s<i.length;){if(u=i[s++],c=i[s++],d=i[s++],p=i[s++],r>0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(Ko.containStroke(u,c,f,g,d,p,a,t,e))return o}else if(Xo.containStroke(u,c,d,p,a,t,e))return o;o++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,a=-1/0,o=0;o<e.length;){var s=e[o++],l=e[o++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),a=Math.max(l,a)}t=this._rect=new Jr.default(n,i,r,a)}return t},e}(y.default),qo=function(){function t(){this.group=new tt.default}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var a=r.length,o=new Float32Array(a+i.length);o.set(r),o.set(i,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Zo({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var a=(0,ot.getECData)(t);a.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){a.dataIndex=null;var n=t.hoverDataIdx;n>0&&(a.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Jo={seriesType:"lines",plan:(0,(An=a("h8Fzm")).default)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,a){var o=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,o);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(o[f],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=a.getItemModel(c),y=(p=t.getLineCoords(c,o),[]);if(n)for(var m=0;m<p;m++)y.push(e.dataToPoint(o[m]));else{y[0]=e.dataToPoint(o[0]),y[1]=e.dataToPoint(o[1]);var v=g.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}a.setItemLayout(c,y)}}}}}},Qo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),a=t.get("zlevel"),o=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o>0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&pt(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=Jo.reset(t,e,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),a=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new qo:new va(r?i?Yo:Uo:i?Ho:fa),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}((yt=a("3dZ3l")).default),$o=(je=a("lCvKW"),Ze=a("gGiC4"),Yt=a("hpTXA"),C=a("2FIaD"),so=a("eckBc"),"undefined"==typeof Uint32Array?Array:Uint32Array),es="undefined"==typeof Float64Array?Array:Float64Array;function ts(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=(0,C.map)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),(0,C.mergeAll)([e,t[0],t[1]])})))}var ns=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,je.__extends)(e,t),e.prototype.init=function(e){e.data=e.data||[],ts(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(ts(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,C.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,C.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var a=this._getCoordsFromItemModel(t);for(r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),(0,C.isNumber)(t[0])){for(var n=t.length,i=new $o(n),r=new es(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=t[l++];i[o++]=a+e,i[o++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[a++]=h,r[a++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new(0,Yt.default)(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var a=i.get("fromName"),o=i.get("toName"),s=[];return null!=a&&s.push(a),null!=o&&s.push(o),(0,so.createTooltipMarkup)("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Ze.default);function is(t){return t instanceof Array||(t=[t,t]),t}var rs={seriesType:"lines",reset:function(t){var e=is(t.get("symbol")),n=is(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=is(n.getShallow("symbol",!0)),r=is(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};p=a("kyrfh"),je=a("lCvKW"),a("dXBoT");var as=a("1RKvJ");C=a("2FIaD"),G=a("cmXBB"),tt=a("2IUoL"),a("dXBoT"),nt=a("kJ7of"),ur=a("dVgap"),lr=a("fCBaM"),it=a("dXBoT"),st=a("4lzC1"),C=a("2FIaD"),tt=a("2IUoL"),m=a("kbAoh"),as=a("1RKvJ"),rt=a("jKUgc");var os,ss=a("46uXJ"),ls=(br=a("l0SnR"),ur=a("dVgap"),lr=a("fCBaM"),nr=a("0445l"),a("60Kwm")),us=(C=a("2FIaD"),So=a("8BJkx"),a("kcO1G"));function cs(t){(0,C.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}x=a("eIhqd"),C=a("2FIaD");var hs={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"},ds=(0,C.keys)(hs),ps={"alignment-baseline":"textBaseline","stop-color":"stopColor"},fs=(0,C.keys)(ps),gs=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=cs(t);this._defsUsePending=[];var i=new(0,tt.default);this._root=i;var r=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),bs(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=Is(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=s&&(u=Ls(l,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var d=i;(i=new(0,tt.default)).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==o||null==s||i.setClipPath(new(0,rt.default)({shape:{x:0,y:0,width:o,height:s}})),{root:i,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,a){var o,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=e;else{if(!r){var u=os[s];if(u&&(0,C.hasOwn)(os,s)){o=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:o});e.add(o)}}var d=ys[s];if(d&&(0,C.hasOwn)(ys,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(o&&o.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,o,n,l,r,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new(0,x.default)({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xs(e,n),bs(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},t.internalField=void(os={g:function(t,e){var n=new(0,tt.default);return xs(e,n),bs(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new(0,rt.default);return xs(e,n),bs(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new(0,as.default);return xs(e,n),bs(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new(0,br.default);return xs(e,n),bs(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new(0,ss.default);return xs(e,n),bs(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=_s(i));var r=new(0,ur.default)({shape:{points:n||[]},silent:!0});return xs(e,r),bs(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=_s(i));var r=new(0,lr.default)({shape:{points:n||[]},silent:!0});return xs(e,r),bs(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new(0,m.default);return xs(e,n),bs(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new(0,tt.default);return xs(e,o),bs(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",o=new(0,tt.default);return xs(e,o),bs(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),o},path:function(t,e){var n=t.getAttribute("d")||"",i=(0,ls.createFromString)(n);return xs(e,i),bs(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),t}(),ys={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),a=new(0,So.default)(e,n,i,r);return ms(t,a),vs(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new(0,us.default)(e,n,i);return ms(t,r),vs(t,r),r}};function ms(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function vs(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};Ds(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function xs(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),(0,C.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function _s(t){for(var e=Is(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([r,a])}return n}function bs(t,e,n,i,r){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(Ts,(function(t,e,n){return i.push(e,n),""}));for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=Is(o);switch(r=r||nr.create(),s){case"translate":nr.translate(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":nr.scale(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":nr.rotate(r,r,-parseFloat(l[0])*Cs,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Cs);nr.mul(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Cs);nr.mul(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),Ds(t,o,s),i||function(t,e,n){for(var i=0;i<ds.length;i++){var r=ds[i];null!=(a=t.getAttribute(r))&&(e[hs[r]]=a)}for(i=0;i<fs.length;i++){var a;r=fs[i],null!=(a=t.getAttribute(r))&&(n[ps[r]]=a)}}(t,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=ws(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=ws(a,"stroke",o.stroke,n)),(0,C.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=o[t]&&(a.style[t]=parseFloat(o[t]))})),(0,C.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=o[t]&&(a.style[t]=o[t])})),r&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=(0,C.map)(Is(o.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}var Ss=/^url\(\s*#(.*?)\)/;function ws(t,e,n,i){var r=n&&n.match(Ss);if(!r)return"none"===n&&(n=null),n;var a=(0,C.trim)(r[1]);i.push([t,e,a])}var Ms=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Is(t){return t.match(Ms)||[]}var Ts=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Cs=Math.PI/180,As=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Ds(t,e,n){var i,r=t.getAttribute("style");if(r)for(As.lastIndex=0;null!=(i=As.exec(r));){var a=i[1],o=(0,C.hasOwn)(hs,a)?hs[a]:null;o&&(e[o]=i[2]);var s=(0,C.hasOwn)(ps,a)?ps[a]:null;s&&(n[s]=i[2])}}function Ls(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}tt=a("2IUoL"),rt=a("jKUgc"),C=a("2FIaD"),Jr=a("lV62k");var ks=a("j9XHC"),Os=(0,C.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Ps=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=(0,C.createHashMap)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=cs(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=(0,C.createHashMap)();return(0,C.each)(t,(function(t){if(null==t.namedFrom){var i=new(0,ks.GeoSVGRegion)(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new gs).parse(i,r))||{}).root,(0,C.assert)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var a=new(0,tt.default);a.add(n),a.isGeoSVGGraphicRoot=!0;var o=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,d=void 0,p=void 0;if(null!=o?(c=0,d=o):l&&(c=l.x,d=l.width),null!=s?(h=0,p=s):l&&(h=l.y,p=l.height),null==c||null==h){var f=n.getBoundingRect();null==c&&(c=f.x,d=f.width),null==h&&(h=f.y,p=f.height)}u=this._boundingRect=new(0,Jr.default)(c,h,d,p)}if(l){var g=Ls(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}a.setClipPath(new(0,rt.default)({shape:u.plain()}));var y=[];return(0,C.each)(e.named,(function(t){var e;null!=Os.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:a,boundingRect:u,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();C=a("2FIaD");for(var Es=a("m2aWg"),Rs=(C=a("2FIaD"),ks=a("j9XHC"),[126,25]),Ns=[[[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]]],Fs=0;Fs<Ns.length;Fs++)for(var Bs=0;Bs<Ns[Fs].length;Bs++)Ns[Fs][Bs][0]/=10.5,Ns[Fs][Bs][1]/=-14,Ns[Fs][Bs][0]+=Rs[0],Ns[Fs][Bs][1]+=Rs[1];function zs(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new(0,ks.GeoJSONRegion)("南海诸岛",C.map(Ns,(function(t){return{type:"polygon",exterior:t}})),Rs))}}var Vs={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function Ws(t,e){if("china"===t){var n=Vs[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var Gs=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Hs(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:Gs[0]})}Jr=a("lV62k");var Us=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=(0,C.createHashMap)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(i=e,(0,C.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Ys(i)})}var r=(0,C.createHashMap)(),a=[];return(0,C.each)(n.regions,(function(e){var n=e.name;t&&(0,C.hasOwn)(t,n)&&(e=e.cloneShallow(n=t[n])),a.push(e),r.set(n,e)})),{regions:a,boundingRect:n.boundingRect||new(0,Jr.default)(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?(0,Es.default)(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return zs(n,e),(0,C.each)(e,(function(t){var e=t.name;Ws(n,t),Hs(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Ys(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var Xs=(0,C.createHashMap)(),Ks={registerMap:function(t,e,n){if(e.svg){var i=new Ps(t,e.svg);Xs.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e,i=new Us(t,r,n),Xs.set(t,i)}},getGeoResource:function(t){return Xs.get(t)},getMapForUser:function(t){var e=Xs.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=Xs.get(t);if(i)return i.load(e,n)}},js=($e=a("jmxtG"),lt=a("c3Bep"),ot=a("5v9xk"),ei=a("8yeYH"),jn=a("77M3u"),Bn=a("2LuwV"),["rect","circle","line","ellipse","polygon","polyline","path"]),Zs=C.createHashMap(js),qs=C.createHashMap(js.concat(["g"])),Js=C.createHashMap(js.concat(["g"])),Qs=(0,Bn.makeInner)();function $s(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function el(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}function tl(t,e,n,i){var r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=$s(r),u=$s(a),c=$s(s),h=$s(o),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=(0,ei.createOrUpdatePatternFromDecal)(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,(0,st.setDefaultStateProxy)(e)}function nl(t,e,n,i,r,a,o){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var h=l?n:a,d=void 0;(!s||a>=0)&&(d=r);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,lt.setLabelStyle)(e,(0,lt.getLabelStatesModels)(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(Qs(f).ignore=f.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function il(t,e,n,i,r,a){t.data?t.data.setItemGraphicEl(a,e):(0,ot.getECData)(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function rl(t,e,n,i,r){t.data||it.setTooltipConfig({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function al(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return(0,st.toggleHoverEmphasis)(e,o,a.get("blurScope"),a.get("disabled")),t.isGeo&&(0,st.enableComponentHighDownFeatures)(e,r,n),o}function ol(t,e,n){var i,r=[];function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),C.each(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var sl=function(){function t(t){var e=new tt.default;this.uid=(0,$e.getUID)("ec_map_draw"),this._controller=new Ca(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new tt.default),e.add(this._svgGroup=new tt.default)}return t.prototype.draw=function(t,e,n,i,r){var a="geo"===t.mainType,o=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},(function(e){o||e.getHostGeoModel()!==t||(o=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):nt.updateProps(u,d,t);var p=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:p,isGeo:a,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=C.createHashMap(),n=C.createHashMap(),i=this._regionsGroup,r=t.transformInfoRaw,a=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function h(t){return{shape:{points:c(t)}}}i.removeAll(),C.each(t.geo.regions,(function(r){var c=r.name,d=e.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;d||(d=e.set(c,new tt.default),i.add(d),f=o?o.indexOfName(c):null,g=t.isGeo?a.getRegionModel(c):o?o.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var y=[],m=[];C.each(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=ol(e,l)),C.each(e,(function(t){y.push(new ur.default(h(t)))}))}else{var n=t.points;l&&(n=ol(n,l,!0)),C.each(n,(function(t){m.push(new lr.default(h(t)))}))}}));var v=u(r.getCenter(),s&&s.project);function x(e,n){if(e.length){var i=new G.default({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),tl(t,i,f,g),nl(t,i,c,g,a,f,v),n&&(el(i),C.each(i.states,el))}}x(y),x(m,!0)})),e.each((function(e,i){var r=n.get(i),o=r.dataIdx,s=r.regionModel;il(t,e,i,s,a,o),rl(t,e,i,s,a),al(t,e,i,s,a)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=C.createHashMap(),r=!1;C.each(this._svgGraphicRecord.named,(function(e){var n=e.name,a=t.mapOrGeoModel,o=t.data,s=e.svgNodeTagLower,l=e.el,u=o?o.indexOfName(n):null,c=a.getRegionModel(n);null!=Zs.get(s)&&l instanceof jn.default&&tl(t,l,u,c),l instanceof jn.default&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom||(null!=Js.get(s)&&nl(t,l,n,c,a,u,null),il(t,l,n,c,a,u),rl(t,l,n,c,a),null!=qs.get(s)&&("self"===al(t,l,n,c,a)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){(0,st.setDefaultStateProxy)(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=Ks.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=Ks.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var o=t.mainType;function s(){var e={type:"geoRoam",componentType:o};return e[o+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Aa(a,t.dx,t.dy),n.dispatchAction(C.extend(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Da(a,t.scale,t.originX,t.originY),n.dispatchAction(C.extend(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,a){return i.containPoint([r,a])&&!ka(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=Qs(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}(),ll=(yt=a("3dZ3l"),lt=a("c3Bep"),st=a("4lzC1"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(a=this._mapDraw)&&r.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new sl(n);r.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var a=i.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new as.default({style:{fill:t.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:st.Z2_EMPHASIS_LIFT+1)});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);(0,lt.setLabelStyle)(l,(0,lt.getLabelStatesModels)(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){(0,st.setStatesFlag)(l,t)}}r.add(l)}}}))},e.type="map",e}(yt.default)),ul=(je=a("lCvKW"),C=a("2FIaD"),Ze=a("gGiC4"),jt=a("39jKu"),so=a("eckBc"),Ki=a("2ZiWs"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t){for(var e=Xt(this,{coordDimensions:["value"],encodeDefaulter:C.curry(jt.makeSeriesEncodeForNameBased,this)}),n=C.createHashMap(),i=[],r=0,a=e.count();r<a;r++){var o=e.getName(r);n.set(o,!0)}var s=Ks.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return C.each(s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),a=i.getName(t),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(a),c=i.mapDimension("value");isNaN(o[l].originalData.get(c,u))||s.push(o[l].name)}return(0,so.createTooltipMarkup)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,so.createTooltipMarkup)("nameValue",{name:a,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=(0,Ki.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Ze.default));function cl(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),C.each(e,(function(t,e){for(var n,i,r,a=(n=C.map(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},C.each(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var a="ec-"+n[0].getName(e),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];return 0===u?NaN:"min"===i?s:"max"===i?l:"average"===i?o/u:o}))),o=0;o<t.length;o++)t[o].originalData=t[o].getData();for(o=0;o<t.length;o++)t[o].seriesGroup=t,t[o].needsDrawMap=0===o&&!t[o].getHostGeoModel(),t[o].setData(a.cloneShallow()),t[o].mainSeries=t[0]}))}function hl(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};C.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var a=i.getName(e),o=n.getRegion(a);if(o&&!isNaN(t)){var s=r[a]||0,l=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!r[e],a.setItemLayout(t,n)})),e[i]=!0}}))}C=a("2FIaD"),C=a("2FIaD");var dl=a("lfZwf"),pl=(je=a("lCvKW"),C=a("2FIaD"),Bn=a("2LuwV"),a("eWRYv")),fl=(Ha=a("9xTlQ"),C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),Jr=a("lV62k"),Bn=a("2LuwV"),{geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}}),gl=["lng","lat"],yl=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=gl,r.type="geo",r._nameCoordMap=C.createHashMap(),r.map=n;var a,o=i.projection,s=Ks.load(n,i.nameMap,i.nameProperty),l=Ks.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=fl[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=o,o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);(a=a||d.clone()).union(d)}else a=s.boundingRect;return r.setBoundingRect(a.x,a.y,a.width,a.height),r.aspectScale=o?1:C.retrieve2(i.aspectScale,c.aspectScale),r._invertLongitute=!o&&c.invertLongitute,r}return(0,je.__extends)(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),a=this._invertLongitute;r=r.clone(),a&&(r.y=-r.y-r.height);var o=this._rawTransformable;o.transform=r.calculateTransform(new(0,Jr.default)(t,e,n,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(C.isString(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=ml(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=ml(e);return i===this?i.pointToData(n):null},e}(ea);function ml(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Bn.SINGLE_REFERRING).models[0]||{}).coordinateSystem:null}C.mixin(yl,ea);var vl=yl;function xl(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var a=this.projection;if(a){var o=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,n,o){for(var s=n-t,l=o-e,u=0;u<=100;u++){var c=u/100,h=a.project([t+s*c,e+l*c]);Dr.min(i,i,h),Dr.max(r,r,h)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}}var h,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),y=t.get("layoutSize"),m=e.getWidth(),v=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(h=[ct.parsePercent(g[0],m),ct.parsePercent(g[1],v)],d=ct.parsePercent(y,Math.min(m,v)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)p={},x>1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,p=yr.getLayoutRect(b,{width:m,height:v})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}yr=a("3Q8SW"),ct=a("lcKsG"),Dr=a("jkyg0");var _l=new(function(){function t(){this.dimensions=gl}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var a=t.get("map"),o=new vl(a+r,a,C.extend({nameMap:t.get("nameMap")},i(t)));o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=xl,o.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),C.each(r,(function(t,r){var a=C.map(t,(function(t){return t.get("nameMap")})),o=new vl(r,r,C.extend({nameMap:C.mergeAll(a)},i(t[0])));o.zoomLimit=C.retrieve.apply(null,C.map(t,(function(t){return t.get("scaleLimit")}))),n.push(o),o.resize=xl,o.resize(t[0],e),C.each(t,(function(t){t.coordinateSystem=o,function(t,e){C.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(o,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),a=C.createHashMap(),o=0;o<r.length;o++)a.set(r[o].name,r[o]);var s=Ks.load(e,n,i);return C.each(s.regions,(function(t){var e=t.name;!a.get(e)&&r.push({name:e})})),r},t}()),bl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e,n){var i=Ks.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Bn.defaultEmphasis(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=_l.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=C.reduce(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new(0,Ha.default)(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),C.createHashMap()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new(0,Ha.default)(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return C.isFunction(i)?(r.status=e,i(r)):C.isString(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(pl.default),Sl=(C=a("2FIaD"),je=a("lCvKW"),a("2UHy9")),wl=(ot=a("5v9xk"),a("4XWEA")),Ml=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new sl(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;(0,wl.findEventDispatcher)(t.target,(function(t){return null!=(e=(0,ot.getECData)(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=(0,ot.getECData)(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Sl.default);function Il(t,e,n){Ks.registerMap(t,e,n)}function Tl(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;(0,C.each)(a.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];(0,C.each)(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",_l),t.registerComponentModel(bl),t.registerComponentView(Ml),t.registerImpl("registerMap",Il),t.registerImpl("getMap",(function(t){return Ks.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var a=ho(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&(0,C.each)(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}))}function Cl(t,e,n,i){for(var r,a=[],o=0;o<n.length;o++){var s=n[o],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||a.push(i.dataToPoint(l,s))}return a}function Al(t,e,n,i,r){var a=Cl(t,n,i,r),o=new lr.default({shape:{points:a},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function Dl(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=(0,ct.numericToNumber)(e),(0,C.eqNaN)(e)&&(e=0),{smooth:e}}function Ll(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),a=r.getModel("emphasis");(0,st.setStatesStylesFromModel)(t,r,"lineStyle"),(0,st.toggleHoverEmphasis)(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}p=a("kyrfh"),je=a("lCvKW"),tt=a("2IUoL"),nt=a("kJ7of"),a("dXBoT"),nt=a("kJ7of"),rt=a("jKUgc"),lr=a("fCBaM"),st=a("4lzC1"),yt=a("3dZ3l"),ct=a("lcKsG"),C=a("2FIaD"),nt=a("kJ7of");var kl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new tt.default,n._initialized=!1,n}return(0,je.__extends)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,a=t.getData(),o=this._data,s=t.coordinateSystem,l=s.dimensions,u=Dl(t);if(a.diff(o).add((function(t){Ll(Al(a,r,t,l,s),a,t,u)})).update((function(e,n){var i=o.getItemGraphicEl(n),r=Cl(a,e,l,s);a.setItemGraphicEl(e,i),nt.updateProps(i,{shape:{points:r}},t,e),(0,nt.saveOldStyle)(i),Ll(i,a,e,u)})).remove((function(t){var e=o.getItemGraphicEl(t);r.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var i=t.model,r=t.getRect(),a=new rt.default({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),o="horizontal"===i.get("layout")?"width":"height";return a.setShape(o,0),nt.initProps(a,{shape:{width:r.width,height:r.height}},e,n),a}(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(c)}this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,a=r.dimensions,o=Dl(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=Al(i,this._dataGroup,l,a,r);u.incremental=!0,Ll(u,i,l,o),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(yt.default);function Ol(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return(0,C.each)(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}je=a("lCvKW"),C=a("2FIaD"),Ze=a("gGiC4"),qe=a("4TZPm");var Pl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,qe.default)(null,this,{useEncodeDefaulter:(0,C.bind)(Ol,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.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"},e}(Ze.default),El=["lineStyle","opacity"],Rl={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(El,!0);null!=a&&(r=a)}e.ensureUniqueItemVisual(n,"style").opacity=r}),t.start,t.end)}}}};function Nl(t){!function(t){if(!t.parallel){var e=!1;C.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}(t),function(t){var e=Bn.normalizeToArray(t.parallelAxis);C.each(e,(function(e){if(C.isObject(e)){var n=e.parallelIndex||0,i=Bn.normalizeToArray(t.parallel)[n];i&&i.parallelAxisDefault&&C.merge(e,i.parallelAxisDefault,!1)}}))}(t)}C=a("2FIaD"),Bn=a("2LuwV"),je=a("lCvKW"),Sl=a("2UHy9"),C=a("2FIaD"),ut=a("3deD8");var Fl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},(0,C.each)(Bl,(function(t,e){n.getZr().on(e,this._handlers[e]=(0,C.bind)(t,this))}),this)),(0,ut.createOrUpdate)(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){(0,ut.clear)(this,"_throttledDispatchExpand"),(0,C.each)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction((0,C.extend)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Sl.default),Bl={mousedown:function(t){zl(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(zl(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&zl(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function zl(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var Vl=Fl,Wl=(je=a("lCvKW"),C=a("2FIaD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&C.merge(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){C.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=C.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);C.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}((pl=a("eWRYv")).default)),Gl=(C=a("2FIaD"),nr=a("0445l"),yr=a("3Q8SW"),a("37xup")),Hl=(je=a("lCvKW"),function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o.axisIndex=a,o}return(0,je.__extends)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}((mv=a("z6R1J")).default));function Ul(t,e,n,i,r,a){t=t||0;var o=n[1]-n[0];if(null!=r&&(r=Xl(r,[0,o])),null!=a&&(a=Math.max(a,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Xl(s,[0,o]),r=a=Xl(s,[r,a]),i=0}e[0]=Xl(e[0],n),e[1]=Xl(e[1],n);var l=Yl(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=Xl(e[i],h),u=Yl(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=Yl(e,i),null!=a&&u.span>a&&(e[1-i]=e[i]+u.sign*a),e}function Yl(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Xl(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}it=a("dXBoT"),ct=a("lcKsG");var Kl=C.each,jl=Math.min,Zl=Math.max,ql=Math.floor,Jl=Math.ceil,Ql=ct.round,$l=Math.PI;function eu(t,e){return jl(Zl(t,e[0]),e[1])}function tu(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function nu(t,e){var n,i,r=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,c=!0):(n=r-(o-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var iu=function(){function t(t,e,n){this.type="parallel",this._axesMap=C.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;Kl(i,(function(t,n){var i=r[n],a=e.getComponent("parallelAxis",i),o=this._axesMap.set(t,new Hl(t,Gl.createScaleByModel(a),[0,0],a.get("type"),i)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,a=t[1-r],o=t[r];return a>=n&&a<=n+e.axisLength&&o>=i&&o<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();Kl(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),Gl.niceScaleExtent(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=yr.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=n[r[o]],l=[0,s],u=this.dimensions.length,c=eu(e.get("axisExpandWidth"),l),h=eu(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=eu(p[1]-p[0],l),p[1]=p[0]+t):(t=eu(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||ql(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[ql(Ql(p[0]/c,1))+1,Jl(Ql(p[1]/c,1))-1],y=f/c*p[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),Kl(n,(function(e,n){var a=(i.axisExpandable?nu:tu)(n,i),o={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s={horizontal:$l/2,vertical:0},l=[o[r].x+t.x,o[r].y+t.y],u=s[r],c=nr.create();nr.rotate(c,c,u),nr.translate(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,a=this.dimensions,o=[],s=[];C.each(a,(function(e){o.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(o,u),d=0,p=a.length;d<p;d++)if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return it.applyTransform([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return C.clone(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var o,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",o=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",o=s-r*(1-c[2])):(o=s-r*c[1])>=0&&(o=s-r*(1-c[1]))<=0&&(o=0),(o*=e.axisExpandWidth/u)?Ul(o,i,a,"all"):l="none";else{var d=i[1]-i[0];(i=[Zl(0,a[1]*s/d-d/2)])[1]=jl(a[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();Bn=a("2LuwV");var ru={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var a=new iu(i,t,e);a.name="parallel_"+r,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Bn.SINGLE_REFERRING).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},au=(je=a("lCvKW"),{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)"]}}}),ou=(C=a("2FIaD")).merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},au),su=C.merge({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}}},au),lu={category:ou,value:su,time:C.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},su),log:C.defaults({logBase:10},su)},uu=(yr=a("3Q8SW"),a("jWrbf")),cu={value:1,category:1,time:1,log:1};function hu(t,e,n,i){(0,C.each)(cu,(function(r,a){var o=(0,C.merge)((0,C.merge)({},lu[a],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return(0,je.__extends)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,yr.fetchLayoutMode)(this),i=n?(0,yr.getLayoutParams)(t):{},r=e.getTheme();(0,C.merge)(t,r.get(a+"Axis")),(0,C.merge)(t,this.getDefaultOption()),t.type=du(t),n&&(0,yr.mergeLayoutParam)(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=uu.default.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=o,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",du)}function du(t){return t.type||(t.data?"category":"value")}C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),pl=a("eWRYv");var pu=a("5ESKT"),fu=(ct=a("lcKsG"),a("7J1ai")),gu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return(0,je.__extends)(e,t),e.prototype.getAreaSelectStyle=function(){return(0,pu.default)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=C.clone(t);if(e)for(var n=e.length-1;n>=0;n--)ct.asc(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(pl.default);C.mixin(gu,fu.AxisModelCommonMixin);var yu=gu;je=a("lCvKW"),C=a("2FIaD"),C=a("2FIaD"),tt=a("2IUoL"),a("dXBoT"),br=a("l0SnR"),it=a("dXBoT"),$=a("jud7h"),ot=a("5v9xk"),lt=a("c3Bep"),Ha=a("9xTlQ"),ct=a("lcKsG"),Ki=a("2ZiWs"),nr=a("0445l"),Dr=a("jkyg0"),Gl=a("37xup");var mu=a("enB78"),vu=Math.PI,xu=function(){function t(t,e){this.group=new tt.default,this.opt=e,this.axisModel=t,(0,C.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new tt.default({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!_u[t]},t.prototype.add=function(t){_u[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,a=(0,ct.remRadian)(e-t);return(0,ct.isRadianAroundZero)(a)?(r=n>0?"top":"bottom",i="center"):(0,ct.isRadianAroundZero)(a-vu)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<vu?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),_u={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var a=e.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&((0,Dr.applyTransform)(s,s,o),(0,Dr.applyTransform)(l,l,o));var c=(0,C.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new br.default({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});it.subPixelOptimizeLine(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);(0,C.isString)(d)&&(d=[d,d]),((0,C.isString)(p)||(0,C.isNumber)(p))&&(p=[p,p]);var f=(0,Ki.normalizeSymbolOffset)(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],y=p[1];(0,C.each)([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.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(e,i){if("none"!==d[i]&&null!=d[i]){var r=(0,Ki.createSymbol)(d[i],-g/2,-y/2,g,y,c.stroke,!0),a=e.r+e.offset,o=u?l:s;r.attr({rotation:e.rotate,x:o[0]+a*Math.cos(t.rotation),y:o[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,a=n.getModel("axisTick"),o=a.get("show");if("auto"===o&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),o&&!r.scale.isBlank()){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=Mu(r.getTicksCoords(),e.transform,l,(0,C.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}}(n,i,e,t),a=function(t,e,n,i){var r=n.axis;if((0,C.retrieve)(i.axisLabelShow,n.get(["axisLabel","show"]))&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),o=a.get("margin"),s=r.getViewLabels(),l=((0,C.retrieve)(i.labelRotate,a.get("rotate"))||0)*vu/180,u=xu.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],d=xu.isLabelSilent(n),p=n.get("triggerEvent");return(0,C.each)(s,(function(l,f){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(l.tickValue):l.tickValue,y=l.formattedLabel,m=l.rawLabel,v=a;if(c&&c[g]){var x=c[g];(0,C.isObject)(x)&&x.textStyle&&(v=new(0,Ha.default)(x.textStyle,a,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=r.dataToCoord(g),S=v.getShallow("align",!0)||u.textAlign,w=(0,C.retrieve2)(v.getShallow("alignMinLabel",!0),S),M=(0,C.retrieve2)(v.getShallow("alignMaxLabel",!0),S),I=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,T=(0,C.retrieve2)(v.getShallow("verticalAlignMinLabel",!0),I),A=(0,C.retrieve2)(v.getShallow("verticalAlignMaxLabel",!0),I),D=new $.default({x:b,y:i.labelOffset+i.labelDirection*o,rotation:u.rotation,silent:d,z2:10+(l.level||0),style:(0,lt.createTextStyle)(v,{text:y,align:0===f?w:f===s.length-1?M:S,verticalAlign:0===f?T:f===s.length-1?A:I,fill:(0,C.isFunction)(_)?_("category"===r.type?m:"value"===r.type?g+"":g,f):_})});if(D.anid="label_"+g,p){var L=xu.makeAxisEventDataBase(n);L.targetType="axisLabel",L.value=m,L.tickIndex=f,"category"===r.type&&(L.dataIndex=g),(0,ot.getECData)(D).eventData=L}e.add(D),D.updateTransform(),h.push(D),t.add(D),D.decomposeTransform()})),h}}(n,i,e,t);if(function(t,e,n){if(!(0,Gl.shouldShowAllLabels)(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);n=n||[];var a=(e=e||[])[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(bu(a),bu(u)):Su(a,o)&&(i?(bu(o),bu(c)):(bu(a),bu(u))),!1===r?(bu(s),bu(h)):Su(l,s)&&(r?(bu(l),bu(d)):(bu(s),bu(h)))}}(e,a,r),function(t,e,n,i){var r=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!r.scale.isBlank()){var o=r.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=(0,C.defaults)(s.getLineStyle(),(0,C.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=Mu(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=(0,mu.prepareLayoutList)((0,C.map)(a,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));(0,mu.hideOverlap)(o)}},axisName:function(t,e,n,i){var r=(0,C.retrieve)(t.axisName,e.get("name"));if(r){var a,o,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,wu(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*vu/180),wu(s)?a=xu.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(a=function(t,e,n,i){var r,a,o=(0,ct.remRadian)(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return(0,ct.isRadianAroundZero)(o-vu/2)?(a=l?"bottom":"top",r="center"):(0,ct.isRadianAroundZero)(o-1.5*vu)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*vu&&o>vu/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}(t.rotation,s,f||0,h),null!=(o=t.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,v=(0,C.retrieve)(t.nameTruncateMaxWidth,y.maxWidth,o),x=new $.default({x:p[0],y:p[1],rotation:a.rotation,silent:xu.isLabelSilent(e),style:(0,lt.createTextStyle)(u,{text:r,font:g,overflow:"truncate",width:v,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||a.textAlign,verticalAlign:u.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(it.setTooltipConfig({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=xu.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,(0,ot.getECData)(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function bu(t){t&&(t.ignore=!0)}function Su(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=nr.identity([]);return nr.rotate(r,r,-t.rotation),n.applyTransform(nr.mul([],r,t.getLocalTransform())),i.applyTransform(nr.mul([],r,e.getLocalTransform())),n.intersect(i)}}function wu(t){return"middle"===t||"center"===t}function Mu(t,e,n,i,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&((0,Dr.applyTransform)(o,o,e),(0,Dr.applyTransform)(s,s,e));var c=new br.default({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});it.subPixelOptimizeLine(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,a.push(c)}return a}var Iu=xu;je=a("lCvKW"),C=a("2FIaD"),xa=a("gqWkF"),a("dXBoT"),rt=a("jKUgc"),it=a("dXBoT"),lr=a("fCBaM"),ur=a("dVgap"),tt=a("2IUoL"),Hn=a("7aXlh");var Tu=Math.min,Cu=Math.max,Au=Math.pow,Du={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Lu={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ku={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Ou=0,Pu=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new tt.default,n._uid="brushController_"+Ou++,(0,C.each)(oc,(function(t,e){this._handlers[e]=(0,C.bind)(t,this)}),n),n}return(0,je.__extends)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){wa(t).globalPan=n}(e,0,this._uid),(0,C.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=(0,C.merge)((0,C.clone)(ku),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var i=wa(t);i[e]===n&&(i[e]=null)}(t,"globalPan",this._uid),(0,C.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};(0,C.each)(t,(function(t){e[t.panelId]=(0,C.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=(0,C.map)(t,(function(t){return(0,C.merge)((0,C.clone)(ku),t,!0)}));var e=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new(0,Hn.default)(e,t,(function(t,e){return a(t.__brushOption,e)}),a).add(o).update(o).remove((function(t){e[t]!==r&&i.group.remove(e[t])})).execute(),this;function a(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function o(a,o){var s=t[a];if(null!=o&&e[o]===r)n[a]=e[o];else{var l=n[a]=null!=o?(e[o].__brushOption=s,e[o]):Ru(i,Eu(i,s));Bu(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),Gu(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(xa.default);function Eu(t,e){var n=lc[e.brushType].createCover(t,e);return n.__brushOption=e,Fu(n,e),t.group.add(n),n}function Ru(t,e){var n=zu(e);return n.endCreating&&(n.endCreating(t,e),Fu(e,e.__brushOption)),e}function Nu(t,e){var n=e.__brushOption;zu(e).updateCoverShape(t,e,n.range,n)}function Fu(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function Bu(t,e){zu(e).updateCommon(t,e),Nu(t,e)}function zu(t){return lc[t.__brushOption.brushType]}function Vu(t,e,n){var i,r=t._panels;if(!r)return!0;var a=t._transform;return(0,C.each)(r,(function(t){t.isTargetByCursor(e,n,a)&&(i=t)})),i}function Wu(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function Gu(t){var e=t._covers,n=e.length;return(0,C.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function Hu(t,e){var n=(0,C.map)(t._covers,(function(t){var e=t.__brushOption,n=(0,C.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Uu(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Yu(t,e,n,i){var r=new tt.default;return r.add(new rt.default({name:"main",style:Zu(n),silent:!0,draggable:!0,cursor:"move",drift:(0,C.curry)(Qu,t,e,r,["n","s","w","e"]),ondragend:(0,C.curry)(Hu,e,{isEnd:!0})})),(0,C.each)(i,(function(n){r.add(new rt.default({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,C.curry)(Qu,t,e,r,n),ondragend:(0,C.curry)(Hu,e,{isEnd:!0})}))})),r}function Xu(t,e,n,i){var r=i.brushStyle.lineWidth||0,a=Cu(r,6),o=n[0][0],s=n[1][0],l=o-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-a+r/2,p=h-a+r/2,f=c-o,g=h-s,y=f+r,m=g+r;ju(t,e,"main",o,s,f,g),i.transformable&&(ju(t,e,"w",l,u,a,m),ju(t,e,"e",d,u,a,m),ju(t,e,"n",l,u,y,a),ju(t,e,"s",l,p,y,a),ju(t,e,"nw",l,u,a,a),ju(t,e,"ne",d,u,a,a),ju(t,e,"sw",l,p,a,a),ju(t,e,"se",d,p,a,a))}function Ku(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Zu(n)),r.attr({silent:!i,cursor:i?"move":"default"}),(0,C.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),a=1===n.length?Ju(t,n[0]):function(t,e){var n=[Ju(t,e[0]),Ju(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?Lu[a]+"-resize":null})}))}function ju(t,e,n,i,r,a,o){var s,l,u,c=e.childOfName(n);c&&c.setShape((s=tc(t,e,[[i,r],[i+a,r+o]]),{x:l=Tu(s[0][0],s[1][0]),y:u=Tu(s[0][1],s[1][1]),width:Cu(s[0][0],s[1][0])-l,height:Cu(s[0][1],s[1][1])-u}))}function Zu(t){return(0,C.defaults)({strokeNoScale:!0},t.brushStyle)}function qu(t,e,n,i){var r=[Tu(t,n),Tu(e,i)],a=[Cu(t,n),Cu(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function Ju(t,e){var n=it.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return it.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Qu(t,e,n,i,r,a){var o=n.__brushOption,s=t.toRectRange(o.range),l=ec(e,r,a);(0,C.each)(i,(function(t){var e=Du[t];s[e[0]][e[1]]+=l[e[0]]})),o.range=t.fromRectRange(qu(s[0][0],s[1][0],s[0][1],s[1][1])),Bu(e,n),Hu(e,{isEnd:!1})}function $u(t,e,n,i){var r=e.__brushOption.range,a=ec(t,n,i);(0,C.each)(r,(function(t){t[0]+=a[0],t[1]+=a[1]})),Bu(t,e),Hu(t,{isEnd:!1})}function ec(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function tc(t,e,n){var i=Wu(t,e);return i&&!0!==i?i.clipPath(n,t._transform):(0,C.clone)(n)}function nc(t){var e=t.event;e.preventDefault&&e.preventDefault()}function ic(t,e,n){return t.childOfName("main").contain(e,n)}function rc(t,e,n,i){var r,a=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1];return Au(r*r+a*a,.5)>6}(t)||a){if(o&&!a){"single"===s.brushMode&&Gu(t);var l=(0,C.clone)(s);l.brushType=ac(l.brushType,o),l.panelId=!0===o?null:o.panelId,a=t._creatingCover=Eu(t,l),t._covers.push(a)}if(a){var u=lc[ac(t._brushType,o)];a.__brushOption.range=u.getCreatingRange(tc(t,a,t._track)),i&&(Ru(t,a),u.updateCommon(t,a)),Nu(t,a),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Vu(t,e,n)&&Gu(t)&&(r={isEnd:i,removeOnClick:!0});return r}function ac(t,e){return"auto"===t?e.defaultBrushType:t}var oc={mousedown:function(t){if(this._dragging)sc(this,t);else if(!t.target||!t.target.draggable){nc(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Vu(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,a=Vu(t,e,n);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(!0===a||s.panelId===a.panelId)&&lc[s.brushType].contain(r[o],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){nc(t);var r=rc(this,t,i,!1);r&&Hu(this,r)}},mouseup:function(t){sc(this,t)}};function sc(t,e){if(t._dragging){nc(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),a=rc(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&Hu(t,a)}}var lc={lineX:uc(0),lineY:uc(1),rect:{createCover:function(t,e){function n(t){return t}return Yu({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Uu(t);return qu(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Xu(t,e,n,i)},updateCommon:Ku,contain:ic},polygon:{createCover:function(t,e){var n=new tt.default;return n.add(new lr.default({name:"main",style:Zu(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new ur.default({name:"main",draggable:!0,drift:(0,C.curry)($u,t,e),ondragend:(0,C.curry)(Hu,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:tc(t,e,n)})},updateCommon:Ku,contain:ic}};function uc(t){return{createCover:function(e,n){return Yu({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=Uu(e);return[Tu(n[0][t],n[1][t]),Cu(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var a,o=Wu(e,n);if(!0!==o&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),Xu(e,n,l,r)},updateCommon:Ku,contain:ic}}var cc=Pu;function hc(t){return t=fc(t),function(e){return it.clipPointsByRect(e,t)}}function dc(t,e){return t=fc(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(r||0)]}}function pc(t,e,n){var i=fc(t);return function(t,r){return i.contain(r[0],r[1])&&!ka(t,e,n)}}function fc(t){return Jr.default.create(t)}Jr=a("lV62k"),it=a("dXBoT"),Jr=a("lV62k"),tt=a("2IUoL"),it=a("dXBoT"),Sl=a("2UHy9");var gc=["axisLine","axisTickLabel","axisName"],yc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new cc(n.getZr())).on("brush",C.bind(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new tt.default,this.group.add(this._axisGroup),t.get("show")){var a=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),o=a.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=o.getAxisLayout(u),h=C.extend({strokeContainThreshold:l},c),d=new Iu(t,h);C.each(gc,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,a,l,n),it.groupTransition(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=Jr.default.create({x:o[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:hc(u),isTargetByCursor:pc(u,a,i),getLinearBrushOtherExtent:dc(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return C.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=C.map(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Sl.default),mc={type:"axisAreaSelect",event:"axisAreaSelected"};function vc(t){t.registerAction(mc,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var xc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function _c(t){t.registerComponentView(Vl),t.registerComponentModel(Wl),t.registerCoordinateSystem("parallel",ru),t.registerPreprocessor(Nl),t.registerComponentModel(yu),t.registerComponentView(yc),hu(t,"parallel",yu,xc),vc(t)}je=a("lCvKW"),C=a("2FIaD"),it=a("dXBoT"),st=a("4lzC1"),Ki=a("2ZiWs"),ct=a("lcKsG"),yt=a("3dZ3l"),lt=a("c3Bep"),m=a("kbAoh"),ot=a("5v9xk");var bc=["itemStyle","borderWidth"],Sc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],wc=new it.Circle;function Mc(t,e,n,i){var r=t.getItemLayout(e),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,r){var a,o=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[o.wh]<=0);if(C.isArray(s)){var h=[Ic(l,s[0])-u,Ic(l,s[1])-u];h[1]<h[0]&&h.reverse(),a=h[c]}else a=null!=s?Ic(l,s)-u:e?i.coordSysExtent[o.index][c]-u:n[o.wh];r.boundingLength=a,e&&(r.repeatCutLength=n[o.wh]),r.pxSign=a>0?1:-1}(n,a,r,i,h),function(t,e,n,i,r,a,o,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");(c=C.isArray(f)?f.slice():null==f?["100%","100%"]:[f,f])[d.index]=(0,ct.parsePercent)(c[d.index],p),c[h.index]=(0,ct.parsePercent)(c[h.index],i?p:Math.abs(a)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*o}(t,e,r,a,0,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,r){var a=t.get(bc)||0;a&&(wc.attr({scaleX:e[0],scaleY:e[1],rotation:n}),wc.updateTransform(),a/=wc.getLineScale(),a*=e[i.valueDim.index]),r.valueLineWidth=a||0}(n,h.symbolScale,l,i,h);var d=h.symbolSize,p=(0,Ki.normalizeSymbolOffset)(n.get("symbolOffset"),d);return function(t,e,n,i,r,a,o,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),y=g;if(i){var m=Math.abs(l),v=C.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;v.lastIndexOf("!")===v.length-1&&(x=!0,v=v.slice(0,v.length-1));var _=(0,ct.parsePercent)(v,e[p.index]),b=Math.max(g+2*_,0),S=x?0:2*_,w=(0,ct.isNumeric)(i),M=w?i:Vc((m+S)/b);b=g+2*(_=(m-M*g)/2/(x?M:Math.max(M-1,1))),S=x?0:2*_,w||"fixed"===i||(M=u?Vc((Math.abs(u)+S)/b):0),y=M*b-S,h.repeatTimes=M,h.symbolMargin=_}var I=f*(y/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===o?I:"end"===o?l-I:l/2,a&&(T[0]+=a[0],T[1]+=a[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[p.index]=n[p.xy];var D=h.barRectShape=C.extend({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+I)),D[d.wh]=n[d.wh];var L=h.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[p.xy]=0,L[p.wh]=n[p.wh]}(n,d,r,a,0,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function Ic(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Tc(t){var e=t.symbolPatternSize,n=(0,Ki.createSymbol)(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Cc(t,e,n,i){var r=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+2*n.symbolMargin;for(Fc(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?Bc(t,null,f(c),n,i):Bc(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<u;c++){var d=Tc(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);Bc(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Ac(t,e,n,i){var r=t.__pictorialBundle,a=t.__pictorialMainPath;a?Bc(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=t.__pictorialMainPath=Tc(n),r.add(a),Bc(a,{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 Dc(t,e,n){var i=C.extend({},e.barRectShape),r=t.__pictorialBarRect;r?Bc(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new it.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function Lc(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,a=C.extend({},n.clipShape),o=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)it.updateProps(r,{shape:a},s,l);else{a[o.wh]=0,r=new it.Rect({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[o.wh]=n.clipShape[o.wh],it[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function kc(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Oc,n.isAnimationEnabled=Pc,n}function Oc(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Pc(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ec(t,e,n,i){var r=new it.Group,a=new it.Group;return r.add(a),r.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?Cc(r,e,n):Ac(r,0,n),Dc(r,n,i),Lc(r,e,n,i),r.__pictorialShapeStr=Nc(t,n),r.__pictorialSymbolMeta=n,r}function Rc(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var a=[];Fc(i,(function(t){a.push(t)})),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),C.each(a,(function(t){it.removeElement(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function Nc(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Fc(t,e,n){C.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function Bc(t,e,n,i,r,a){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&it[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function zc(t,e,n){var i=n.dataIndex,r=n.itemModel,a=r.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=a.get("focus"),h=a.get("blurScope"),d=a.get("scale");Fc(t,(function(t){if(t instanceof m.default){var e=t.style;t.useStyle(C.extend({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=o,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,(0,lt.setLabelStyle)(f,(0,lt.getLabelStatesModels)(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:xt(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),(0,st.toggleHoverEmphasis)(t,c,h,a.get("disabled"))}function Vc(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Wc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),a=this._data,o=t.coordinateSystem,s=o.getBaseAxis().isHorizontal(),l=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:Sc[+s],categoryDim:Sc[1-+s]};r.diff(a).add((function(t){if(r.hasValue(t)){var e=kc(r,t),n=Mc(r,t,e,u),a=Ec(r,u,n);r.setItemGraphicEl(t,a),i.add(a),zc(a,u,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(r.hasValue(t)){var o=kc(r,t),s=Mc(r,t,o,u),l=Nc(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex,a=t.__pictorialBundle;it.updateProps(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Cc(t,e,n,!0):Ac(t,e,n,!0),Dc(t,n,!0),Lc(t,e,n,!0)}(n,u,s):n=Ec(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),zc(n,u,s)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&Rc(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?pt(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){Rc(i,(0,ot.getECData)(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(yt.default),Gc=(je=a("lCvKW"),$e=a("jmxtG"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=(0,$e.inheritDefaultOption)(Qe.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"}}}),e}(Qe));Ue=a("hRFEi"),C=a("2FIaD"),dl=a("lfZwf"),ct=a("lcKsG"),yr=a("3Q8SW"),C=a("2FIaD"),W=a("hpPau");var Hc=2*Math.PI,Uc=Math.PI/180;function Yc(t,e){return yr.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Xc(t,e){var n=Yc(t,e),i=t.get("center"),r=t.get("radius");C.isArray(r)||(r=[0,r]);var a,o,s=(0,ct.parsePercent)(n.width,e.getWidth()),l=(0,ct.parsePercent)(n.height,e.getHeight()),u=Math.min(s,l),c=(0,ct.parsePercent)(r[0],u/2),h=(0,ct.parsePercent)(r[1],u/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);a=p[0]||0,o=p[1]||0}else C.isArray(i)||(i=[i,i]),a=(0,ct.parsePercent)(i[0],s)+n.x,o=(0,ct.parsePercent)(i[1],l)+n.y;return{cx:a,cy:o,r0:c,r:h}}function Kc(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=Yc(t,n),a=Xc(t,n),o=a.cx,s=a.cy,l=a.r,u=a.r0,c=-t.get("startAngle")*Uc,h=t.get("endAngle"),d=t.get("padAngle")*Uc;h="auto"===h?c-Hc:-h*Uc;var p=t.get("minAngle")*Uc+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var g=e.getSum(i),y=Math.PI/(g||f)*2,m=t.get("clockwise"),v=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=m?1:-1,S=[c,h],C=b*d/2;(0,W.normalizeArcAngles)(S,!m),c=S[0],h=S[1];var w=Math.abs(h-c),M=w,I=0,T=c;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:o,cy:s,r0:u,r:v?NaN:l});else{(i="area"!==v?0===g&&x?y:t*y:w/f)<p?(i=p,M-=p):I+=t;var r=T+b*i,a=0,c=0;d>i?c=a=T+b*i/2:(a=T+C,c=r-C),e.setItemLayout(n,{angle:i,startAngle:a,endAngle:c,clockwise:m,cx:o,cy:s,r0:u,r:v?(0,ct.linearMap)(t,_,[u,l]):l}),T=r}})),M<Hc&&f)if(M<=.001){var A=w/f;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=A;var r=0,a=0;A<d?a=r=c+b*(n+.5)*A:(r=c+b*n*A+C,a=c+b*(n+1)*A-C),i.startAngle=r,i.endAngle=a}}))}else y=M/I,T=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*y,a=0,o=0;r<d?o=a=T+b*r/2:(a=T+C,o=T+b*r-C),i.startAngle=a,i.endAngle=o,T+=b*r}}))}))}C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),nt=a("kJ7of"),a("dXBoT"),nt=a("kJ7of"),lr=a("fCBaM"),at=a("92sM9"),$=a("jud7h"),st=a("4lzC1"),yt=a("3dZ3l"),ct=a("lcKsG"),sr=a("NBRFu"),C=a("2FIaD"),cr=a("ePpUr"),mu=a("enB78");var jc=Math.PI/180;function Zc(t,e,n,i,r,a,o,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}(0,mu.shiftLayoutOnY)(t,l,l+o)&&function(t){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(a),p(o)}(t)}function p(t){for(var a=t.rB,o=a*a,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/o))*h),p=e+(d+l.len2)*r,f=p-l.label.x;qc(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function qc(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,a=t.rect,o=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=a.width+(o?0:l);if(e<c||n){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();a.width=g.width;var y=(i.style.margin||0)+2.1;a.height=g.height+y,a.y-=(a.height-h)/2}}}function Jc(t){return"center"===t.position}function Qc(t){var e,n,i=t.getData(),r=[],a=!1,o=(t.get("minShowLabelAngle")||0)*jc,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),y=g.getModel("label"),m=y.get("position")||g.get(["emphasis","label","position"]),v=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=(0,ct.parsePercent)(y.get("edgeDistance"),u),b=y.get("bleedMargin"),S=g.getModel("labelLine"),w=S.get("length");w=(0,ct.parsePercent)(w,u);var M=S.get("length2");if(M=(0,ct.parsePercent)(M,u),Math.abs(h.endAngle-h.startAngle)<o)return(0,C.each)(d.states,p),d.ignore=!0,void(f&&((0,C.each)(f.states,p),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(d)){var I,T,A,D,L=(h.startAngle+h.endAngle)/2,k=Math.cos(L),O=Math.sin(L);e=h.cx,n=h.cy;var P="inside"===m||"inner"===m;if("center"===m)I=h.cx,T=h.cy,D="center";else{var E=(P?(h.r+h.r0)/2*k:h.r*k)+e,R=(P?(h.r+h.r0)/2*O:h.r*O)+n;if(I=E+3*k,T=R+3*O,!P){var N=E+k*(w+l-h.r),B=R+O*(w+l-h.r),F=N+(k<0?-1:1)*M;I="edge"===x?k<0?c+_:c+u-_:F+(k<0?-v:v),T=B,A=[[E,R],[N,B],[F,B]]}D=P?"center":"edge"===x?k>0?"right":"left":k>0?"left":"right"}var z=Math.PI,V=0,W=y.get("rotate");if((0,C.isNumber)(W))V=W*(z/180);else if("center"===m)V=0;else if("radial"===W||!0===W)V=k<0?-L+z:-L;else if("tangential"===W&&"outside"!==m&&"outer"!==m){var G=Math.atan2(k,O);G<0&&(G=2*z+G),O>0&&(G=z+G),V=G-z}if(a=!!V,d.x=I,d.y=T,d.rotation=V,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:D});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var j=d.getBoundingRect().clone();j.applyTransform(d.getComputedTransform());var U=(d.style.margin||0)+2.1;j.y-=U/2,j.height+=U,r.push({label:d,labelLine:f,position:m,len:w,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new(0,sr.default)(k,O),linePoints:A,textAlign:D,labelDistance:v,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:j,unconstrainedWidth:j.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!a&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;Jc(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++)if(!Jc(y=t[d])&&y.linePoints){if(null!=y.labelStyleWidth)continue;p=y.label;var f,g=y.linePoints;f="edge"===y.labelAlignTo?p.x<e?g[2][0]-y.labelDistance-o-y.edgeDistance:o+r-y.edgeDistance-g[2][0]-y.labelDistance:"labelLine"===y.labelAlignTo?p.x<e?c-o-y.bleedMargin:o+r-h-y.bleedMargin:p.x<e?p.x-o-y.bleedMargin:o+r-p.x-y.bleedMargin,y.targetTextWidth=f,qc(y,f)}for(Zc(u,e,n,i,1,0,a,0,s,h),Zc(l,e,n,i,-1,0,a,0,s,c),d=0;d<t.length;d++){var y;if(!Jc(y=t[d])&&y.linePoints){p=y.label,g=y.linePoints;var m="edge"===y.labelAlignTo,v=p.style.padding,x=v?v[1]+v[3]:0,_=p.style.backgroundColor?0:x,b=y.rect.width+_,S=g[1][0]-g[2][0];m?p.x<e?g[2][0]=o+y.edgeDistance+b+y.labelDistance:g[2][0]=o+r-y.edgeDistance-b-y.labelDistance:(p.x<e?g[2][0]=p.x+y.labelDistance:g[2][0]=p.x-y.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=p.y}}}(r,e,n,l,u,d,c,h);for(var f=0;f<r.length;f++){var g=r[f],y=g.label,m=g.labelLine,v=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),v&&((0,C.each)(y.states,p),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var _=g.linePoints;v||!_?((0,C.each)(m.states,p),m.ignore=!0):((0,cr.limitTurnAngle)(_,g.minTurnAngle),(0,cr.limitSurfaceAngle)(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new(0,sr.default)(_[0][0],_[0][1])})}}}cr=a("ePpUr"),lt=a("c3Bep"),nt=a("kJ7of");var $c=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var a=new $.default;return r.setTextContent(a),r.updateData(e,n,i,!0),r}return(0,je.__extends)(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,a=t.hostModel,o=t.getItemModel(e),s=o.getModel("emphasis"),l=t.getItemLayout(e),u=(0,C.extend)(Mt(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=a.getShallow("animationType");a.ecModel.ssr?(nt.initProps(r,{scaleX:0,scaleY:0},a,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,nt.initProps(r,{shape:{r:l.r}},a,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),nt.initProps(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},a,e)):(r.shape.endAngle=l.startAngle,nt.updateProps(r,{shape:{endAngle:l.endAngle}},a,e))}else(0,nt.saveOldStyle)(r),nt.updateProps(r,{shape:u},a,e);r.useStyle(t.getItemVisual(e,"style")),(0,st.setStatesStylesFromModel)(r,o);var h=(l.startAngle+l.endAngle)/2,d=a.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=o.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(a,t,e),r.ensureState("emphasis").shape=(0,C.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Mt(s.getModel("itemStyle"),l)),(0,C.extend)(r.ensureState("select"),{x:p,y:f,shape:Mt(o.getModel(["select","itemStyle"]),l)}),(0,C.extend)(r.ensureState("blur"),{shape:Mt(o.getModel(["blur","itemStyle"]),l)});var y=r.getTextGuideLine(),m=r.getTextContent();y&&(0,C.extend)(y.ensureState("select"),{x:p,y:f}),(0,C.extend)(m.ensureState("select"),{x:p,y:f}),(0,st.toggleHoverEmphasis)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),a=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;(0,lt.setLabelStyle)(i,(0,lt.getLabelStatesModels)(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new lr.default,this.setTextGuideLine(h)),(0,cr.setLabelLineStyle)(this,(0,cr.getLabelLineStatesModels)(r),{stroke:s,opacity:(0,C.retrieve3)(a.get(["lineStyle","opacity"]),l,1)})}},e}(at.default),eh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){var r,a=t.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<a.count();++u)l=a.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&t.get("showEmptyCircle")){var c=new at.default({shape:Xc(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}a.diff(o).add((function(t){var e=new $c(a,t,r);a.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(a,t,r),n.off("click"),s.add(n),a.setItemGraphicEl(t,n)})).remove((function(e){var n=o.getItemGraphicEl(e);nt.removeElementWithFadeOut(n,t,e)})).execute(),Qc(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,a=Math.sqrt(i*i+r*r);return a<=n.r&&a>=n.r0}},e.type="pie",e}(yt.default),th=(je=a("lCvKW"),C=a("2FIaD"),Bn=a("2LuwV"),ct=a("lcKsG"),jt=a("39jKu"),Ze=a("gGiC4"),Bn.makeInner()),nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new fr(C.bind(this.getData,this),C.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Xt(this,{coordDimensions:["value"],encodeDefaulter:C.curry(jt.makeSeriesEncodeForNameBased,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=th(n),r=i.seats;if(!r){var a=[];n.each(n.mapDimension("value"),(function(t){a.push(t)})),r=i.seats=(0,ct.getPercentSeats)(a,n.hostModel.get("percentPrecision"))}var o=t.prototype.getDataParams.call(this,e);return o.percent=r[e]||0,o.$vars.push("percent"),o},e.prototype._defaultLabelLine=function(t){Bn.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Ze.default);function ih(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();C.each(r,(function(t,a){e.each(e.mapDimension(r[a].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,a);n[e][a]=rh(r)?r:ah(i)}))})),e.each((function(t){var r=C.find(n[t],(function(t){return rh(t)}))||ah(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function rh(t){return!isNaN(t[0])&&!isNaN(t[1])}function ah(t){return[t.cx,t.cy]}function oh(t){var e=t.polar;if(e){C.isArray(e)||(e=[e]);var n=[];C.each(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],C.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}C.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}C=a("2FIaD"),p=a("kyrfh"),C=a("2FIaD"),C=a("2FIaD"),je=a("lCvKW"),it=a("dXBoT"),st=a("4lzC1"),C=a("2FIaD"),Ki=a("2ZiWs"),yt=a("3dZ3l"),lt=a("c3Bep"),m=a("kbAoh"),nt=a("kJ7of");var sh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),o=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=Ki.normalizeSymbolSize(t.getItemVisual(e,"symbolSize")),r=Ki.createSymbol(n,-1,-1,2,2),a=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:a*Math.PI/180||0}),r}}function l(e,n,i,r,a,o){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,a);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),it[o?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,a)):u.setPosition(n[l]),i.add(u))}}function u(t){return C.map(t,(function(t){return[i.cx,i.cy]}))}a.diff(o).add((function(e){var n=a.getItemLayout(e);if(n){var i=new it.Polygon,r=new it.Polyline,o={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),it.initProps(i,o,t,e),it.initProps(r,o,t,e);var s=new it.Group,c=new it.Group;s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var i=o.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),u=i.childAt(2),c={shape:{points:a.getItemLayout(e)}};c.shape.points&&(l(r.shape.points,c.shape.points,u,a,e,!1),(0,nt.saveOldStyle)(s),(0,nt.saveOldStyle)(r),it.updateProps(r,c,t),it.updateProps(s,c,t),a.setItemGraphicEl(e,i))})).remove((function(t){r.remove(o.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),o=t.childAt(1),s=t.childAt(2),l=a.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(C.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,st.setStatesStylesFromModel)(i,n,"lineStyle"),(0,st.setStatesStylesFromModel)(o,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();o.ignore=h,C.each(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=i&&h})),o.useStyle(C.defaults(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof m.default){var i=t.style;t.useStyle(C.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=C.clone(p);var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),(0,lt.setLabelStyle)(t,(0,lt.getLabelStatesModels)(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})})),(0,st.toggleHoverEmphasis)(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(yt.default),lh=(je=a("lCvKW"),Ze=a("gGiC4"),C=a("2FIaD"),so=a("eckBc"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,je.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new fr(C.bind(this.getData,this),C.bind(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Xt(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(t),o=""===a?this.name:a,s=(0,so.retrieveVisualColorForTooltipMarker)(this,t);return(0,so.createTooltipMarkup)("section",{header:o,sortBlocks:!0,blocks:C.map(r,(function(e){var n=i.get(i.mapDimension(e.dim),t);return(0,so.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(C.map(n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,a=i.length;r<a;r++)if(!isNaN(i[r])){var o=n.getIndicatorAxes();return n.coordToPoint(o[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Ze.default)),uh=(je=a("lCvKW"),C=a("2FIaD"),Ha=a("9xTlQ"),fu=a("7J1ai"),pl=a("eWRYv"),lu.value);function ch(t,e){return C.defaults({show:e},t)}var hh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=C.map(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=o;null!=h.color&&(d=C.defaults({color:h.color},o));var p=C.merge(C.clone(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:a,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(C.isString(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else C.isFunction(l)&&(p.name=l(p.name,p));var g=new(0,Ha.default)(p,null,this.ecModel);return C.mixin(g,fu.AxisModelCommonMixin.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:C.merge({lineStyle:{color:"#bbb"}},uh.axisLine),axisLabel:ch(uh.axisLabel,!1),axisTick:ch(uh.axisTick,!1),splitLine:ch(uh.splitLine,!0),splitArea:ch(uh.splitArea,!0),indicator:[]},e}(pl.default);je=a("lCvKW"),C=a("2FIaD"),a("dXBoT"),as=a("1RKvJ");var dh=a("jBtAL"),ph=(lr=a("fCBaM"),ur=a("dVgap"),it=a("dXBoT"),Sl=a("2UHy9"),["axisLine","axisTickLabel","axisName"]),fh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=C.map(n,(function(t){var n=t.model.get("showName")?t.name:"";return new Iu(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));C.each(i,(function(t){C.each(ph,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),a=t.getModel("splitArea"),o=r.getModel("lineStyle"),s=a.getModel("areaStyle"),l=r.get("show"),u=a.get("show"),c=o.get("color"),h=s.get("color"),d=C.isArray(c)?c:[c],p=C.isArray(h)?h:[h],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),m=e.cx,v=e.cy,x=0;x<y.length;x++)l&&f[A(f,d,x)].push(new as.default({shape:{cx:m,cy:v,r:y[x].coord}})),u&&x<y.length-1&&g[A(g,p,x)].push(new dh.default({shape:{cx:m,cy:v,r0:y[x].coord,r:y[x+1].coord}}));else{var _,b=C.map(n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),C.map(i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=_;x++){for(var w=[],M=0;M<n.length;M++)w.push(b[M][x]);w[0]&&w.push(w[0].slice()),l&&f[A(f,d,x)].push(new lr.default({shape:{points:w}})),u&&S&&g[A(g,p,x-1)].push(new ur.default({shape:{points:w.concat(S)}})),S=w.slice().reverse()}}var I=o.getLineStyle(),T=s.getAreaStyle();C.each(g,(function(t,e){this.group.add(it.mergePath(t,{style:C.defaults({stroke:"none",fill:p[e%p.length]},T),silent:!0}))}),this),C.each(f,(function(t,e){this.group.add(it.mergePath(t,{style:C.defaults({fill:"none",stroke:d[e%d.length]},I),silent:!0}))}),this)}function A(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(Sl.default),gh=(je=a("lCvKW"),function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,je.__extends)(e,t),e}((mv=a("z6R1J")).default)),yh=a("bMR4E"),mh=(ct=a("lcKsG"),C=a("2FIaD"),ct=a("lcKsG"),yh=a("bMR4E"),Gl=a("37xup"),a("4y2gb")),vh=Math.log;function xh(t,e,n){var i=yh.default.prototype,r=i.getTicks.call(n),a=i.getTicks.call(n,!0),o=r.length-1,s=i.getInterval.call(n),l=(0,Gl.getScaleExtent)(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=vh(t.base);u=[vh(u[0])/d,vh(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var p=i.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(c&&h)f=(y-g)/o;else if(c)for(y=u[0]+f*o;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=(0,mh.increaseInterval)(f),y=u[0]+f*o;else if(h)for(g=u[1]-f*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=(0,mh.increaseInterval)(f),g=u[1]-f*o;else{t.getTicks().length-1>o&&(f=(0,mh.increaseInterval)(f));var m=f*o;y=Math.ceil(u[1]/f)*f,(g=(0,ct.round)(y-m))<0&&u[0]>=0?(g=0,y=(0,ct.round)(m)):y>0&&u[1]<=0&&(y=0,g=-(0,ct.round)(m))}var v=(r[0].value-a[0].value)/s,x=(r[o].value-a[o].value)/s;i.setExtent.call(t,g+f*v,y+f*x),i.setInterval.call(t,f),(v||x)&&i.setNiceExtent.call(t,g+f,y-f)}var _h=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,C.map)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new gh(n,new(0,yh.default));return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,a=Math.atan2(-n,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(r=u,s=l,o=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r)/2;this.cx=ct.parsePercent(n[0],i),this.cy=ct.parsePercent(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");((0,C.isString)(o)||(0,C.isNumber)(o))&&(o=[0,o]),this.r0=ct.parsePercent(o[0],a),this.r=ct.parsePercent(o[1],a),(0,C.each)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;(0,C.each)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var a=e.getData();(0,C.each)(n,(function(t){t.scale.unionExtentFromData(a,a.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),a=new(0,yh.default);a.setExtent(0,r),a.setInterval(1),(0,C.each)(n,(function(t,e){xh(t.scale,t.model,a)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}();function bh(t){t.registerCoordinateSystem("radar",_h),t.registerComponentModel(hh),t.registerComponentView(fh),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}je=a("lCvKW"),nt=a("kJ7of"),So=a("8BJkx"),a("dXBoT"),y=a("isgWw"),rt=a("jKUgc"),st=a("4lzC1"),yt=a("3dZ3l"),lt=a("c3Bep"),ot=a("5v9xk"),C=a("2FIaD");var Sh=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},wh=function(t){function e(e){return t.call(this,e)||this}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Sh},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){(0,st.enterEmphasis)(this)},e.prototype.downplay=function(){(0,st.leaveEmphasis)(this)},e}(y.default);function Mh(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,C.isString)(i)&&(0,C.isString)(r)&&(t.fill=new So.default(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}var Ih=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),a=this.group,o=t.layoutInfo,s=o.width,l=o.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,a.removeAll(),a.x=o.x,a.y=o.y,r.eachEdge((function(e){var n=new wh,i=(0,ot.getECData)(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,o,u,d,p,f,g,y,m=e.getModel(),v=m.getModel("lineStyle"),x=v.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),S=b.get("localX"),w=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),A=I.get("localY"),D=e.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(r=(null!=S?S*s:_.x)+D.sy,o=(null!=w?w*l:_.y)+_.dy,u=(null!=T?T*s:M.x)+D.ty,p=r,f=o*(1-x)+(d=null!=A?A*l:M.y)*x,g=u,y=o*x+d*(1-x)):(r=(null!=S?S*s:_.x)+_.dx,o=(null!=w?w*l:_.y)+D.sy,p=r*(1-x)+(u=null!=T?T*s:M.x)*x,f=o,g=r*x+u*(1-x),y=d=(null!=A?A*l:M.y)+D.ty),n.setShape({x1:r,y1:o,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(v.getItemStyle()),Mh(n.style,h,e);var L=""+m.get("value"),k=(0,lt.getLabelStatesModels)(m,"edgeLabel");(0,lt.setLabelStyle)(n,k,{labelFetcher:{getFormattedLabel:function(e,n,i,r,a,o){return t.getFormattedLabel(e,n,"edge",r,(0,C.retrieve3)(a,k.normal&&k.normal.get("formatter"),L),o)}},labelDataIndex:e.dataIndex,defaultText:L}),n.setTextConfig({position:"inside"});var O=m.getModel("emphasis");(0,st.setStatesStylesFromModel)(n,m,"lineStyle",(function(t){var n=t.getItemStyle();return Mh(n,h,e),n})),a.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=O.get("focus");(0,st.toggleHoverEmphasis)(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,O.get("blurScope"),O.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),o=i.get("localY"),c=i.getModel("emphasis"),h=new rt.default({shape:{x:null!=r?r*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,lt.setLabelStyle)(h,(0,lt.getLabelStatesModels)(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),(0,st.setStatesStylesFromModel)(h,i),a.add(h),u.setItemGraphicEl(e.dataIndex,h),(0,ot.getECData)(h).dataType="node";var d=c.get("focus");(0,st.toggleHoverEmphasis)(h,"adjacency"===d?e.getAdjacentDataIndices():"trajectory"===d?e.getTrajectoryDataIndices():d,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,r){u.getItemModel(r).get("draggable")&&(e.drift=function(e,a){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&a.setClipPath(function(t,e,n){var i=new rt.default({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return nt.initProps(i,{shape:{width:t.width+20}},e,(function(){a.removeClipPath()})),i}(a.getBoundingRect(),t)),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(yt.default),Th=(je=a("lCvKW"),Ze=a("gGiC4"),Ha=a("9xTlQ"),so=a("eckBc"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var a=this.levelModels,o=0;o<r.length;o++)null!=r[o].depth&&r[o].depth>=0&&(a[r[o].depth]=new(0,Ha.default)(r[o],this,e));if(i&&n)return oo(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,a=n.levelModels[r];a&&(t.parentModel=a)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,a=n.levelModels[r];a&&(t.parentModel=a)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),a=r.data,o=r.value,s=a.source+" -- "+a.target;return(0,so.createTooltipMarkup)("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,n).data.name;return(0,so.createTooltipMarkup)("nameValue",{name:null!=u?u+"":null,value:l,noValue:i(l)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.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},e}(Ze.default));function Ch(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return yr.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var a=r.width,o=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){C.each(t,(function(t){var e=Fh(t.outEdges,Nh),n=Fh(t.inEdges,Nh),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,a,o,s,l){(function(t,e,n,i,r,a,o){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);for(var p=-1;u.length;){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=y.depth&&y.depth>=0;m&&y.depth>p&&(p=y.depth),g.setLayout({depth:m?y.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var x=g.outEdges[v];s[e.indexOf(x)]=0;var _=x.node2;0==--l[t.indexOf(_)]&&c.indexOf(_)<0&&c.push(_)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var b=p>h-1?p:h-1;o&&"left"!==o&&function(t,e,n,i){if("right"===e){for(var r=[],a=t,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}a=r,r=[],++o}C.each(t,(function(t){Ah(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){C.each(t,(function(t){Ah(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,i)}(t,o,0,b),function(t,e,n){C.each(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}(t,"vertical"===a?(r-n)/b:(i-n)/b,a)})(t,e,n,r,a,s,l),function(t,e,n,i,r,a,o){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",r=(0,Bn.groupData)(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),C.each(r.keys,(function(t){n.push(r.buckets.get(t))})),n}(t,o);(function(t,e,n,i,r,a){var o=1/0;C.each(t,(function(t){var e=t.length,s=0;C.each(t,(function(t){s+=t.getLayout().value}));var l="vertical"===a?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<o&&(o=l)})),C.each(t,(function(t){C.each(t,(function(t,e){var n=t.getLayout().value*o;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),C.each(e,(function(t){var e=+t.getValue()*o;t.setLayout({dy:e},!0)}))})(s,e,n,i,r,o),Dh(s,r,n,i,o);for(var l=1;a>0;a--)Lh(s,l*=.99,o),Dh(s,r,n,i,o),Bh(s,l,o),Dh(s,r,n,i,o)}(t,e,a,r,i,o,s),function(t,e){var n="vertical"===e?"x":"y";C.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),C.each(t,(function(t){var e=0,n=0;C.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),C.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,i,a,o,0!==C.filter(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function Ah(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Dh(t,e,n,i,r){var a="vertical"===r?"x":"y";C.each(t,(function(t){var o,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=u-(s=t[d]).getLayout()[a])>0&&(o=s.getLayout()[a]+l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0)for(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[a]+s.getLayout()[h]+e-u)>0&&(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}))}function Lh(t,e,n){C.each(t.slice().reverse(),(function(t){C.each(t,(function(t){if(t.outEdges.length){var i=Fh(t.outEdges,kh,n)/Fh(t.outEdges,Nh);if(isNaN(i)){var r=t.outEdges.length;i=r?Fh(t.outEdges,Oh,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-Rh(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-Rh(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function kh(t,e){return Rh(t.node2,e)*t.getValue()}function Oh(t,e){return Rh(t.node2,e)}function Ph(t,e){return Rh(t.node1,e)*t.getValue()}function Eh(t,e){return Rh(t.node1,e)}function Rh(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Nh(t){return t.getValue()}function Fh(t,e,n){for(var i=0,r=t.length,a=-1;++a<r;){var o=+e(t[a],n);isNaN(o)||(i+=o)}return i}function Bh(t,e,n){C.each(t,(function(t){C.each(t,(function(t){if(t.inEdges.length){var i=Fh(t.inEdges,Ph,n)/Fh(t.inEdges,Nh);if(isNaN(i)){var r=t.inEdges.length;i=r?Fh(t.inEdges,Eh,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-Rh(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-Rh(t,n))*e;t.setLayout({y:o},!0)}}}))}))}yr=a("3Q8SW"),C=a("2FIaD"),Bn=a("2LuwV"),C=a("2FIaD"),C=a("2FIaD"),te=a("l3Be0"),ct=a("lcKsG");var zh=C.each,Vh=C.isObject,Wh=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=C.clone(e);this.type=i,this.mappingMethod=n,this._normalizeData=Jh[n];var a=t.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(Gh(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,C.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(zh(e,(function(t,e){n[t]=e})),!C.isArray(i)){var r=[];C.isObject(i)?zh(i,(function(t,e){var i=n[e];r[null!=i?i:-1]=t})):r[-1]=i,i=qh(t,r)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}(r):Gh(r,!0):(C.assert("linear"!==n||r.dataExtent),Gh(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return C.bind(this._normalizeData,this)},t.listVisualTypes=function(){return C.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){C.isObject(t)?C.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,a=C.isArray(e)?[]:C.isObject(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var o=n.call(i,t,e);r?a=o:a[e]=o})),a},t.retrieveVisuals=function(e){var n,i={};return e&&zh(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(C.isArray(t))t=t.slice();else{if(!Vh(t))return[];var e=[];zh(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,a=0,o=e.length;a<o;a++){var s=e[a].value;if(null!=s){if(s===t||C.isString(s)&&s===t+"")return a;n&&h(s,a)}}for(a=0,o=e.length;a<o;a++){var l=e[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(Qh(c[1],t,u[1]))return a}else if(u[1]===1/0){if(Qh(c[0],u[0],t))return a}else if(Qh(c[0],u[0],t)&&Qh(c[1],t,u[1]))return a;n&&h(u[0],a),n&&h(u[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var a=Math.abs(e-t);a<r&&(r=a,i=n)}},t.visualHandlers={color:{applyVisual:Yh("color"),getColorMapper:function(){var t=this.option;return C.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),Xh.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=te.fastLerp(e,t.parsedVisual,i),r?i:te.stringify(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return te.stringify(te.fastLerp(t,this.option.parsedVisual),"rgba")},category:Xh,piecewise:function(t,e){var n=Zh.call(this,e);return null==n&&(n=te.stringify(te.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:Kh}},colorHue:Hh((function(t,e){return te.modifyHSL(t,e)})),colorSaturation:Hh((function(t,e){return te.modifyHSL(t,null,e)})),colorLightness:Hh((function(t,e){return te.modifyHSL(t,null,null,e)})),colorAlpha:Hh((function(t,e){return te.modifyAlpha(t,e)})),decal:{applyVisual:Yh("decal"),_normalizedToVisual:{linear:null,category:Xh,piecewise:null,fixed:null}},opacity:{applyVisual:Yh("opacity"),_normalizedToVisual:jh([0,1])},liftZ:{applyVisual:Yh("liftZ"),_normalizedToVisual:{linear:Kh,category:Kh,piecewise:Kh,fixed:Kh}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Uh,category:Xh,piecewise:function(t,e){var n=Zh.call(this,e);return null==n&&(n=Uh.call(this,t)),n},fixed:Kh}},symbolSize:{applyVisual:Yh("symbolSize"),_normalizedToVisual:jh([0,1])}},t}();function Gh(t,e){var n=t.visual,i=[];C.isObject(n)?zh(n,(function(t){i.push(t)})):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),qh(t,i)}function Hh(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:jh([0,1])}}function Uh(t){var e=this.option.visual;return e[Math.round((0,ct.linearMap)(t,[0,1],[0,e.length-1],!0))]||{}}function Yh(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function Xh(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function Kh(){return this.option.visual[0]}function jh(t){return{linear:function(e){return(0,ct.linearMap)(e,t,this.option.visual,!0)},category:Xh,piecewise:function(e,n){var i=Zh.call(this,n);return null==i&&(i=(0,ct.linearMap)(e,t,this.option.visual,!0)),i},fixed:Kh}}function Zh(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Wh.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function qh(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=C.map(e,(function(t){return te.parse(t)||[0,0,0,1]}))),e}var Jh={linear:function(t){return(0,ct.linearMap)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Wh.findPieceIndex(t,e,!0);if(null!=n)return(0,ct.linearMap)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:C.noop};function Qh(t,e,n){return t?e<=n:e<n}var $h=Wh;function ed(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,a=-1/0;C.each(n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>a&&(a=e)})),C.each(n,(function(e){var n=new $h({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&C.each(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}p=a("kyrfh"),je=a("lCvKW"),qe=a("4TZPm");var td=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,qe.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}((Ze=a("gGiC4")).default);je=a("lCvKW"),je=a("lCvKW"),Jr=a("lV62k"),tt=a("2IUoL"),a("dXBoT"),y=a("isgWw"),Ki=a("2ZiWs"),ot=a("5v9xk");var nd=function(){},id=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,je.__extends)(e,t),e.prototype.getDefaultShape=function(){return new nd},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,a=this.symbolProxy,o=a.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(o.x=c-r[0]/2,o.y=h-r[1]/2,o.width=r[0],o.height=r[1],a.buildPath(t,o,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,a=this.softClipShape;if(r){for(t=this._off;t<n.length;){var o=n[t++],s=n[t++];isNaN(o)||isNaN(s)||a&&!a.contain(o,s)||r.fillRect(o-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-a/2,c=i[l+1]-o/2;if(t>=u&&e>=c&&t<=u+a&&e<=c+o)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],a=i[1],o=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];o=Math.min(h,o),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new Jr.default(o-r/2,s-a/2,l-o+r,u-s+a)}return t},e}(y.default),rd=function(){function t(){this.group=new tt.default}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=8*t.startIndex;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+r.length);s.set(a),s.set(r,o),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new id({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,Ki.createSymbol)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("style"),s=o&&o.fill;s&&t.setColor(s);var l=(0,ot.getECData)(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ad=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=rr("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new rd:new $i,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}((yt=a("3dZ3l")).default),od=(je=a("lCvKW"),Sl=a("2UHy9"),je=a("lCvKW"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}((pl=a("eWRYv")).default));a("dXBoT"),rt=a("jKUgc"),C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),pl=a("eWRYv"),fu=a("7J1ai"),Bn=a("2LuwV");var sd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bn.SINGLE_REFERRING).models[0]},e.type="cartesian2dAxis",e}(pl.default);C.mixin(sd,fu.AxisModelCommonMixin),C=a("2FIaD"),yr=a("3Q8SW"),Gl=a("37xup"),je=a("lCvKW"),Jr=a("lV62k"),C=a("2FIaD");var ld=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return C.map(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),C.filter(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),ud=(nr=a("0445l"),Dr=a("jkyg0"),["x","y"]);function cd(t){return"interval"===t.type||"time"===t.type}var hd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ud,e}return(0,je.__extends)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(cd(t)&&cd(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),a=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],s=i[1]-i[0];if(o&&s){var l=(a[0]-r[0])/o,u=(a[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=(0,nr.invert)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),a=new(0,Jr.default)(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,Dr.applyTransform)(n,t,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(i,e)),n[1]=o.toGlobalCoord(o.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return(0,Dr.applyTransform)(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,a=Math.max(e[0],e[1])-i+t,o=Math.max(n[0],n[1])-r+t;return new(0,Jr.default)(i,r,a,o)},e}(ld),dd=(je=a("lCvKW"),function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.index=0,o.type=r||"value",o.position=a||"bottom",o}return(0,je.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}((mv=a("z6R1J")).default));function pd(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}a.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===u?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),C.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-y:y,a.z2=1,a}function fd(t){return"cartesian2d"===t.get("coordinateSystem")}function gd(t){var e={xAxisModel:null,yAxisModel:null};return C.each(e,(function(n,i){var r=i.replace(/Model$/,""),a=t.getReferringComponents(r,Bn.SINGLE_REFERRING).models[0];e[i]=a})),e}function yd(t,e){return t.getCoordSysModel()===e}function md(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)vd(a[l])&&(r=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&vd(a[u])&&!i[c(a[u])]){r=a[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function vd(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,Gl.ifAxisCrossZero)(t)}Bn=a("2LuwV"),C=a("2FIaD"),Bn=a("2LuwV"),mh=a("4y2gb");var xd=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ud,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=(0,C.keys)(t),i=n.length;if(i){for(var r=[],a=i-1;a>=0;a--){var o=t[+n[a]],s=o.model,l=o.scale;(0,mh.isIntervalOrLogScale)(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(o):((0,Gl.niceScaleExtent)(l,s),(0,mh.isIntervalOrLogScale)(l)&&(e=o))}r.length&&(e||(e=r.pop(),(0,Gl.niceScaleExtent)(e.scale,e.model)),(0,C.each)(r,(function(t){xh(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};(0,C.each)(n.x,(function(t){md(n,"y",t,r)})),(0,C.each)(n.y,(function(t){md(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),a=(0,yr.getLayoutRect)(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var o=this._axesList;function s(){(0,C.each)(o,(function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?a.x:a.y)}))}s(),r&&((0,C.each)(o,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,Gl.estimateLabelUnionRect)(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}})),s()),(0,C.each)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}(0,C.isObject)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Bn.SINGLE_REFERRING).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",Bn.SINGLE_REFERRING).models[0],o=t.gridModel,s=this._coordsList;return i?(e=i.coordinateSystem,(0,C.indexOf)(s,e)<0&&(e=null)):r&&a?e=this.getCartesian(r.componentIndex,a.componentIndex):r?n=this.getAxis("x",r.componentIndex):a?n=this.getAxis("y",a.componentIndex):o&&o.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(yd(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var u=new dd(e,(0,Gl.createScaleByModel)(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),o[e][i]=u,s[e]++}}}this._axesMap=o,(0,C.each)(o.x,(function(e,n){(0,C.each)(o.y,(function(r,a){var o="x"+n+"y"+a,s=new hd(o);s.master=i,s.model=t,i._coordsMap[o]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){(0,C.each)((0,Gl.getDataDimensionsOnAxis)(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}(0,C.each)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(fd(t)){var i=gd(t),r=i.xAxisModel,a=i.yAxisModel;if(!yd(r,e)||!yd(a,e))return;var o=this.getCartesian(r.componentIndex,a.componentIndex),s=t.getData(),l=o.getAxis("x"),u=o.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,C.each)(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);(0,C.indexOf)(e,r)<0&&e.push(r),(0,C.indexOf)(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,a){var o=new t(r,e,n);o.name="grid_"+a,o.resize(r,n,!0),r.coordinateSystem=o,i.push(o)})),e.eachSeries((function(t){if(fd(t)){var e=gd(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=ud,t}();function _d(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];(0,C.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Id(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if((0,C.each)(n.getAxes(),(0,C.curry)(p,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&(0,C.each)(d.baseAxes,(0,C.curry)(p,!h||"cross",c)),h&&(0,C.each)(d.otherAxes,(0,C.curry)(p,"cross",!1))}}function p(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||Md(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,a){var o=e.getModel("axisPointer"),s={};(0,C.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=(0,C.clone)(o.get(t))})),s.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=o.get(["label","show"]);if(l.show=null==u||u,!a){var c=s.lineStyle=o.get("crossStyle");c&&(0,C.defaults)(l,c.textStyle)}}return t.model.getModel("axisPointer",new(0,Ha.default)(s,n,i))}(c,u,r,e,i,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=Id(c.model),y=s||p||"category"===c.type,m=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:Md(h),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||y;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(bd(a[i+"AxisId"],n.id)||bd(a[i+"AxisIndex"],n.componentIndex)||bd(a[i+"AxisName"],n.name))return r}}(a,c);if(null!=v){var x=o[v]||(o[v]={axesInfo:{}});x.axesInfo[g]=m,x.mapper=a[v].mapper,m.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&(0,C.each)(t.coordSysAxesInfo[Id(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function bd(t,e){return"all"===t||(0,C.isArray)(t)&&(0,C.indexOf)(t,e)>=0||t===e}function Sd(t){var e=wd(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=Md(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function wd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Id(t)]}function Md(t){return!!t.get(["handle","show"])}function Id(t){return t.type+"||"+t.id}je=a("lCvKW"),C=a("2FIaD"),tt=a("2IUoL"),it=a("dXBoT"),br=a("l0SnR"),je=a("lCvKW"),Ha=a("9xTlQ"),C=a("2FIaD"),Sl=a("2UHy9");var Td={},Cd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&Sd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=function(t){var e=wd(t);return e&&e.axisPointerModel}(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Td[t]=e},e.getAxisPointerClass=function(t){return t&&Td[t]},e.type="axis",e}(Sl.default);C=a("2FIaD"),a("dXBoT"),rt=a("jKUgc");var Ad=(0,(Bn=a("2LuwV")).makeInner)();function Dd(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,h=Ad(t).splitAreaColors,d=C.createHashMap(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var y=r.toGlobalCoord(u[0].coord),m=o.getAreaStyle();for(s=C.isArray(s)?s:[s],f=1;f<u.length;f++){var v=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,S=void 0;r.isHorizontal()?(x=y,_=l.y,b=v-x,S=l.height,y=x+b):(x=l.x,_=y,b=l.width,y=_+(S=v-_));var w=u[f-1].tickValue;null!=w&&d.set(w,p),e.add(new rt.default({anid:null!=w?"area_"+w:null,shape:{x:x,y:_,width:b,height:S},style:C.defaults({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%c}Ad(t).splitAreaColors=d}}}function Ld(t){Ad(t).splitAreaColors=null}mh=a("4y2gb");var kd=["axisLine","axisTickLabel","axisName"],Od=["splitArea","splitLine","minorSplitLine"],Pd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,je.__extends)(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new tt.default,this.group.add(this._axisGroup),e.get("show")){var o=e.getCoordSysModel(),s=pd(o,e),l=new Iu(e,C.extend({handleAutoShown:function(t){for(var n=o.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,mh.isIntervalOrLogScale)(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));C.each(kd,l.add,l),this._axisGroup.add(l.getGroup()),C.each(Od,(function(t){e.get([t,"show"])&&Ed[t](this,this._axisGroup,e,o)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||it.groupTransition(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){Ld(this)},e.type="cartesianAxis",e}(Cd),Ed={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=C.isArray(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:a}),d=[],p=[],f=o.getLineStyle(),g=0;g<h.length;g++){var y=r.toGlobalCoord(h[g].coord);u?(d[0]=y,d[1]=l.y,p[0]=y,p[1]=l.y+l.height):(d[0]=l.x,d[1]=y,p[0]=l.x+l.width,p[1]=y);var m=c++%s.length,v=h[g].tickValue,x=new br.default({anid:null!=v?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:C.defaults({stroke:s[m]},f),silent:!0});it.subPixelOptimizeLine(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),o=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=a.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=o.y,c[0]=f,c[1]=o.y+o.height):(u[0]=o.x,u[1]=f,c[0]=o.x+o.width,c[1]=f);var g=new br.default({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});it.subPixelOptimizeLine(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){Dd(t,e,n,i)}},Rd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="xAxis",e}(Pd),Nd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Rd.type,e}return(0,je.__extends)(e,t),e.type="yAxis",e}(Pd),Fd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,je.__extends)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new(0,rt.default)({shape:t.coordinateSystem.getRect(),style:(0,C.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Sl.default),Bd={offset:0};function zd(t){t.registerComponentView(Fd),t.registerComponentModel(od),t.registerCoordinateSystem("cartesian2d",xd),hu(t,"x",sd,Bd),hu(t,"y",sd,Bd),t.registerComponentView(Rd),t.registerComponentView(Nd),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}je=a("lCvKW"),C=a("2FIaD"),yt=a("3dZ3l"),je=a("lCvKW"),C=a("2FIaD"),nt=a("kJ7of"),a("dXBoT"),nt=a("kJ7of"),at=a("92sM9"),$=a("jud7h"),st=a("4lzC1"),lt=a("c3Bep"),ot=a("5v9xk"),ei=a("8yeYH"),nt=a("kJ7of");var Vd=a("cy15m"),Wd=(ct=a("lcKsG"),function(t){function e(e,n,i,r){var a=t.call(this)||this;a.z2=2,a.textConfig={inside:!0},(0,ot.getECData)(a).seriesIndex=n.seriesIndex;var o=new $.default({z2:4,silent:e.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,e,n,i,r),a}return(0,je.__extends)(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;(0,ot.getECData)(a).dataIndex=e.dataIndex;var o=e.getModel(),s=o.getModel("emphasis"),l=e.getLayout(),u=C.extend({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=(0,ei.createOrUpdatePatternFromDecal)(h,r));var d=Mt(o.getModel("itemStyle"),u,!0);C.extend(u,d),C.each(st.SPECIAL_STATES,(function(t){var e=a.ensureState(t),n=o.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=Mt(n,u);i&&(e.shape=i)})),t?(a.setShape(u),a.shape.r=l.r0,nt.initProps(a,{shape:{r:l.r}},n,e.dataIndex)):(nt.updateProps(a,{shape:u},n),(0,nt.saveOldStyle)(a)),a.useStyle(c),this._updateLabel(n);var p=o.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;(0,st.toggleHoverEmphasis)(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),a=r.endAngle-r.startAngle,o=(r.startAngle+r.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(a)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,C.each(st.DISPLAY_STATES,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),y=t.getFormattedLabel(h,i);p&&(y=y||e.node.name),g.style=(0,lt.createTextStyle)(d,{},null,"normal"!==i,!0),y&&(g.style.text=y);var m=d.get("show");null==m||p||(g.ignore=!m);var v,x=f(d,"position"),_=p?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?b:null,inside:"outside"!==x};var S=f(d,"distance")||0,w=f(d,"align"),M=f(d,"rotate"),I=.5*Math.PI,T=1.5*Math.PI,A=(0,Vd.normalizeRadian)("tangential"===M?Math.PI/2-o:o),D=A>I&&!(0,ct.isRadianAroundZero)(A-I)&&A<T;"outside"===x?(v=r.r+S,w=D?"right":"left"):w&&"center"!==w?"left"===w?(v=r.r0+S,w=D?"right":"left"):"right"===w&&(v=r.r-S,w=D?"left":"right"):(v=a===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,w="center"),g.style.align=w,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=v*s+r.cx,g.y=v*l+r.cy;var L=0;"radial"===M?L=(0,Vd.normalizeRadian)(-o)+(D?Math.PI:0):"tangential"===M?L=(0,Vd.normalizeRadian)(Math.PI/2-o)+(D?Math.PI:0):C.isNumber(M)&&(L=M*Math.PI/180),g.rotation=(0,Vd.normalizeRadian)(L)})),c.dirtyStyle()},e}(at.default));function Gd(t,e,n){if(t&&C.indexOf(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(C.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var a=t.targetNodeId;if(null!=a&&(r=i.getNodeById(a)))return{node:r}}}function Hd(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function Ud(t,e){var n=Hd(t);return C.indexOf(n,e)>=0}function Yd(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}function Xd(t){t.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=Gd(t,["sunburstRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=Ud(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))})),t.registerAction({type:"sunburstHighlight",update:"none"},(function(t,e,n){t=(0,C.extend)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=Gd(t,["sunburstHighlight"],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction((0,C.extend)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=(0,C.extend)({},t),n.dispatchAction((0,C.extend)(t,{type:"downplay"}))}))}Hn=a("7aXlh"),C=a("2FIaD"),C=a("2FIaD"),ko=a("bZ9NN");var Kd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var a=t.getData(),o=a.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];!function(i,r){function s(t){return t.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==o&&r!==o)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),a.setItemGraphicEl(i.dataIndex,r.piece)):function(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new Wd(i,t,e,n);l.add(s),a.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new(0,Hn.default)(r,i,s,s).add(c).update(c).remove(C.curry(c,null)).execute()}(c,h),function(i,a){a.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new Wd(i,t,e,n),l.add(r.virtualPiece)),a.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(a.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(o,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";(0,ko.windowOpen)(o,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,a=Math.sqrt(i*i+r*r);return a<=n.r&&a>=n.r0}},e.type="sunburst",e}(yt.default),jd=(je=a("lCvKW"),C=a("2FIaD"),Ze=a("gGiC4"),C=a("2FIaD"),Yt=a("hpTXA"),Ut=a("8QwAx"),Bn=a("2LuwV"),function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){C.isFunction(t)&&(n=e,e=t,t=null),t=t||{},C.isString(t)&&(t={order:t});var i,r=t.order||"preorder",a=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var o=0;!i&&o<a.length;o++)a[o].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}()),Zd=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),a=[],o=1;!function t(e,n){var i=e.value;o=Math.max(o,C.isArray(i)?i.length:1),a.push(e);var s=new jd((0,Bn.convertOptionIdName)(e.name,""),r);n?function(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}(s,n):r.root=s,r._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),r.root.updateDepthAndHeight(0);var s=(0,Ut.default)(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,l=new(0,Yt.default)(s,n);return l.initData(a),i&&i(l),ro({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},t}(),qd=(Ha=a("9xTlQ"),a("l3zxl"));function Jd(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=(0,qd.getDecalFromPalette)(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var Qd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};$d(n);var i=this._levelModels=C.map(t.levels||[],(function(t){return new(0,Ha.default)(t,this,e)}),this),r=Zd.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),a=i[n.depth];return a&&(t.parentModel=a),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Yd(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Jd(this)},e.type="series.sunburst",e.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"},e}(Ze.default);function $d(t){var e=0;C.each(t.children,(function(t){$d(t);var n=t.value;C.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;C.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),C.isArray(t.value)?t.value[0]=n:t.value=n}var ep=Qd,tp=(ct=a("lcKsG"),C=a("2FIaD"),Math.PI/180);function np(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");C.isArray(i)||(i=[0,i]),C.isArray(e)||(e=[e,e]);var r=n.getWidth(),a=n.getHeight(),o=Math.min(r,a),s=(0,ct.parsePercent)(e[0],r),l=(0,ct.parsePercent)(e[1],a),u=(0,ct.parsePercent)(i[0],o/2),c=(0,ct.parsePercent)(i[1],o/2),h=-t.get("startAngle")*tp,d=t.get("minAngle")*tp,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&ip(f,y);var m=0;C.each(f.children,(function(t){!isNaN(t.getValue())&&m++}));var v=f.getValue(),x=Math.PI/(v||m)*2,_=f.depth>0,b=f.height-(_?-1:1),S=(c-u)/(b||1),w=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=w?1:-1,T=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),a=0===v&&M?x:r*x;a<d&&(a=d),i=n+I*a;var c=e.depth-g-(_?-1:1),h=u+S*c,f=u+S*(c+1),y=t.getLevelModel(e);if(y){var m=y.get("r0",!0),b=y.get("r",!0),A=y.get("radius",!0);null!=A&&(m=A[0],b=A[1]),null!=m&&(h=(0,ct.parsePercent)(m,o/2)),null!=b&&(f=(0,ct.parsePercent)(b,o/2))}e.setLayout({angle:a,startAngle:n,endAngle:i,clockwise:w,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var D=0;C.each(e.children,(function(t){D+=T(t,n+D)}))}return i-n}};if(_){var A=u,D=u+S,L=2*Math.PI;p.setLayout({angle:L,startAngle:h,endAngle:h+L,clockwise:w,cx:s,cy:l,r0:A,r:D})}T(f,h)}))}function ip(t,e){var n=t.children||[];t.children=function(t,e){if(C.isFunction(e)){var n=C.map(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),C.map(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(n,e),n.length&&C.each(t.children,(function(t){ip(t,e)}))}function rp(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),i=n.tree;i.eachNode((function(r){var a=r.getModel().getModel("itemStyle").getItemStyle();a.fill||(a.fill=function(t,n,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var a=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&(0,C.isString)(a)&&(a=(0,te.lift)(a,(t.depth-1)/(i-1)*.5)),a}(r,t,i.root.height));var o=n.ensureUniqueItemVisual(r.dataIndex,"style");(0,C.extend)(o,a)}))}))}te=a("l3Be0"),C=a("2FIaD"),C=a("2FIaD"),je=a("lCvKW"),tt=a("2IUoL"),nt=a("kJ7of"),a("dXBoT"),nt=a("kJ7of"),rt=a("jKUgc"),st=a("4lzC1"),lt=a("c3Bep"),C=a("2FIaD"),Hn=a("7aXlh"),yt=a("3dZ3l"),nt=a("kJ7of");var ap=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,a=this.group,o=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}a.x=0,a.y=l.y+u[0];var h=new(0,Hn.default)(this._layersSeries||[],o,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=o[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),m=y.x,v=y.y0,x=y.y;h.push(m,v),p.push(m,v+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=t.getModel("label").get("margin"),S=t.getModel("emphasis");if("add"===e){var C=d[n]=new tt.default;c=new Lo({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(c),a.add(C),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var i=new rt.default({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return nt.initProps(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,(function(){c.removeClipPath()})),i}(c.getBoundingRect(),t))}else C=l[s],c=C.childAt(0),a.add(C),d[n]=C,nt.updateProps(c,{shape:{points:h,stackedOnPoints:p}},t),(0,nt.saveOldStyle)(c);(0,lt.setLabelStyle)(c,(0,lt.getLabelStatesModels)(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var w=c.getTextContent();w&&(w.x=_.x-b,w.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),(0,st.setStatesStylesFromModel)(c,t),(0,st.toggleHoverEmphasis)(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else a.remove(l[n])}h.add((0,C.bind)(p,this,"add")).update((0,C.bind)(p,this,"update")).remove((0,C.bind)(p,this,"remove")).execute(),this._layersSeries=o,this._layers=d},e.type="themeRiver",e}(yt.default),op=(je=a("lCvKW"),Ze=a("gGiC4"),Ut=a("8QwAx"),Kt=a("4MjWZ"),Yt=a("hpTXA"),C=a("2FIaD"),Bn=a("2LuwV"),so=a("eckBc"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new fr(C.bind(this.getData,this),C.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=(0,Bn.groupData)(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,o=0;o<a;++o){for(var s=r[o].name,l=0;l<r[o].dataList.length;++l){var u=r[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Bn.SINGLE_REFERRING).models[0].get("type"),i=C.filter(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(i||[]),a=[],o=this.nameMap=C.createHashMap(),s=0,l=0;l<r.length;++l)a.push(r[l][2]),o.get(r[l][2])||(o.set(r[l][2],s),s++);var u=(0,Ut.default)(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,Kt.getDimensionTypeByAxis)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new(0,Yt.default)(u,this);return c.initData(r),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),a=(0,Bn.groupData)(n,(function(e){return t.get("name",e)})),o=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),o.push({name:n,indices:e})})),o},e.prototype.getAxisTooltipData=function(t,e,n){C.isArray(t)||(t=t?[t]:[]);for(var i,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=a[l].indices.length,d=0;d<h;++d){var p=r.get(t[0],a[l].indices[d]),f=Math.abs(p-e);f<=u&&(i=p,u=f,c=a[l].indices[d])}o.push(c)}return{dataIndices:o,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),a=i.get(i.mapDimension("value"),t);return(0,so.createTooltipMarkup)("nameValue",{name:r,value:a})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.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}}},e}(Ze.default));function sp(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var a=t.get("boundaryGap"),o=n.getAxis();i.boundaryGap=a,"horizontal"===o.orient?(a[0]=ct.parsePercent(a[0],r.height),a[1]=ct.parsePercent(a[1],r.height),lp(e,t,r.height-a[0]-a[1])):(a[0]=ct.parsePercent(a[0],r.width),a[1]=ct.parsePercent(a[1],r.width),lp(e,t,r.width-a[0]-a[1])),e.setLayout("layoutInfo",i)}))}function lp(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,a=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=C.map(a,(function(e){return C.map(e.indices,(function(e){var n=r.dataToPoint(t.get(o,e));return n[1]=t.get(s,e),n}))})),u=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>a&&(a=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(a-i[u])/2;a=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>a&&(a=h)}return{y0:r,max:a}}(l),c=u.y0,h=n/u.max,d=a.length,p=a[0].indices.length,f=0;f<p;++f){i=c[f]*h,t.setItemLayout(a[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,t.setItemLayout(a[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}function up(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(o)}}function cp(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){for(var e=t.children,n=e.length,i=0,r=0;--n>=0;){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,a=t,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;s=gp(s),a=yp(a),s&&a;){r=gp(r),o=yp(o),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-u+i(s,a);d>0&&(vp(mp(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,c+=o.hierNode.modifier}s&&!gp(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!yp(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function hp(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function dp(t){return arguments.length?t:xp}function pp(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function fp(t,e){return yr.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gp(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function yp(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function mp(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function vp(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function xp(t,e){return t.parentNode===e.parentNode?1:2}C=a("2FIaD"),ct=a("lcKsG"),je=a("lCvKW"),C=a("2FIaD"),a("dXBoT"),nt=a("kJ7of"),ia=a("1IPNS"),tt=a("2IUoL"),nt=a("kJ7of"),ot=a("5v9xk"),yr=a("3Q8SW"),ta=a("2WfwC"),ct=a("lcKsG"),yt=a("3dZ3l"),y=a("isgWw"),st=a("4lzC1");var _p=function(){this.parentPoint=[],this.childPoints=[]},bp=function(t){function e(e){return t.call(this,e)||this}return(0,je.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _p},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,a=n[0],o=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=(0,ct.parsePercent)(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(o[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(y.default);function Sp(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function wp(t,e,n,i,r){var a=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:"#fff",c=t.tree.root,h=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=o.getLayout();a?((n=new Zi(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,nt.updateProps(n,{x:g.x,y:g.y},r);var y=n.getSymbolPath();if("radial"===r.get("layout")){var m=c.children[0],v=m.getLayout(),x=m.children.length,_=void 0,b=void 0;if(g.x===v.x&&!0===o.isExpand&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};(_=Math.atan2(S.y-v.y,S.x-v.x))<0&&(_=2*Math.PI+_),(b=S.x<v.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-v.y,g.x-v.x))<0&&(_=2*Math.PI+_),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(b=g.x<v.x)&&(_-=Math.PI):(b=g.x>v.x)||(_-=Math.PI);var w=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||w,rotation:null==I?-_:T,origin:"center"}),A.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),L="relative"===D?C.concatArray(o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===D?o.getAncestorsIndices():"descendant"===D?o.getDescendantIndices():null;L&&((0,ot.getECData)(n).focus=L),function(t,e,n,i,r,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new ia.default({shape:Cp(c,h,d,r,r)})),nt.updateProps(g,{shape:Cp(c,h,d,a,o)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],v=0;v<y.length;v++){var x=y[v].getLayout();m.push([x.x,x.y])}g||(g=i.__edge=new bp({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),nt.updateProps(g,{shape:{parentPoint:[o.x,o.y],childPoints:m}},t)}g&&("polyline"!==u||e.isExpand)&&(g.useStyle(C.defaults({strokeNoScale:!0,fill:null},f)),(0,st.setStatesStylesFromModel)(g,l,"lineStyle"),(0,st.setDefaultStateProxy)(g),s.add(g))}(r,o,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===st.HOVER_STATE_BLUR||(0,st.setStatesFlag)(n.__edge,e)}})}function Mp(t,e,n,i,r){var a=Ip(e.tree.root,t),o=a.source,s=a.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(o.dataIndex).__edge,c=l.__edge||(!1===o.isExpand||1===o.children.length?u:void 0),h=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===h?nt.removeElement(c,{shape:Cp(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===h&&"orthogonal"===i.get("layout")&&nt.removeElement(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function Ip(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Tp(t,e,n,i,r){var a=t.tree.getNodeByDataIndex(e),o=Ip(t.tree.root,a).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};nt.removeElement(n,{x:o.x+1,y:o.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),a.children.forEach((function(e){Mp(e,t,i,r,s)})),Mp(a,t,i,r,s)}function Cp(t,e,n,i,r){var a,o,s,l,u,c,h,d;if("radial"===t){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=pp(u,h),f=pp(u,h+(d-h)*n),g=pp(c,d+(h-d)*n),y=pp(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(a=u+(c-u)*n,o=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(a=u,o=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var Ap=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new tt.default,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){this._controller=new Ca(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,a=this._mainGroup;"radial"===t.get("layout")?(a.x=r.x+r.width/2,a.y=r.y+r.height/2):(a.x=r.x,a.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var o=this._data;i.diff(o).add((function(e){Sp(i,e)&&wp(i,e,null,a,t)})).update((function(e,n){var r=o.getItemGraphicEl(n);Sp(i,e)?wp(i,e,r,a,t):r&&Tp(o,n,r,a,t)})).remove((function(e){var n=o.getItemGraphicEl(e);n&&Tp(o,e,n,a,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],a=[];ta.fromPoints(i,r,a);var o=this._min,s=this._max;a[0]-r[0]==0&&(r[0]=o?o[0]:r[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-r[1]==0&&(r[1]=o?o[1]:r[1]-1,a[1]=s?s[1]:a[1]+1);var l=t.coordinateSystem=new ea;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=a},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,a=this._controllerHost,o=this.group;r.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!ka(e,n,t)})),r.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Aa(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Da(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(yt.default),Dp=(je=a("lCvKW"),Ze=a("gGiC4"),Ha=a("9xTlQ"),so=a("eckBc"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new(0,Ha.default)(n,this,this.ecModel),r=Zd.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))})),a=0;r.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],a=i.getNodeByDataIndex(t),o=a.getValue(),s=a.name;a&&a!==r;)s=a.parentNode.name+"."+s,a=a.parentNode;return(0,so.createTooltipMarkup)("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Yd(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.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},e}(Ze.default)),Lp=Dp;function kp(t,e,n){for(var i,r=[t],a=[];i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=a.pop();)e(i,n)}function Op(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var a=r.length-1;a>=0;a--)i.push(r[a])}}function Pp(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=fp(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,a=0,o=null;"radial"===i?(r=2*Math.PI,a=Math.min(n.height,n.width)/2,o=dp((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,a=n.height,o=dp());var s=t.getData().tree.root,l=s.children[0];if(l){up(s),kp(l,cp,o),s.hierNode.modifier=-l.hierNode.prelim,Op(l,hp);var u=l,c=l,h=l;Op(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:o(u,c)/2,p=d-u.getLayout().x,f=0,g=0,y=0,m=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=a/(h.depth-1||1),Op(l,(function(t){y=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=pp(y,m);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:m},!0)}));else{var v=t.getOrient();"RL"===v||"LR"===v?(g=a/(c.getLayout().x+d+p),f=r/(h.depth-1||1),Op(l,(function(t){m=(t.getLayout().x+p)*g,y="LR"===v?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(f=r/(c.getLayout().x+d+p),g=a/(h.depth-1||1),Op(l,(function(t){y=(t.getLayout().x+p)*f,m="TB"===v?(t.depth-1)*g:a-(t.depth-1)*g,t.setLayout({x:y,y:m},!0)})))}}}(t,e)}))}function Ep(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");(0,C.extend)(i,n)}))}))}function Rp(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=ho(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}C=a("2FIaD"),C=a("2FIaD");var Np=["treemapZoomToNode","treemapRender","treemapMove"];function Fp(t){for(var e=0;e<Np.length;e++)t.registerAction({type:Np[e],update:"updateView"},C.noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i=Gd(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=Ud(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}))}je=a("lCvKW"),C=a("2FIaD"),Ze=a("gGiC4"),Ha=a("9xTlQ"),Bn=a("2LuwV"),so=a("eckBc");var Bp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return(0,je.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};zp(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},a=new(0,Ha.default)({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=(0,Bn.normalizeToArray)(e.get("color")),a=(0,Bn.normalizeToArray)(e.get(["aria","decal","decals"]));if(r){t=t||[],C.each(t,(function(t){var e=new(0,Ha.default)(t),r=e.get("color"),a=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||a&&"none"!==a)&&(i=!0)}));var o=t[0]||(t[0]={});return n||(o.color=r.slice()),!i&&a&&(o.decal=a.slice()),t}}(i,e);var o=C.map(i||[],(function(t){return new(0,Ha.default)(t,a,e)}),this),s=Zd.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?o[n.depth]:null;return t.parentModel=i||a,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t);return(0,so.createTooltipMarkup)("nameValue",{name:a,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Yd(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},C.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=C.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Jd(this)},e.type="series.treemap",e.layoutMode="box",e.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:[]},e}(Ze.default);function zp(t){var e=0;C.each(t.children,(function(t){zp(t);var n=t.value;C.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;C.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),C.isArray(t.value)?t.value[0]=n:t.value=n}var Vp=Bp;function Wp(t,e,n,i,r,a){var o=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!a&&o.splice(2,0,[t+n+5,e+i/2]),!r&&o.push([t,e+i/2]),o}function Gp(t,e,n){(0,ot.getECData)(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Yd(n,e)}}je=a("lCvKW"),C=a("2FIaD"),tt=a("2IUoL"),a("dXBoT"),rt=a("jKUgc"),ot=a("5v9xk"),st=a("4lzC1"),Hn=a("7aXlh"),tt=a("2IUoL"),a("dXBoT"),ur=a("dVgap"),$=a("jud7h"),ot=a("5v9xk"),yr=a("3Q8SW"),C=a("2FIaD"),Bn=a("2LuwV"),st=a("4lzC1"),lt=a("c3Bep");var Hp=function(){function t(t){this.group=new tt.default,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&n){var o=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,o,s,l,u,i),yr.positionElement(a,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=(0,Bn.convertOptionIdName)(i.getModel().get("name"),""),a=n.getTextRect(r),o=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:i,text:r,width:o})}},t.prototype._renderContent=function(t,e,n,i,r,a,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=yr.getAvailableSize(e.pos,e.box),h=e.totalWidth,d=e.renderList,p=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],y=g.node,m=g.width,v=g.text;h>c.width&&(h-=m-l,m=l,v=null);var x=new ur.default({shape:{points:Wp(s,0,m,u,f===d.length-1,0===f)},style:(0,C.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new $.default({style:(0,lt.createTextStyle)(r,{text:v})}),textConfig:{position:"inside"},z2:1e4*st.Z2_EMPHASIS_LIFT,onclick:(0,C.curry)(o,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=(0,lt.createTextStyle)(a,{text:v}),x.ensureState("emphasis").style=p,(0,st.toggleHoverEmphasis)(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Gp(x,t,y),s+=m+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),Up=(Jr=a("lV62k"),nr=a("0445l"),function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},t}());pu=a("5ESKT"),yt=a("3dZ3l"),jn=a("77M3u"),Bn=a("2LuwV"),ko=a("bZ9NN"),lt=a("c3Bep");var Yp=tt.default,Xp=rt.default,Kp=10*st.Z2_EMPHASIS_LIFT,jp=2*st.Z2_EMPHASIS_LIFT,Zp=3*st.Z2_EMPHASIS_LIFT,qp=(0,pu.default)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Jp=function(t){var e=qp(t);return e.stroke=e.fill=e.lineWidth=null,e},Qp=(0,Bn.makeInner)(),$p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!((0,C.indexOf)(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=Gd(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,s=t.layoutInfo,l=!this._oldTree,u=this._storage,c="treemapRootToNode"===o&&a&&u?{rootNodeGroup:u.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(s),d=t.get("animation"),p=this._doRender(h,t,c);!d||l||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(h,p,t,c),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new Yp,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,a={nodeGroup:[],background:[],content:[]},o={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,i,r,u){return function(t,e,n,i,r,a,o,s,l,u){if(o){var c=o.getLayout(),h=t.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,y=c.invisible,m=o.getRawIndex(),v=s&&s.getRawIndex(),x=o.viewChildren,_=c.upperHeight,b=x&&x.length,S=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,A=z("nodeGroup",Yp);if(A){if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),Qp(A).nodeWidth=p,Qp(A).nodeHeight=f,c.isAboveViewRoot)return A;var D=z("background",Xp,u,jp);D&&function(e,n,i){var r=(0,ot.getECData)(n);if(r.dataIndex=o.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:T}),y)N(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=Jp(S);l.fill=s;var u=qp(w);u.fill=w.get("borderColor");var c=qp(M);c.fill=M.get("borderColor");var h=qp(I);if(h.fill=I.get("borderColor"),i){var d=p-2*g;B(n,s,a.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,(0,st.setDefaultStateProxy)(n)}e.add(n)}(A,D,b&&c.upperLabelHeight);var L=d.getModel("emphasis"),k=L.get("focus"),O=L.get("blurScope"),P=L.get("disabled"),E="ancestor"===k?o.getAncestorsIndices():"descendant"===k?o.getDescendantIndices():k;if(b)(0,st.isHighDownDispatcher)(A)&&(0,st.setAsHighDownDispatcher)(A,!1),D&&((0,st.setAsHighDownDispatcher)(D,!P),h.setItemGraphicEl(o.dataIndex,D),(0,st.enableHoverFocus)(D,E,O));else{var R=z("content",Xp,u,Zp);R&&function(e,n){var i=(0,ot.getECData)(n);i.dataIndex=o.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),a=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:a,r:T}),y)N(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=Jp(S);u.fill=l,u.decal=s.decal;var c=qp(w),h=qp(M),d=qp(I);B(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,(0,st.setDefaultStateProxy)(n)}e.add(n)}(A,R),D.disableMorphing=!0,D&&(0,st.isHighDownDispatcher)(D)&&(0,st.setAsHighDownDispatcher)(D,!1),(0,st.setAsHighDownDispatcher)(A,!P),h.setItemGraphicEl(o.dataIndex,A),(0,st.enableHoverFocus)(A,E,O)}return A}}}function N(t){!t.invisible&&a.push(t)}function B(e,n,i,r){var a=d.getModel(r?"upperLabel":"label"),s=(0,Bn.convertOptionIdName)(d.get("name"),null),l=a.getShallow("show");(0,lt.setLabelStyle)(e,(0,lt.getLabelStatesModels)(d,r?"upperLabel":"label"),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:o.dataIndex});var u=e.getTextContent();if(u){var h=u.style,p=(0,C.normalizeCssArray)(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",F(h,r,c);var f=u.getState("emphasis");F(f?f.style:null,r,c)}}function F(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+r:r}}function z(t,i,a,o){var s=null!=v&&n[t][v],l=r[t];return s?(n[t][v]=null,function(t,e){var n=t[m]={};e instanceof Yp?(n.oldX=e.x,n.oldY=e.y):n.oldShape=(0,C.extend)({},e.shape)}(l,s)):y||((s=new i)instanceof jn.default&&(s.z2=function(t,e){return t*Kp+e}(a,o)),V(l,s)),e[t][m]=s}function V(t,e){var n=t[m]={},a=o.parentNode,s=e instanceof tt.default;if(a&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[a.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(e,o,s,n,a,l,t,i,r,u)}!function t(e,n,i,r,a){function o(t){return t.getId()}function s(o,s){var l=null!=o?e[o]:null,c=null!=s?n[s]:null,h=u(l,c,i,a);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,r,a+1)}r?(n=e,(0,C.each)(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new(0,Hn.default)(n,e,o,o).add(s).update(s).remove((0,C.curry)(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&(0,C.each)(t,(function(t,n){var i=e[n];(0,C.each)(t,(function(t){t&&(i.push(t),Qp(t).willDelete=!0)}))})),e}(s);return this._oldTree=i,this._storage=o,{lastsForAnimation:a,willDeleteEls:c,renderFinally:function(){(0,C.each)(c,(function(t){(0,C.each)(t,(function(t){t.parent&&t.parent.remove(t)}))})),(0,C.each)(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=((0,C.isFunction)(r)?0:r)||0,s=((0,C.isFunction)(a)?null:a)||"cubicOut",l=new Up;(0,C.each)(e.willDeleteEls,(function(t,e){(0,C.each)(t,(function(t,n){if(!t.invisible){var r,a=t.parent,u=Qp(a);if(i&&"drillDown"===i.direction)r=a===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,o,0,s)}}))})),(0,C.each)(this._storage,(function(t,n){(0,C.each)(t,(function(t,i){var r=e.lastsForAnimation[n][i],a={};r&&(t instanceof tt.default?null!=r.oldX&&(a.x=t.x,a.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(a.shape=(0,C.extend)({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),a.style={opacity:1}):1!==t.style.opacity&&(a.style={opacity:1})),l.add(t,a,o,0,s))}))}),this),this._state="animating",l.finished((0,C.bind)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new Ca(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",(0,C.bind)(this._onPan,this)),e.on("zoom",(0,C.bind)(this._onZoom,this)));var n=new(0,Jr.default)(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var a=new(0,Jr.default)(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;e-=o.x,n-=o.y;var s=nr.create();nr.translate(s,s,[-e,-n]),nr.scale(s,s,[t.scale,t.scale]),nr.translate(s,s,[e,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var a=r.hostTree.data.getItemModel(r.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&(0,ko.windowOpen)(o,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Hp(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(Ud(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n},e.type="treemap",e}(yt.default),ef=$p,tf=(C=a("2FIaD"),te=a("l3Be0"),(0,(Bn=a("2LuwV")).makeInner)()),nf={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||rf(e,{},t.getViewRoot().getAncestors(),t)}};function rf(t,e,n,i){var r=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(a&&!a.invisible&&a.isInView){var s,l=r.getModel("itemStyle"),u=function(t,e,n){var i=(0,C.extend)({},e),r=n.designatedVisualItemStyle;return(0,C.each)(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var a=t.get(n);r[n]=null,null!=a&&(i[n]=a)})),i}(l,e,i),c=o.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(h=function(t,e){return null!=e?(0,te.modifyHSL)(e,null,null,t):null}(d,s=af(u))),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=function(t,e,n,i,r,a){if(a&&a.length){var o=sf(e,"color")||null!=r.color&&"none"!==r.color&&(sf(e,"colorAlpha")||sf(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new $h(h);return tf(d).drColorMappingBy=c,d}}}(0,r,a,0,u,p);(0,C.each)(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var a=function(t,e,n,i,r,a){var o=(0,C.extend)({},e);if(r){var s=r.type,l="color"===s&&tf(r).drColorMappingBy,u="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}(r,u,t,e,f,i);rf(t,a,n,i)}}))}else s=af(u),c.fill=s}}function af(t){var e=of(t,"color");if(e){var n=of(t,"colorAlpha"),i=of(t,"colorSaturation");return i&&(e=(0,te.modifyHSL)(e,null,null,i)),n&&(e=(0,te.modifyAlpha)(e,n)),e}}function of(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function sf(t,e){var n=t.get(e);return(0,C.isArray)(n)&&n.length?{name:e,range:n}:null}C=a("2FIaD"),Jr=a("lV62k"),ct=a("lcKsG"),yr=a("3Q8SW");var lf=Math.max,uf=Math.min,cf=C.retrieve,hf=C.each,df=["itemStyle","borderWidth"],pf=["itemStyle","gapWidth"],ff=["upperLabel","show"],gf=["upperLabel","height"],yf={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),a=n.getHeight(),o=t.option,s=yr.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=(0,ct.parsePercent)(cf(s.width,l[0]),r),c=(0,ct.parsePercent)(cf(s.height,l[1]),a),h=i&&i.type,d=Gd(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),g=Hd(f);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function(t,e,n,i,r){var a,o=(e||{}).node,s=[i,r];if(!o||o===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;a=o.parentNode;){for(var c=0,h=a.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=o.getValue();if(0===f)return s;u*=c/f;var g=a.getModel(),y=g.get(df);(u+=4*y*y+(3*y+Math.max(y,bf(g)))*Math.pow(u,.5))>ct.MAX_SAFE_INTEGER&&(u=ct.MAX_SAFE_INTEGER),o=a}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}(t,d,f,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var v={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};f.setLayout(x),mf(f,v,!1,0),x=f.getLayout(),hf(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(C.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,a=r.getLayout();if(!a)return i;for(var o=[a.width/2,a.height/2],s=r;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}(s,p,d),!0),t.setLayoutInfo(s),_f(_,new(0,Jr.default)(-s.x,-s.y,r,a),g,f,0)}};function mf(t,e,n,i){var r,a;if(!t.isRemoved()){var o=t.getLayout();r=o.width,a=o.height;var s=t.getModel(),l=s.get(df),u=s.get(pf)/2,c=bf(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var f=(r=lf(r-2*d,0))*(a=lf(a-d-p,0)),g=function(t,e,n,i,r,a){var o=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=a;if(r&&!l)return t.viewChildren=[];o=C.filter(o,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}))}(o,s);var u=function(t,e,n){for(var i=0,r=0,a=e.length;r<a;r++)i+=e[r].getValue();var o,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(o=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],hf(e,(function(t){var e=t.getValue(s);e<o[0]&&(o[0]=e),e>o[1]&&(o[1]=e)}))):o=[NaN,NaN],{sum:i,dataExtent:o}}(e,o,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===i?o-l-1:l].getValue();u/n*e<a&&(s=l,n-=u)}return"asc"===i?r.splice(0,o-s):r.splice(s,o-s),n}(e,n,u.sum,s,o),0===u.sum)return t.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}(t,s,f,e,n,i);if(g.length){var y={x:d,y:p,width:r,height:a},m=uf(r,a),v=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var S=g[_];x.push(S),x.area+=S.getLayout().area;var w=vf(x,m,e.squareRatio);w<=v?(_++,v=w):(x.area-=x.pop().getLayout().area,xf(x,m,y,u,!1),m=uf(y.width,y.height),x.length=x.area=0,v=1/0)}if(x.length&&xf(x,m,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)mf(g[_],e,n,i+1)}}}function vf(t,e,n){for(var i=0,r=1/0,a=0,o=void 0,s=t.length;a<s;a++)(o=t[a].getLayout().area)&&(o<r&&(r=o),o>i&&(i=o));var l=t.area*t.area,u=e*e*n;return l?lf(u*i/l,l/(u*r)):1/0}function xf(t,e,n,i,r){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(r||c>n[l[o]])&&(c=n[l[o]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,y=f[l[o]]=lf(c-2*i,0),m=n[s[a]]+n[l[a]]-u,v=h===d-1||m<g?m:g,x=f[l[a]]=lf(v-2*i,0);f[s[o]]=n[s[o]]+uf(i,y/2),f[s[a]]=u+uf(i,x/2),u+=v,p.setLayout(f,!0)}n[s[o]]+=c,n[l[o]]-=c}function _f(t,e,n,i,r){var a=t.getLayout(),o=n[r],s=o&&o===t;if(!(o&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new(0,Jr.default)(e.x-a.x,e.y-a.y,e.width,e.height);hf(t.viewChildren||[],(function(t){_f(t,l,n,i,r+1)}))}}function bf(t){return t.get(ff)?t.get(gf):0}C=a("2FIaD"),Bn=a("2LuwV"),qd=a("l3zxl");var Sf={label:{enabled:!0},decal:{show:!1}},wf=(0,Bn.makeInner)(),Mf={};function If(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=C.clone(Sf);C.merge(i.label,t.getLocaleModel().get("aria"),!1),C.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=C.createHashMap();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),wf(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(C.isFunction(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=(0,qd.getDecalFromPalette)(e.ecModel,e.name,Mf,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var a=e.getRawData(),o={},s=wf(e).scope;n.each((function(t){var e=n.getRawIndex(t);o[e]=t}));var l=a.count();a.each((function(t){var i=o[t],r=a.getName(t)||t+"",c=(0,qd.getDecalFromPalette)(e.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(t,e){var n=t?C.extend(C.extend({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=C.defaults(a.option,i),a.get("enabled")){var o=e.getZr().dom;if(a.get("description"))o.setAttribute("aria-label",a.get("description"));else{var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();if(d)s=r(a.get(["general","withTitle"]),{title:d});else s=a.get(["general","withoutTitle"]);var p=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<h){var i=void 0,o=e.get("name")?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,_=t.getLocaleModel().get(["series","typeNames"]),_[x]||_.chart)});var s=e.getData();s.count()>u?i+=r(a.get(["data","partialData"]),{displayCnt:u}):i+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<u){var y=s.getName(g),m=s.getValues(g),v=a.get(["data",y?"withName":"withoutName"]);f.push(r(v,{name:y,value:m.join(c)}))}i+=f.join(c)+d,p.push(i)}var x,_}));var f=a.getModel(["series","multiple","separator"]),g=f.get("middle"),y=f.get("end");s+=p.join(g)+y,o.setAttribute("aria-label",s)}}}}()}function r(t,e){if(!C.isString(t))return t;var n=t;return C.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function Tf(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},C.each(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),it=a("dXBoT"),_a=a("1DnBg"),ut=a("3deD8");var Cf=(0,(Bn=a("2LuwV")).makeInner)(),Af=C.clone,Df=C.bind;function Lf(t,e,n,i){kf(Cf(n).lastProp,i)||(Cf(n).lastProp=i,e?it.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function kf(t,e){if(C.isObject(t)&&C.isObject(e)){var n=!0;return C.each(e,(function(e,i){n=n&&kf(t[i],e)})),!!n}return t===e}function Of(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Pf(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ef(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var Rf=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(o){var h=C.curry(Lf,e,c);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,e)}else o=this._group=new it.Group,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);Ef(o,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(r&&i.getBandWidth()>o)return!0;if(a){var s=wd(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var a=Cf(t).pointerEl=new it[r.type](Af(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Cf(t).labelEl=new it.Text(Af(e.label));t.add(r),Of(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Cf(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Cf(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Of(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=it.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_a.stop(t.event)},onmousedown:Df(this._onHandleDragMove,this,0,0),drift:Df(this._onHandleDragMove,this),ondragend:Df(this._onHandleDragEnd,this)}),i.add(r)),Ef(r,n,!1),r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");C.isArray(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ut.createOrUpdate(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Lf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Pf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Pf(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Pf(i)),Cf(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ut.clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Nf(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function Ff(t,e,n,i,r){var a=Bf(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),o=n.getModel("label"),s=ko.normalizeCssArray(o.get("padding")||0),l=o.getFont(),u=v.getBoundingRect(a,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=o.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:(0,lt.createTextStyle)(o,{text:a,font:l,fill:o.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function Bf(t,e,n,i,r){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:r.precision}),o=r.formatter;if(o){var s={value:Gl.getAxisRawValue(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C.each(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),C.isString(o)?a=o.replace("{value}",a):C.isFunction(o)&&(a=o(s))}return a}function zf(t,e,n){var i=nr.create();return nr.rotate(i,i,n.rotation),nr.translate(i,i,n.position),it.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Vf(t,e,n,i,r,a){var o=Iu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Ff(e,i,r,a,{position:zf(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Wf(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Gf(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function Hf(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}C=a("2FIaD"),it=a("dXBoT"),v=a("bv5ZD"),ko=a("bZ9NN"),nr=a("0445l"),Gl=a("37xup"),lt=a("c3Bep");var Uf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=Yf(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var c=Nf(i),h=Xf[s](a,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}Vf(e,t,pd(o.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=pd(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=zf(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=Yf(a,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(Rf);function Yf(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Xf={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Wf([e,n[0]],[e,n[1]],Kf(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:Gf([e-i/2,n[0]],[i,r],Kf(t))}}};function Kf(t){return"x"===t.dim?0:1}var jf=Uf,Zf=(je=a("lCvKW"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="axisPointer",e.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}},e}((pl=a("eWRYv")).default)),qf=(je=a("lCvKW"),C=a("2FIaD"),a("6rpCZ")),Jf=(0,(Bn=a("2LuwV")).makeInner)(),Qf=C.each;function $f(t,e,n){if(!qf.default.node){var i=e.getZr();Jf(i).records||(Jf(i).records={}),function(t,e){function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);Qf(Jf(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}Jf(t).initialized||(Jf(t).initialized=!0,n("click",C.curry(tg,"click")),n("mousemove",C.curry(tg,"mousemove")),n("globalout",eg))}(i,e),(Jf(i).records[t]||(Jf(i).records[t]={})).handler=n}}function eg(t,e,n){t.handler("leave",null,n)}function tg(t,e,n,i){e.handler(t,n,i)}function ng(t,e){if(!qf.default.node){var n=e.getZr();(Jf(n).records||{})[t]&&(Jf(n).records[t]=null)}}var ig=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";$f("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){ng("axisPointer",e)},e.prototype.dispose=function(t,e){ng("axisPointer",e)},e.type="axisPointer",e}((Sl=a("2UHy9")).default);function rg(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=Bn.queryDataIndex(a,t);if(null==o||o<0||C.isArray(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,p=a.mapDimension(h),f=[];f[d]=a.get(p,o),f[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(a.getValues(C.map(l.dimensions,(function(t){return a.mapDimension(t)})),o))||[];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}}C=a("2FIaD"),Bn=a("2LuwV"),C=a("2FIaD"),Bn=a("2LuwV"),C=a("2FIaD");var ag=(0,Bn.makeInner)();function og(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,o=t.dispatchAction||(0,C.bind)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){hg(r)&&(r=rg({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=hg(r),u=a.axesInfo,c=s.axesInfo,h="leave"===i||hg(r),d={},p={},f={list:[],map:{}},g={showPointer:(0,C.curry)(lg,p),showTooltip:(0,C.curry)(ug,f)};(0,C.each)(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);(0,C.each)(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||a)){var o=a&&a.value;null!=o||l||(o=i.pointToData(r)),null!=o&&sg(t,o,g,!1,d)}}))}));var y={};return(0,C.each)(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&(0,C.each)(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,cg(e),cg(t)))),y[t.key]=a}}))})),(0,C.each)(y,(function(t,e){sg(c[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];(0,C.each)(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,c,d),function(t,e,n,i){if(!hg(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(f,r,t,o),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=ag(i)[r]||{},o=ag(i)[r]={};(0,C.each)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,C.each)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var s=[],l=[];(0,C.each)(a,(function(t,e){!o[e]&&l.push(t)})),(0,C.each)(o,(function(t,e){!a[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function sg(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var o=function(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return(0,C.each)(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=o&&((f<o||p>=0&&s<0)&&(o=f,s=p,r=u,a.length=0),(0,C.each)(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==r.seriesIndex&&(0,C.extend)(r,s[0]),!i&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}else n.showPointer(t,e)}function lg(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ug(t,e,n,i){var r=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Id(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function cg(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function hg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function dg(t){Cd.registerAxisPointerClass("CartesianAxisPointer",jf),t.registerComponentModel(Zf),t.registerComponentView(ig),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,C.isArray)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=_d(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},og)}C=a("2FIaD"),Bn=a("2LuwV");var pg=["rect","polygon","keep","clear"];function fg(t,e){var n=(0,Bn.normalizeToArray)(t?t.brush:[]);if(n.length){var i=[];C.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;C.isArray(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var a,o,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a=u,o={},C.each(a,(function(t){o[t]=1})),a.length=0,C.each(o,(function(t,e){a.push(e)})),e&&!u.length&&u.push.apply(u,pg)}}je=a("lCvKW"),C=a("2FIaD"),C=a("2FIaD"),Jr=a("lV62k"),C=a("2FIaD");var gg=a("9kZyL"),yg=C.each;function mg(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function vg(t,e,n){var i={};return yg(e,(function(e){var r,a=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);yg(t[e],(function(t,i){if($h.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),a[i]=new $h(r),"opacity"===i&&((r=C.clone(r)).type="colorAlpha",a.__hidden.__alphaForOpacity=new $h(r))}}))})),i}function xg(t,e,n){var i;C.each(n,(function(t){e.hasOwnProperty(t)&&mg(e[t])&&(i=!0)})),i&&C.each(n,(function(n){e.hasOwnProperty(n)&&mg(e[n])?t[n]=C.clone(e[n]):delete t[n]}))}var _g=a("4qDSQ");function bg(t){var e=t.brushType,n={point:function(i){return Sg[e].point(i,n,t)},rect:function(i){return Sg[e].rect(i,n,t)}};return n}Jr=a("lV62k"),it=a("dXBoT");var Sg={lineX:wg(0),lineY:wg(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&_g.contain(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,a=t.y,o=t.width,s=t.height,l=i[0];return!!(_g.contain(i,r,a)||_g.contain(i,r+o,a)||_g.contain(i,r,a+s)||_g.contain(i,r+o,a+s)||Jr.default.create(t).contain(l[0],l[1])||(0,it.linePolygonIntersect)(r,a,r+o,a,i)||(0,it.linePolygonIntersect)(r,a,r,a+s,i)||(0,it.linePolygonIntersect)(r+o,a,r+o,a+s,i)||(0,it.linePolygonIntersect)(r,a+s,r+o,a+s,i))||void 0}}};function wg(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return Mg(e[t],r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),Mg(s[0],o)||Mg(s[1],o)||Mg(o[0],s)||Mg(o[1],s)}}}}function Mg(t,e){return e[0]<=t&&t<=e[1]}ut=a("3deD8"),C=a("2FIaD"),it=a("dXBoT"),Bn=a("2LuwV");var Ig=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Tg=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=Ag(e,t);(0,C.each)(Dg,(function(t,e){(!n||!n.include||(0,C.indexOf)(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=Og[t.brushType](0,n,e);t.__rangeOffset={offset:Eg[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){(0,C.each)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&(0,C.each)(i.coordSyses,(function(i){var r=Og[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){(0,C.each)(t,(function(t){var n,i,r,a,o,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=Og[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?Eg[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=Ng(n),a=Ng(i),o=[r[0]/a[0],r[1]/a[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return(0,C.map)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:hc(i),isTargetByCursor:pc(i,t,n.coordSysModel),getLinearBrushOtherExtent:dc(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&(0,C.indexOf)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Ag(e,t),r=0;r<n.length;r++){var a=n[r],o=t.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<Lg.length;s++)if(Lg[s](i,a))return a}return!0},t}();function Cg(t){return t[0]>t[1]&&t.reverse(),t}function Ag(t,e){return(0,Bn.parseFinder)(t,e,{includeMainTypes:Ig})}var Dg={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,a=(0,C.createHashMap)(),o={},s={};(n||i||r)&&((0,C.each)(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),o[e.id]=!0})),(0,C.each)(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),(0,C.each)(r,(function(t){a.set(t.id,t),o[t.id]=!0,s[t.id]=!0})),a.each((function(t){var r=t.coordinateSystem,a=[];(0,C.each)(r.getCartesians(),(function(t,e){((0,C.indexOf)(n,t.getAxis("x").model)>=0||(0,C.indexOf)(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:kg.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){(0,C.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:kg.geo})}))}},Lg=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],kg={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(it.getTransform(t)),e}},Og={lineX:(0,C.curry)(Pg,0),lineY:(0,C.curry)(Pg,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),a=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),o=[Cg([r[0],a[0]]),Cg([r[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,C.map)(n,(function(n){var a=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a})),xyMinMax:r}}};function Pg(t,e,n,i){var r=n.getAxis(["x","y"][t]),a=Cg((0,C.map)([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var Eg={lineX:(0,C.curry)(Rg,0),lineY:(0,C.curry)(Rg,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return(0,C.map)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function Rg(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function Ng(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Fg=Tg,Bg=["inBrush","outOfBrush"];function zg(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new Fg(e.option,t)).setInputRanges(e.areas,t)}))}function Vg(t,e,n){var i,r,a=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),zg(t),t.eachComponent({mainType:"brush"},(function(e,n){var o={brushId:e.id,brushIndex:n,brushName:e.name,areas:C.clone(e.areas),selected:[]};a.push(o);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=C.map(e.areas,(function(t){var e=Hg[t.brushType],n=C.defaults({boundingRect:e?e(t):void 0},t);return n.selectors=bg(n),n})),f=vg(e.option,Bg,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}C.isArray(l)&&C.each(l,(function(t){u[t]=1})),t.eachSeries((function(n,i){var r=h[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,i):function(n,i,r){if(n.brushSelector&&!function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(C.isArray(n)?C.indexOf(n,e)<0:e!==n)}(e,i)&&(C.each(p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||y(r)})),g(i)&&y(r))){var a=n.getData();a.each((function(t){Gg(n,r,a,t)&&(c[t]=1)}))}}(n,i,r)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};o.selected.push(n);var i=h[e],r=t.getData(),a=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Gg(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:y(i))&&function(t,e,n,i,r,a){var o,s={};function l(t){return(0,gg.getItemVisualFromData)(n,o,t)}function u(t,e){(0,gg.setItemVisualFromData)(n,o,t,e)}function c(t,c){o=null==a?t:c;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=i.call(r,t),p=e[d],f=s[d],g=0,y=f.length;g<y;g++){var m=f[g];p[m]&&p[m].applyVisual(t,l,u)}}C.each(t,(function(t){var n=$h.prepareVisualTypes(e[t]);s[t]=n})),null==a?n.each(c):n.each([a],c)}(Bg,f,r,a)}))})),function(t,e,n,i,r){if(r){var a=t.getZr();a.__ecInBrushSelectEvent||(a.__ecBrushSelect||(a.__ecBrushSelect=Wg),ut.createOrUpdate(a,"__ecBrushSelect",n,e)(t,i))}}(e,i,r,a,n)}function Wg(t,e){if(!t.isDisposed()){var n=t.getZr();n.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),n.__ecInBrushSelectEvent=!1}}function Gg(t,e,n,i){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t.brushSelector(i,n,o.selectors,o))return!0}}var Hg={rect:function(t){return Ug(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&Ug(e)}};function Ug(t){return new(0,Jr.default)(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Yg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new cc(e.getZr())).on("brush",C.bind(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){zg(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:C.clone(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:C.clone(n),$from:e})},e.type="brush",e}((Sl=a("2UHy9")).default);function Xg(t,e){return C.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new(0,Ha.default)(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}je=a("lCvKW"),C=a("2FIaD"),Ha=a("9xTlQ");var Kg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return(0,je.__extends)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&xg(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=C.map(t,(function(t){return Xg(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=Xg(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}((pl=a("eWRYv")).default),jg=(je=a("lCvKW"),C=a("2FIaD"),function(){}),Zg={};function qg(t,e){Zg[t]=e}function Jg(t){return Zg[t]}var Qg=["rect","polygon","lineX","lineY","keep","clear"],$g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i,r,a;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=i,this._brushMode=r,C.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return C.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:Qg.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:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(jg);function ey(t,e){var n,i=t.cellSize;1===(n=C.isArray(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=C.map([0,1],(function(t){return(0,yr.sizeCalculable)(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));(0,yr.mergeLayoutParam)(t,e,{type:"box",ignoreSize:r})}C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),pl=a("eWRYv"),yr=a("3Q8SW");var ty=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(e,n,i){var r=(0,yr.getLayoutParams)(e);t.prototype.init.apply(this,arguments),ey(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),ey(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(pl.default);je=a("lCvKW"),C=a("2FIaD"),a("dXBoT"),rt=a("jKUgc"),lr=a("fCBaM"),$=a("jud7h"),lt=a("c3Bep"),ko=a("bZ9NN"),ct=a("lcKsG"),Sl=a("2UHy9");var ny=a("bJrF5"),iy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,s,o,i),this._renderWeekText(t,s,a,o,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),o=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new rt.default({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,a=t.coordinateSystem,o=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new lr.default({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),a=[],o=0;o<7;o++){var s=i.getNextNDay(r.time,o),l=i.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},e.prototype._formatterLabel=function(t,e){return(0,C.isString)(t)&&t?(0,ko.formatTplSimple)(t,e):(0,C.isFunction)(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var a=e[0],o=e[1],s=["center","bottom"];"bottom"===i?(o+=r,s=["center","top"]):"left"===i?a-=r:"right"===i?(a+=r,s=["center","top"]):o-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var a=r.get("margin"),o=r.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new $.default({z2:30,style:(0,lt.createTextStyle)(r,{text:g})});y.attr(this._yearTextPositionControl(y,h[o],n,o,a)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(a="center"),"start"===i&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),o=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];a&&!(0,C.isString)(a)||(a&&(e=(0,ny.getLocaleModel)(a)||e),a=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var d="center"===l,p=0;p<u[c].length-1;p++){var f=u[c][p].slice(),g=this._firstDayOfMonth[p];if(d){var y=this._firstDayPoints[p];f[h]=(y[h]+u[0][p+1][h])/2}var m=r.get("formatter"),v=a[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:v},_=this._formatterLabel(m,x),b=new $.default({z2:30,style:(0,C.extend)((0,lt.createTextStyle)(r,{text:_}),this._monthTextPositionControl(f,d,n,s,o))});i.add(b)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var a="center",o="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,a=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderWeekText=function(t,e,n,i,r){var a=t.getModel("dayLabel");if(a.get("show")){var o=t.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),c=o.getFirstDayOfWeek();l&&!(0,C.isString)(l)||(l&&(e=(0,ny.getLocaleModel)(l)||e),l=e.get(["time","dayOfWeekShort"])||(0,C.map)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]})));var h=o.getNextNDay(n.end.time,7-n.lweek).time,d=[o.getCellWidth(),o.getCellHeight()];u=(0,ct.parsePercent)(u,Math.min(d[1],d[0])),"start"===s&&(h=o.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=0;p<7;p++){var f,g=o.getNextNDay(h,p),y=o.dataToRect([g.time],!1).center;f=Math.abs((p+c)%7);var m=new $.default({z2:30,style:(0,C.extend)((0,lt.createTextStyle)(a,{text:l[f]}),this._weekTextPositionControl(y,i,s,u,d))});r.add(m)}}},e.type="calendar",e}(Sl.default);function ry(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}C=a("2FIaD"),yr=a("3Q8SW"),ct=a("lcKsG");var ay=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=ct.parseDate(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),a=r<10?"0"+r:""+r,o=t.getDay();return{y:e+"",m:i,d:a,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+a,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){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"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];C.each([0,1],(function(t){u(r,t)&&(a[i[t]]=r[t]*o[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=yr.getLayoutRect(a,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}C.each([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/o[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){C.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);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]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=ry(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=ry(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(C.isArray(e)&&1===e.length&&(e=e[0]),C.isArray(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),a=r.getDate(),o=n[1].date.getDate();r.setDate(a+i-1);var s=r.getDate();if(s!==o)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==o&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(+i.start.d+r),this.getDateInfo(a)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}(),oy=a("7HXlD"),sy=(p=a("kyrfh"),je=a("lCvKW"),je=a("lCvKW"),C=a("2FIaD"),pl=a("eWRYv"),C=a("2FIaD"),["x","y","radius","angle","single"]),ly=["cartesian2d","polar","singleAxis"];function uy(t){var e=t.get("coordinateSystem");return(0,C.indexOf)(ly,e)>=0}function cy(t){return t+"Axis"}function hy(t,e){var n,i=(0,C.createHashMap)(),r=[],a=(0,C.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",o)}while(n);function o(t){!a.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function dy(t){var e=t.ecModel,n={infoList:[],infoMap:(0,C.createHashMap)()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(cy(t),i);if(r){var a=r.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(r)}}})),n}Bn=a("2LuwV");var py=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function fy(t){var e={};return(0,C.each)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var gy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e,n){var i=fy(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=fy(t);(0,C.merge)(this.option,t,!0),(0,C.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,C.each)([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,C.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,C.each)(sy,(function(n){var i=this.getReferringComponents(cy(n),Bn.MULTIPLE_REFERRING);if(i.specified){e=!0;var r=new py;(0,C.each)(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";a(n.findComponents({mainType:r+"Axis"}),r)}function a(e,n){var r=e[0];if(r){var a=new py;if(a.add(r.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var o=r.getReferringComponents("grid",Bn.SINGLE_REFERRING).models[0];o&&(0,C.each)(e,(function(t){r.componentIndex!==t.componentIndex&&o===t.getReferringComponents("grid",Bn.SINGLE_REFERRING).models[0]&&a.add(t.componentIndex)}))}}}i&&a(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&(0,C.each)(sy,(function(e){if(i){var r=n.findComponents({mainType:cy(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var a=new py;a.add(r[0].componentIndex),t.set(e,a),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,C.each)([["start","startValue"],["end","endValue"]],(function(i,r){var a=null!=t[i[0]],o=null!=t[i[1]];a&&!o?e[r]="percent":!a&&o?e[r]="value":n?e[r]=n[r]:a&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(cy(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){(0,C.each)(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(cy(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,C.each)([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,C.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],a=this._targetAxisInfoMap.get(r),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(r,a.indexList[o]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(pl.default),yy=($e=a("jmxtG"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="dataZoom.inside",e.defaultOption=(0,$e.inheritDefaultOption)(gy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(gy)),my=(je=a("lCvKW"),je=a("lCvKW"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}((Sl=a("2UHy9")).default)),vy=(ut=a("3deD8"),Bn=a("2LuwV"),C=a("2FIaD"),(0,Bn.makeInner)());function xy(t,e,n){vy(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function _y(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function by(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Sy(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function wy(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=vy(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,C.createHashMap)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=dy(t);(0,C.each)(n.infoList,(function(n){var r=n.model.uid,a=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:(0,C.curry)(Sy,e),dispatchAction:(0,C.curry)(by,t),dataZoomInfoMap:null,controller:null},i=n.controller=new Ca(t.getZr());return(0,C.each)(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var a=(r.getRange||{})[t],o=a&&a(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&o&&i.push({dataZoomId:r.model.id,start:o[0],end:o[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(a.dataZoomInfoMap||(a.dataZoomInfoMap=(0,C.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var a=r.keys()[0];null!=a&&(e=r.get(a))}if(e){var o=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var a=t.model,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");i[n+o]>i[n+e]&&(e=o),r=r&&a.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(o.controlType,o.opt),n.setPointerChecker(t.containsPoint),ut.createOrUpdate(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else _y(i,t)}))}))}C=a("2FIaD");var My=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,je.__extends)(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),xy(i,e,{pan:(0,C.bind)(Iy.pan,this),zoom:(0,C.bind)(Iy.zoom,this),scrollMove:(0,C.bind)(Iy.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=vy(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var a=i[r],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||_y(n,o))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(my),Iy={zoom:function(t,e,n,i){var r=this.range,a=r.slice(),o=t.axisModels[0];if(o){var s=Cy[e](null,[i.originX,i.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Ul(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:Ty((function(t,e,n,i,r,a){var o=Cy[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:Ty((function(t,e,n,i,r,a){return Cy[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,n).signal*(t[1]-t[0])*a.scrollDelta}))};function Ty(t){return function(e,n,i,r){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s)return Ul(t(o,s,e,n,i,r),o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}var Cy={grid:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},Ay=My,Dy=(C=a("2FIaD"),C=a("2FIaD"),ct=a("lcKsG"),Gl=a("37xup"),a("1y4SD")),Ly=(Bn=a("2LuwV"),C.each),ky=ct.asc,Oy=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(uy(e)){var n=cy(this._dimName),i=e.getReferringComponents(n,Bn.SINGLE_REFERRING).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return C.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[];Ly(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=a[u]),h=i.parse(ct.linearMap(c,a,n))):(e=!0,h=null==h?n[u]:i.parse(h),c=ct.linearMap(h,n,a)),s[u]=null==h||isNaN(h)?n[u]:h,o[u]=null==c||isNaN(c)?a[u]:c})),ky(s),ky(o);var l=this._minMaxSpan;function u(t,e,n,r,a){var o=a?"Span":"ValueSpan";Ul(0,t,n,"all",l["min"+o],l["max"+o]);for(var s=0;s<2;s++)e[s]=ct.linearMap(t[s],n,r,!0),a&&(e[s]=i.parse(e[s]))}return e?u(s,o,n,a,!1):u(o,s,a,n,!0),{valueWindow:s,percentWindow:o}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];Ly(n,(function(t){(0,Gl.unionAxisExtentFromData)(i,t.getData(),e)}));var r=t.getAxisModel(),a=(0,Dy.ensureScaleRawExtentInfo)(r.axis.scale,r,i).calculate();return[a.min,a.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&Ly(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var o=e.getStore(),s=C.map(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;l<i.length;l++){var u=o.get(s[l],t),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else Ly(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}}));Ly(i,(function(t){e.setApproximateExtent(a,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Ly(["min","max"],(function(i){var r=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=ct.linearMap(n[0]+a,n,[0,100],!0):null!=r&&(a=ct.linearMap(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ct.getPixelPrecision(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}(),Py={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var a=t.getComponent(cy(i),r);e(i,r,a,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,a){r.__dzAxisProxy||(r.__dzAxisProxy=new Oy(e,i,a,t),n.push(r.__dzAxisProxy))}));var i=(0,C.createHashMap)();return(0,C.each)(n,(function(t){(0,C.each)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};function Ey(t){t.registerAction("dataZoom",(function(t,e){var n=hy(e,t);(0,C.each)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}C=a("2FIaD");var Ry=!1;function Ny(t){Ry||(Ry=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Py),Ey(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Fy(t){Ny(t),t.registerComponentModel(yy),t.registerComponentView(Ay),wy(t)}je=a("lCvKW"),$e=a("jmxtG");var By=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,$e.inheritDefaultOption)(gy.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"}}}),e}(gy);je=a("lCvKW"),C=a("2FIaD"),_a=a("1DnBg"),a("dXBoT"),rt=a("jKUgc"),ur=a("dVgap"),lr=a("fCBaM"),it=a("dXBoT"),tt=a("2IUoL"),sr=a("NBRFu"),$=a("jud7h"),ut=a("3deD8"),ct=a("lcKsG"),yr=a("3Q8SW"),st=a("4lzC1"),Ki=a("2ZiWs"),lt=a("c3Bep");var zy=rt.default,Vy=["line","bar","candlestick","scatter"],Wy={easing:"cubicOut",duration:100,delay:0};function Gy(t){return"vertical"===t?"ns-resize":"ew-resize"}var Hy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,C.bind)(this._onBrush,this),this._onBrushEnd=(0,C.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),ut.createOrUpdate(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ut.clear(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new tt.default;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},a="horizontal"===this._orient?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},o=yr.getLayoutParams(t.option);(0,C.each)(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=a[t])}));var s=yr.getLayoutRect(o,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr("horizontal"!==n||r?"horizontal"===n&&r?{scaleY:o?1:-1,scaleX:-1}:"vertical"!==n||r?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=t.getBoundingRect([a]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new zy({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new zy({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,C.bind)(this._onClickPanel,this)}),a=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),a=i.getShadowDim&&i.getShadowDim(),o=a&&r.getDimensionInfo(a)?i.getShadowDim():t.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(o),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=p[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([o],(function(t,e){if(v>0&&e%v)m+=y;else{var n=null==t||isNaN(t)||""===t,i=n?0:(0,ct.linearMap)(t,u,d,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([m,0]),g.push([m,0])),f.push([m,i]),g.push([m,i]),m+=y,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=S(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function S(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new tt.default,i=new ur.default({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new lr.default({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,a){var o=t.getAxisProxy(r,a).getTargetSeriesModels();(0,C.each)(o,(function(t){if(!(n||!0!==e&&(0,C.indexOf)(Vy,t.get("type"))<0)){var o,s=i.getComponent(cy(r),a).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:o}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,u=o.get("brushSelect"),c=e.filler=new zy({silent:u,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new zy({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,C.each)([0,1],(function(e){var a=o.get("handleIcon");!Ki.symbolBuildProxies[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=(0,Ki.createSymbol)(a,-1,0,2,2,null,!0);s.attr({cursor:Gy(this._orient),draggable:!0,drift:(0,C.bind)(this._onDragMove,this,e),ondragend:(0,C.bind)(this._onDragEnd,this),onmouseover:(0,C.bind)(this._showDataInfo,this,!0),onmouseout:(0,C.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=o.get("handleSize");this._handleHeight=(0,ct.parsePercent)(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,st.enableHoverEmphasis)(s);var c=o.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=o.getModel("textStyle");t.add(i[e]=new $.default({silent:!0,invisible:!0,style:(0,lt.createTextStyle)(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=(0,ct.parsePercent)(o.get("moveHandleSize"),a[1]),p=e.moveHandle=new rt.default({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=(0,Ki.createSymbol)(o.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=a[1]+d/2-.5,p.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(a[1]/2,Math.max(d,10));(h=e.moveZone=new rt.default({invisible:!0,shape:{y:a[1]-y,height:d+y}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:Gy(this._orient),drift:(0,C.bind)(this._onDragMove,this,"all"),ondragstart:(0,C.bind)(this._showDataInfo,this,!0),ondragend:(0,C.bind)(this._onDragEnd,this),onmouseover:(0,C.bind)(this._showDataInfo,this,!0),onmouseout:(0,C.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,ct.linearMap)(t[0],[0,100],e,!0),(0,ct.linearMap)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Ul(e,i,r,n.get("zoomLock")?"all":t,null!=a.minSpan?(0,ct.linearMap)(a.minSpan,o,r,!0):null,null!=a.maxSpan?(0,ct.linearMap)(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=(0,ct.asc)([(0,ct.linearMap)(i[0],r,o,!0),(0,ct.linearMap)(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=(0,ct.asc)(n.slice()),r=this._size;(0,C.each)([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:r[1]/2-a/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<o.length;l++){var u=o[l],c=u.getClipPath();c||(c=new rt.default,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,a=["",""];if(e.get("showDetail")){var o=e.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,u=t?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,ct.asc)(this._handleEnds.slice());function h(t){var e=it.getTransform(n.handles[t].parent,this.group),o=it.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=it.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:"horizontal"===r?"middle":o,align:"horizontal"===r?o:"center",text:a[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return(0,C.isFunction)(i)?i(t,a):(0,C.isString)(i)?i.replace("{value}",a):a},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,_a.stop(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),a=it.applyTransform([e,n],r,!0),o=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new sr.default(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=(0,ct.asc)([(0,ct.linearMap)(n.x,i,r,!0),(0,ct.linearMap)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(_a.stop(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new zy({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(t,e),l=o.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Wy:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=dy(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(my);function Uy(t){t.registerComponentModel(By),t.registerComponentView(Hy),Ny(t)}function Yy(t,e){var n;return C.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),Bn=a("2LuwV"),pl=a("eWRYv"),yr=a("3Q8SW");var Xy=["transition","enterFrom","leaveTo"],Ky=Xy.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function jy(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?Xy:Ky,r=0;r<i.length;r++){var a=i[r];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}var Zy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return(0,je.__extends)(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,a=[];this._flatten(i,a,null);var o=Bn.mappingToExists(r,a,"normalMerge"),s=this._elOptionsToUpdate=[];C.each(o,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=C.extend({},n),r=t[e],a=n.$action||"merge";"merge"===a?r?(C.merge(r,i,!0),(0,yr.mergeLayoutParam)(r,i,{ignoreSize:!0}),(0,yr.copyLayoutParams)(n,r),jy(n,r),jy(n,r,"shape"),jy(n,r,"style"),jy(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[Yy(e,["left","right"]),Yy(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))}),this),n.elements=C.filter(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){C.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(pl.default);je=a("lCvKW"),C=a("2FIaD"),jn=a("77M3u"),Bn=a("2LuwV"),a("dXBoT"),m=a("kbAoh"),it=a("dXBoT"),tt=a("2IUoL"),$=a("jud7h"),yr=a("3Q8SW"),ct=a("lcKsG"),Sl=a("2UHy9"),ot=a("5v9xk"),nt=a("kJ7of");var qy={path:null,compoundPath:null,group:tt.default,image:m.default,text:$.default},Jy=Bn.makeInner(),Qy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(){this._elMap=C.createHashMap()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),a=t.get("zlevel");C.each(e,(function(e){var o=Bn.convertOptionIdName(e.id,null),s=null!=o?n.get(o):null,l=Bn.convertOptionIdName(e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&Zn(h,c,!!p,!!d)){var f=qn(h,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(t){return t=C.extend({},t),C.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(yr.LOCATION_PARAMS),(function(e){delete t[e]})),t}(e),y=e.$action||"merge",m="merge"===y,v="replace"===y;if(m){var x=s;(T=!s)?x=em(o,u,e.type,n):(x&&(Jy(x).isNew=!1),xi(x)),x&&(si(x,g,t,{isInit:T}),nm(x,e,r,a))}else if(v){tm(s,e,n,t);var _=em(o,u,e.type,n);_&&(si(_,g,t,{isInit:!0}),nm(_,e,r,a))}else"remove"===y&&(li(s,e),tm(s,e,n,t));var b=n.get(o);if(b&&d)if(m){var S=b.getTextContent();S?S.attr(d):b.setTextContent(new $.default(d))}else v&&b.setTextContent(new $.default(d));if(b){var w=e.clipPath;if(w){var M=w.type,I=void 0,T=!1;if(m){var A=b.getClipPath();I=(T=!A||Jy(A).type!==M)?$y(M):A}else v&&(T=!0,I=$y(M));b.setClipPath(I),si(I,w,t,{isInit:T}),_i(I,w.keyframeAnimation,t)}var D=Jy(b);b.setTextConfig(p),D.option=e,function(t,e,n){var i=(0,ot.getECData)(t).eventData;t.silent||t.ignore||i||(i=(0,ot.getECData)(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}(b,t,e),it.setTooltipConfig({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),_i(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,a=e.getWidth(),o=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l];if((f=null!=(p=Bn.convertOptionIdName(u.id,null))?r.get(p):null)&&f.isGroup){var c=(g=f.parent)===i,h=Jy(f),d=Jy(g);h.width=(0,ct.parsePercent)(h.option.width,c?a:d.width)||0,h.height=(0,ct.parsePercent)(h.option.height,c?o:d.height)||0}}for(l=n.length-1;l>=0;l--){var p,f;if(u=n[l],f=null!=(p=Bn.convertOptionIdName(u.id,null))?r.get(p):null){var g=f.parent,y=(d=Jy(g),g===i?{width:a,height:o}:{width:d.width,height:d.height}),m={},v=yr.positionElement(f,u,y,null,{hv:u.hv,boundingMode:u.bounding},m);if(!Jy(f).isNew&&v){for(var x=u.transition,_={},b=0;b<s.length;b++){var S=s[b],w=m[S];x&&(ci(x)||C.indexOf(x,S)>=0)?_[S]=w:f[S]=w}(0,nt.updateProps)(f,_,t,0)}else f.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){tm(n,Jy(n).option,e,t._lastGraphicModel)})),this._elMap=C.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Sl.default);function $y(t){var e=new(C.hasOwn(qy,t)?qy[t]:it.getShapeClass(t))({});return Jy(e).type=t,e}function em(t,e,n,i){var r=$y(n);return e.add(r),i.set(t,r),Jy(r).id=t,Jy(r).isNew=!0,r}function tm(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){tm(t,e,n,i)})),ui(t,e,i),n.removeKey(Jy(t).id))}function nm(t,e,n,i){t.isGroup||C.each([["cursor",jn.default.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];C.hasOwn(e,i)?t[i]=C.retrieve2(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),C.each(C.keys(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=C.isFunction(i)?i:null}})),C.hasOwn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}p=a("kyrfh"),p=a("kyrfh"),je=a("lCvKW"),C=a("2FIaD"),Ha=a("9xTlQ"),Bn=a("2LuwV");var im=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),C.isArray(e)&&C.each(e,(function(t,i){C.isString(t)&&(t={type:t}),e[i]=C.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var o=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(o)),o.length?e=e.concat(o):r=!0}else r=!0;r&&(0,Bn.isNameSpecified)(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=C.createHashMap(),a=C.map(i,(function(t){return(C.isString(t)||C.isNumber(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new(0,Ha.default)(t,this,this.ecModel))}),this);this._data=C.filter(a,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;C.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;C.each(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;C.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&C.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}((pl=a("eWRYv")).default);function rm(t,e){var n=ko.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new rt.default({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}je=a("lCvKW"),C=a("2FIaD"),te=a("l3Be0"),tt=a("2IUoL"),a("dXBoT"),rt=a("jKUgc"),it=a("dXBoT"),$=a("jud7h"),st=a("4lzC1"),lt=a("c3Bep"),yr=a("3Q8SW"),ko=a("bZ9NN"),a("dXBoT"),rt=a("jKUgc"),yr=a("3Q8SW"),Sl=a("2UHy9"),Ki=a("2ZiWs"),ei=a("8yeYH"),ot=a("5v9xk");var am=C.curry,om=C.each,sm=tt.default;function lm(t,e,n,i){hm(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),cm(t,e,n,i)}function um(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function cm(t,e,n,i){um(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function hm(t,e,n,i){um(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var dm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,je.__extends)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new sm),this.group.add(this._selectorGroup=new sm),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var o=t.get("selector",!0),s=t.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,o,a,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=yr.getLayoutRect(l,u,c),d=this.layoutInner(t,r,h,i,o,s),p=yr.getLayoutRect(C.defaults({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rm(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,a,o){var s=this.getContentGroup(),l=C.createHashMap(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),om(e.getData(),(function(r,a){var o=r.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var h=new sm;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(o)[0];if(!l.get(o))if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),y=p.getVisual("style"),m=this._createItem(d,o,a,r,e,t,f,y,g,u,i);m.on("click",am(lm,o,null,i,c)).on("mouseover",am(cm,d.name,null,i,c)).on("mouseout",am(hm,d.name,null,i,c)),n.ssr&&m.eachChild((function(t){var e=(0,ot.getECData)(t);e.seriesIndex=d.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),l.set(o,!0)}else n.eachRawSeries((function(s){if(!l.get(o)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(o))return;var d=h.indexOfName(o),p=h.getItemVisual(d,"style"),f=h.getItemVisual(d,"legendIcon"),g=(0,te.parse)(p.fill);g&&0===g[3]&&(g[3]=.2,p=C.extend(C.extend({},p),{fill:(0,te.stringify)(g,"rgba")}));var y=this._createItem(s,o,a,r,e,t,{},p,f,u,i);y.on("click",am(lm,null,o,i,c)).on("mouseover",am(cm,null,o,i,c)).on("mouseout",am(hm,null,o,i,c)),n.ssr&&y.eachChild((function(t){var e=(0,ot.getECData)(t);e.seriesIndex=s.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),l.set(o,!0)}}),this)}),this),r&&this._createSelector(r,e,i,a,o)},e.prototype._createSelector=function(t,e,n,i,r){var a=this.getSelectorGroup();om(t,(function(t){var i=t.type,r=new $.default({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,lt.setLabelStyle)(r,{normal:o,emphasis:s},{defaultText:t.title}),(0,st.enableHoverEmphasis)(r)}))},e.prototype._createItem=function(t,e,n,i,r,a,o,s,l,u,c){var h=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),v=function(t,e,n,i,r,a,o){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),om(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,ei.createOrUpdatePatternFromDecal)(h,o):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!a){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=m||l||"roundRect",i,o,s,h,f,c),x=new sm,_=i.getModel("textStyle");if(!C.isFunction(t.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=(0,Ki.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:y}));var S="left"===a?d+5:-5,w=a,M=r.get("formatter"),I=e;C.isString(M)&&M?I=M.replace("{name}",null!=e?e:""):C.isFunction(M)&&(I=M(e));var T=f?_.getTextColor():i.get("inactiveColor");x.add(new $.default({style:(0,lt.createTextStyle)(_,{text:I,x:S,y:p/2,fill:T,align:w,verticalAlign:"middle"},{inheritColor:T})}));var A=new rt.default({shape:x.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&it.setTooltipConfig({el:A,componentModel:r,itemName:e,itemTooltipOption:D.option}),x.add(A),x.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(x),(0,st.enableHoverEmphasis)(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();yr.box(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),r){yr.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===a?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],o.x=u[0],o.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+c[f],m[g]=Math.max(l[g],c[g]),m[y]=Math.min(0,c[y]+h[1-p]),m}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Sl.default);function pm(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function fm(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var o=n.getData();(0,C.each)(o,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function gm(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,C.curry)(fm,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,C.curry)(fm,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,C.curry)(fm,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,C.curry)(fm,"select")),t.registerAction("legendUnSelect","legendunselected",(0,C.curry)(fm,"unSelect"))}function ym(t){t.registerComponentModel(im),t.registerComponentView(dm),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,pm),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),gm(t)}function mm(t,e,n){var i=[1,1];i[t.getOrient().index]=0,(0,yr.mergeLayoutParam)(e,n,{type:"box",ignoreSize:!!i})}C=a("2FIaD"),p=a("kyrfh"),je=a("lCvKW"),yr=a("3Q8SW"),$e=a("jmxtG");var vm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=(0,yr.getLayoutParams)(e);t.prototype.init.call(this,e,n,i),mm(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),mm(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,$e.inheritDefaultOption)(im.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}),e}(im),xm=(je=a("lCvKW"),C=a("2FIaD"),it=a("dXBoT"),rt=a("jKUgc"),nt=a("kJ7of"),tt=a("2IUoL"),$=a("jud7h"),yr=a("3Q8SW"),tt.default),_m=["width","height"],bm=["x","y"],Sm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,je.__extends)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new xm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xm)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,a,o,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,a,o,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=C.isArray(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",a=it.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:C.bind(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,u.add(a)}u.add(new $.default({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getSelectorGroup(),s=t.getOrient().index,l=_m[s],u=bm[s],c=_m[1-s],h=bm[1-s];r&&yr.box("horizontal",o,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=o.getBoundingRect(),f=[-p.x,-p.y],g=C.clone(n);r&&(g[l]=n[l]-p[l]-d);var y=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===a)f[s]+=y[l]+d;else{var m=p[l]+d;f[s]-=m,y[u]-=m}y[l]+=p[l]+d,f[1-s]+=y[h]+y[c]/2-p[c]/2,y[c]=Math.max(y[c],p[c]),y[h]=Math.min(y[h],p[h]+f[1-s]),o.x=f[0],o.y=f[1],o.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,i,r,a,o,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;yr.box(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),yr.box("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],y=[-d.x,-d.y],m=C.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-d[r]:g[i]+=d[r]+m),y[1-i]+=h[a]/2-d[a]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var v={x:0,y:0};if(v[r]=p?n[r]:h[r],v[a]=Math.max(h[a],d[a]),v[o]=Math.min(0,d[o]+y[1-i]),u.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-m,0),x[a]=v[a],u.setClipPath(new rt.default({shape:x})),u.__rectSize=x[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&nt.updateProps(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),v},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;C.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,o=null!=a?a+1:0,s=e.pageCount;i&&r&&i.setStyle("text",C.isString(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):r({current:o,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=_m[r],o=bm[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,y=p,m=null;f<=c;++f)(!(m=v(l[f]))&&y.e>g.s+i||m&&!x(m,g.s))&&(g=y.i>g.i?y:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),y=m;for(f=s-1,g=p,y=p,m=null;f>=-1;--f)(m=v(l[f]))&&x(y,m.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function v(t){if(t){var e=t.getBoundingRect(),n=e[o]+t[o];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(dm);function wm(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function Mm(t){(0,p.use)(ym),t.registerComponentModel(vm),t.registerComponentView(Sm),wm(t)}function Im(t,e){if(!t)return!1;for(var n=(0,C.isArray)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}C=a("2FIaD"),je=a("lCvKW"),je=a("lCvKW"),C=a("2FIaD"),qf=a("6rpCZ");var Tm=a("ibUez");function Cm(t){(0,Bn.defaultEmphasis)(t,"label",["show"])}pl=a("eWRYv"),Bn=a("2LuwV"),so=a("eckBc");var Am=(0,Bn.makeInner)(),Dm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(qf.default.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=Am(t)[r];n&&n.data?(a?a._mergeOption(n,e,!0):(i&&Cm(n),C.each(n.data,(function(t){t instanceof Array?(Cm(t[0]),Cm(t[1])):Cm(t)})),a=this.createMarkerModelFromSeries(n,this,e),C.extend(a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),Am(t)[r]=a):Am(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t);return(0,so.createTooltipMarkup)("section",{header:this.name,blocks:[(0,so.createTooltipMarkup)("nameValue",{name:a,value:r,noName:!a,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return Am(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(pl.default);C.mixin(Dm,Tm.DataFormatMixin.prototype);var Lm=Dm,km=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Lm);je=a("lCvKW"),te=a("l3Be0"),Yt=a("hpTXA"),ct=a("lcKsG"),tt=a("2IUoL"),a("dXBoT"),ur=a("dVgap"),nt=a("kJ7of"),st=a("4lzC1"),ct=a("lcKsG"),ir=a("lSDa3"),C=a("2FIaD");var Om=a("foJ5h");function Pm(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Em(t,e,n,i,r,a){var o=[],s=(0,ir.isDimensionStacked)(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=Vm(e,s,t),u=e.indicesOfNearest(s,l)[0];o[r]=e.get(n,u),o[a]=e.get(s,u);var c=e.get(i,u),h=ct.getPrecision(e.get(i,u));return(h=Math.min(h,20))>=0&&(o[a]=+o[a].toFixed(h)),[o,c]}var Rm={min:(0,C.curry)(Em,"min"),max:(0,C.curry)(Em,"max"),average:(0,C.curry)(Em,"average"),median:(0,C.curry)(Em,"median")};function Nm(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!(0,C.isArray)(e.coord)&&(0,C.isArray)(r)){var a=Fm(e,n,i,t);if((e=(0,C.clone)(e)).type&&Rm[e.type]&&a.baseAxis&&a.valueAxis){var o=(0,C.indexOf)(r,a.baseAxis.dim),s=(0,C.indexOf)(r,a.valueAxis.dim),l=Rm[e.type](n,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&(0,C.isArray)(r))for(var u=e.coord,c=0;c<2;c++)Rm[u[c]]&&(u[c]=Vm(n,n.mapDimension(r[c]),u[c]));else e.coord=[];return e}}function Fm(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Bm(t,e){return!(t&&t.containData&&e.coord&&!Pm(e))||t.containData(e.coord)}function zm(t,e){return t?function(t,n,i,r){var a=r<2?t.coord&&t.coord[r]:t.value;return(0,Om.parseDataValue)(a,e[r])}:function(t,n,i,r){return(0,Om.parseDataValue)(t.value,e[r])}}function Vm(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}je=a("lCvKW"),Sl=a("2UHy9"),C=a("2FIaD"),Bn=a("2LuwV"),st=a("4lzC1");var Wm=(0,Bn.makeInner)(),Gm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(){this.markerGroupMap=(0,C.createHashMap)()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){Wm(t).keep=!1})),e.eachSeries((function(t){var r=Lm.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!Wm(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){Wm(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;(0,C.each)(t,(function(t){var i=Lm.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?(0,st.enterBlur)(t):(0,st.leaveBlur)(t))}))}))},e.type="marker",e}(Sl.default),Hm=(C=a("2FIaD"),Bn=a("2LuwV"),gg=a("9kZyL"),lt=a("c3Bep"),ot=a("5v9xk"),Om=a("foJ5h"),(0,Bn.makeInner)()),Um=function(t,e,n,i){var r=i[0],a=i[1];if(r&&a){var o=Nm(t,r),s=Nm(t,a),l=o.coord,u=s.coord;l[0]=(0,C.retrieve)(l[0],-1/0),l[1]=(0,C.retrieve)(l[1],-1/0),u[0]=(0,C.retrieve)(u[0],1/0),u[1]=(0,C.retrieve)(u[1],1/0);var c=(0,C.mergeAll)([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Ym(t){return!isNaN(t)&&!isFinite(t)}function Xm(t,e,n,i){var r=1-t;return Ym(e[r])&&Ym(n[r])}function Km(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return mt(t,"cartesian2d")?!(!n||!i||!Xm(1,n,i)&&!Xm(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!Pm(e)&&!Pm(n))||t.containZone(e.coord,n.coord)}(t,r,a):Bm(t,r)||Bm(t,a)}function jm(t,e,n,i,r){var a,o=i.coordinateSystem,s=t.getItemModel(e),l=ct.parsePercent(s.get(n[0]),r.getWidth()),u=ct.parsePercent(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=o.clampData(c),p=o.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],a=i.getMarkerPosition(f,n,!0)}else{var g=[v=t.get(n[0],e),x=t.get(n[1],e)];o.clampData&&o.clampData(g,g),a=o.dataToPoint(g,!0)}if(mt(o,"cartesian2d")){var y=o.getAxis("x"),m=o.getAxis("y"),v=t.get(n[0],e),x=t.get(n[1],e);Ym(v)?a[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):Ym(x)&&(a[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var Zm=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Lm.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=(0,C.map)(Zm,(function(r){return jm(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new tt.default});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;if(t){var a=(0,C.map)(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return(0,C.extend)((0,C.extend)({},i),{name:t,ordinalMeta:null})}));r=(0,C.map)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:a[e%2].type}})),i=new(0,Yt.default)(r,n)}else r=[{name:"value",type:"float"}],i=new(0,Yt.default)(r,n);var o=(0,C.map)(n.get("data"),(0,C.curry)(Um,e,t,n));t&&(o=(0,C.filter)(o,(0,C.curry)(Km,t)));var s=t?function(t,e,n,i){var a=t.coord[Math.floor(i/2)][i%2];return(0,Om.parseDataValue)(a,r[i])}:function(t,e,n,i){return(0,Om.parseDataValue)(t.value,r[i])};return i.initData(o,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=(0,C.map)(Zm,(function(n){return jm(u,e,n,t,i)})),a=r.getAxis("x").scale,s=r.getAxis("y").scale,l=a.getExtent(),c=s.getExtent(),h=[a.parse(u.get("x0",e)),a.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ct.asc(h),ct.asc(d);var p=!!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]);u.setItemLayout(e,{points:n,allClipped:p});var f=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=(0,gg.getVisualFromData)(o,"color");f.fill||(f.fill=g,(0,C.isString)(f.fill)&&(f.fill=te.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(e,"style",f)})),u.diff(Hm(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new ur.default({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=Hm(l).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?nt.updateProps(i,{shape:{points:r.points}},e,t):i=new ur.default({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=Hm(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),(0,lt.setLabelStyle)(t,(0,lt.getLabelStatesModels)(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:(0,C.isString)(r.fill)?te.modifyAlpha(r.fill,1):"#000"}),(0,st.setStatesStylesFromModel)(t,i),(0,st.toggleHoverEmphasis)(t,null,null,i.get(["emphasis","disabled"])),(0,ot.getECData)(t).dataModel=e})),Hm(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(Gm);je=a("lCvKW");var Jm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.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"},e}(Lm),Qm=(je=a("lCvKW"),Yt=a("hpTXA"),ct=a("lcKsG"),ir=a("lSDa3"),ot=a("5v9xk"),C=a("2FIaD"),Bn=a("2LuwV"),gg=a("9kZyL"),(0,Bn.makeInner)()),$m=function(t,e,n,i){var r,a=t.getData();if((0,C.isArray)(i))r=i;else{var o=i.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=(0,C.retrieve)(i.yAxis,i.xAxis);else{var u=Fm(i,a,e,t);s=u.valueAxis,l=Vm(a,(0,ir.getStackedDimension)(a,u.valueDataDim),o)}var c="x"===s.dim?0:1,h=1-c,d=(0,C.clone)(i),p={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,p.coord[h]=1/0;var f=n.get("precision");f>=0&&(0,C.isNumber)(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,r=[d,p,{type:o,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[Nm(t,r[0]),Nm(t,r[1]),(0,C.extend)({},r[2])];return g[2].type=g[2].type||null,(0,C.merge)(g[2],g[0]),(0,C.merge)(g[2],g[1]),g};function ev(t){return!isNaN(t)&&!isFinite(t)}function tv(t,e,n,i){var r=1-t,a=i.dimensions[t];return ev(e[r])&&ev(n[r])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function nv(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(tv(1,n,i,t)||tv(0,n,i,t)))return!0}return Bm(t,e[0])&&Bm(t,e[1])}function iv(t,e,n,i,r){var a,o=i.coordinateSystem,s=t.getItemModel(e),l=ct.parsePercent(s.get("x"),r.getWidth()),u=ct.parsePercent(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);a=o.dataToPoint([h,d])}if(mt(o,"cartesian2d")){var p=o.getAxis("x"),f=o.getAxis("y");c=o.dimensions,ev(t.get(c[0],e))?a[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):ev(t.get(c[1],e))&&(a[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];t.setItemLayout(e,a)}var rv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Lm.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=Qm(e).from,a=Qm(e).to;r.each((function(e){iv(r,e,!0,t,n),iv(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new va);this.group.add(l.group);var u=function(t,e,n){var i;i=t?(0,C.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,C.extend)((0,C.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new(0,Yt.default)(i,n),a=new(0,Yt.default)(i,n),o=new(0,Yt.default)([],n),s=(0,C.map)(n.get("data"),(0,C.curry)($m,e,t,n));t&&(s=(0,C.filter)(s,(0,C.curry)(nv,t)));var l=zm(!!t,i);return r.initData((0,C.map)(s,(function(t){return t[0]})),null,l),a.initData((0,C.map)(s,(function(t){return t[1]})),null,l),o.initData((0,C.map)(s,(function(t){return t[2]}))),o.hasItemOption=!0,{from:r,to:a,line:o}}(r,t,e),c=u.from,h=u.to,d=u.line;Qm(e).from=c,Qm(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function m(e,n,r){var a=e.getItemModel(n);iv(e,n,r,t,i);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=(0,gg.getVisualFromData)(o,"color")),e.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:(0,C.retrieve2)(a.get("symbolOffset",!0),y[r?0:1]),symbolRotate:(0,C.retrieve2)(a.get("symbolRotate",!0),g[r?0:1]),symbolSize:(0,C.retrieve2)(a.get("symbolSize"),f[r?0:1]),symbol:(0,C.retrieve2)(a.get("symbol",!0),p[r?0:1]),style:s})}(0,C.isArray)(p)||(p=[p,p]),(0,C.isArray)(f)||(f=[f,f]),(0,C.isArray)(g)||(g=[g,g]),(0,C.isArray)(y)||(y=[y,y]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){(0,ot.getECData)(t).dataModel=e,t.traverse((function(t){(0,ot.getECData)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Gm);je=a("lCvKW");var av=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Lm);function ov(t,e,n){var i=e.coordinateSystem;t.each((function(r){var a,o=t.getItemModel(r),s=ct.parsePercent(o.get("x"),n.getWidth()),l=ct.parsePercent(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);a=i.dataToPoint([u,c])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(r,a)}))}je=a("lCvKW"),ct=a("lcKsG"),Yt=a("hpTXA"),C=a("2FIaD"),ot=a("5v9xk"),gg=a("9kZyL");var sv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Lm.getMarkerModelFromSeries(t,"markPoint");e&&(ov(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new $i),u=function(t,e,n){var i;i=t?(0,C.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,C.extend)((0,C.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new(0,Yt.default)(i,n),a=(0,C.map)(n.get("data"),(0,C.curry)(Nm,e));t&&(a=(0,C.filter)(a,(0,C.curry)(Bm,t)));var o=zm(!!t,i);return r.initData(a,null,o),r}(r,t,e);e.setData(u),ov(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if((0,C.isFunction)(i)||(0,C.isFunction)(r)||(0,C.isFunction)(a)||(0,C.isFunction)(s)){var c=e.getRawValue(t),h=e.getDataParams(t);(0,C.isFunction)(i)&&(i=i(c,h)),(0,C.isFunction)(r)&&(r=r(c,h)),(0,C.isFunction)(a)&&(a=a(c,h)),(0,C.isFunction)(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=(0,gg.getVisualFromData)(o,"color");d.fill||(d.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){(0,ot.getECData)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(Gm);je=a("lCvKW"),p=a("kyrfh"),je=a("lCvKW"),it=a("dXBoT"),nr=a("0445l");var lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var c=Nf(i),h=uv[u](a,o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=function(t,e,n,i,r){var a=e.axis,o=a.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===a.dim){var d=nr.create();nr.rotate(d,d,s),nr.translate(d,d,[i.cx,i.cy]),l=it.applyTransform([o,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=Iu.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,o]);var y=i.cx,m=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,o,i.get(["label","margin"]));Ff(t,n,i,r,d)},e}(Rf),uv={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:Wf(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Hf(e.cx,e.cy,i[0],i[1],(-n-r/2)*a,(r/2-n)*a)}:{type:"Sector",shape:Hf(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},cv=lv,hv=(je=a("lCvKW"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}((pl=a("eWRYv")).default)),dv=(je=a("lCvKW"),C=a("2FIaD"),pl=a("eWRYv"),fu=a("7J1ai"),Bn=a("2LuwV"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Bn.SINGLE_REFERRING).models[0]},e.type="polarAxis",e}(pl.default));C.mixin(dv,fu.AxisModelCommonMixin);var pv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="angleAxis",e}(dv),fv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="radiusAxis",e}(dv),gv=(C=a("2FIaD"),je=a("lCvKW"),function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return(0,je.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}((mv=a("z6R1J")).default));gv.prototype.dataToRadius=mv.default.prototype.dataToCoord,gv.prototype.radiusToData=mv.default.prototype.coordToData;var yv=gv,mv=(je=a("lCvKW"),v=a("bv5ZD"),a("z6R1J")),vv=(0,(Bn=a("2LuwV")).makeInner)(),xv=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return(0,je.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],o=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(o),l=v.getBoundingRect(null==a?"":a+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=vv(t.model),d=h.lastAutoInterval,p=h.lastTickCount;return null!=d&&null!=p&&Math.abs(d-c)<=1&&Math.abs(p-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},e}(mv.default);xv.prototype.dataToAngle=mv.default.prototype.dataToCoord,xv.prototype.angleToData=mv.default.prototype.coordToData;var _v=xv,bv=["radius","angle"];function Sv(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var wv=function(){function t(t){this.dimensions=bv,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new yv,this._angleAxis=new _v,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<a?1:-1;l<a||l>o;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}},t.prototype.convertToPixel=function(t,e,n){return Sv(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Sv(e)===this?this.pointToData(n):null},t}();function Mv(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();C.each((0,Gl.getDataDimensionsOnAxis)(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),C.each((0,Gl.getDataDimensionsOnAxis)(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),(0,Gl.niceScaleExtent)(i.scale,i.model),(0,Gl.niceScaleExtent)(r.scale,r.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function Iv(t,e){var n;if(t.type=e.get("type"),t.scale=(0,Gl.createScaleByModel)(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}ct=a("lcKsG"),Gl=a("37xup"),Bn=a("2LuwV");var Tv={dimensions:bv,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new wv(i+"");r.update=Mv;var a=r.getRadiusAxis(),o=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Iv(a,s),Iv(o,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),a=n.getHeight();t.cx=(0,ct.parsePercent)(i[0],r),t.cy=(0,ct.parsePercent)(i[1],a);var o=t.getRadiusAxis(),s=Math.min(r,a)/2,l=e.get("radius");null==l?l=[0,"100%"]:C.isArray(l)||(l=[0,l]);var u=[(0,ct.parsePercent)(l[0],s),(0,ct.parsePercent)(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Bn.SINGLE_REFERRING).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},Cv=(je=a("lCvKW"),C=a("2FIaD"),it=a("dXBoT"),lt=a("c3Bep"),Ha=a("9xTlQ"),ot=a("5v9xk"),["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"]);function Av(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Dv(t){return t.getRadiusAxis().inverse?0:1}function Lv(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var kv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=C.map(n.getViewLabels(),(function(t){t=C.clone(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));Lv(s),Lv(a),C.each(Cv,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||Ov[e](this.group,t,i,a,o,r,s)}),this)}},e.type="angleAxis",e}(Cd),Ov={axisLine:function(t,e,n,i,r,a){var o,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=Dv(n),d=h?0:1,p=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(o=0===a[d]?new it[p]({shape:{cx:n.cx,cy:n.cy,r:a[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new it.Ring({shape:{cx:n.cx,cy:n.cy,r:a[h],r0:a[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(o)},axisTick:function(t,e,n,i,r,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Dv(n)],u=C.map(i,(function(t){return new it.Line({shape:Av(n,[l,l+s],t.coord)})}));t.add(it.mergePath(u,{style:C.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,a){if(r.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Dv(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new it.Line({shape:Av(n,[u,u+l],r[h][d].coord)}));t.add(it.mergePath(c,{style:C.defaults(s.getModel("lineStyle").getLineStyle(),C.defaults(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");C.each(o,(function(i,r){var o=l,h=i.tickValue,d=a[Dv(n)],p=n.coordToPoint([d+u,i.coord]),f=n.cx,g=n.cy,y=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",m=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var v=s[h];C.isObject(v)&&v.textStyle&&(o=new(0,Ha.default)(v.textStyle,l,l.ecModel))}var x=new it.Text({silent:Iu.isLabelSilent(e),style:(0,lt.createTextStyle)(o,{x:p[0],y:p[1],fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:m})});if(t.add(x),c){var _=Iu.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,(0,ot.getECData)(x).eventData=_}}),this)},splitLine:function(t,e,n,i,r,a){var o=e.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new it.Line({shape:Av(n,a,i[c].coord)}))}for(c=0;c<u.length;c++)t.add(it.mergePath(u[c],{style:C.defaults({stroke:s[c%s.length]},o.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,a){if(r.length){for(var o=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new it.Line({shape:Av(n,a,r[l][u].coord)}));t.add(it.mergePath(s,{style:o.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,a){if(i.length){var o=e.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-i[0].coord*c,d=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),f=e.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=g===y?i[0].coord:i[g].coord,v=l++%s.length;u[v]=u[v]||[],u[v].push(new it.Sector({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:h,endAngle:-m*c,clockwise:f},silent:!0})),h=-m*c}for(g=0;g<u.length;g++)t.add(it.mergePath(u[g],{style:C.defaults({fill:s[g%s.length]},o.getAreaStyle()),silent:!0}))}}},Pv=kv,Ev=(je=a("lCvKW"),C=a("2FIaD"),it=a("dXBoT"),["axisLine","axisTickLabel","axisName"]),Rv=["splitLine","splitArea","minorSplitLine"],Nv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new it.Group;this.group.add(i);var r=t.axis,a=r.polar,o=a.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=o.getExtent()[0],c=r.getExtent(),h=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(a,t,u),d=new Iu(t,h);C.each(Ev,d.add,d),i.add(d.getGroup()),it.groupTransition(n,i,t),C.each(Rv,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&Fv[e](this.group,t,a,u,c,s,l)}),this)}},e.type="radiusAxis",e}(Cd),Fv={splitLine:function(t,e,n,i,r,a){var o=e.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],f=0;f<a.length;f++){var g=l++%s.length;p[g]=p[g]||[],p[g].push(new it[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[f].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(f=0;f<p.length;f++)t.add(it.mergePath(p[f],{style:C.defaults({stroke:s[f%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,a,o){if(o.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new it.Circle({shape:{cx:n.cx,cy:n.cy,r:o[u][c].coord}}));t.add(it.mergePath(l,{style:C.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,a){if(a.length){var o=e.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=a[0].coord,h=1;h<a.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new it.Sector({shape:{cx:n.cx,cy:n.cy,r0:c,r:a[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=a[h].coord}for(h=0;h<u.length;h++)t.add(it.mergePath(u[h],{style:C.defaults({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},Bv=Nv;function zv(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Vv(t,e){return e.dim+t.model.componentIndex}Sl=a("2UHy9"),C=a("2FIaD"),C=a("2FIaD"),ct=a("lcKsG"),ir=a("lSDa3");var Wv=function(t,e,n){var i={},r=function(t){var e={};C.each(t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),o=Vv(r,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[o]=u;var h=zv(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=(0,ct.parsePercent)(t.get("barWidth"),l),p=(0,ct.parsePercent)(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return C.each(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,a=(0,ct.parsePercent)(t.categoryGap,r),o=(0,ct.parsePercent)(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*o);u=Math.max(u,0),C.each(i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-a)/(l+(l-1)*o),u=Math.max(u,0);var c,h=0;C.each(i,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+o)})),c&&(h-=c.width*o);var d=-h/2;C.each(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+o)}))})),n}(C.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=Vv(n,a),s=zv(t),l=r[o][s],u=l.offset,c=l.width,h=n.getOtherAxis(a),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=e.mapDimension(h.dim),m=e.mapDimension(a.dim),v=(0,ir.isDimensionStacked)(e,y),x="radius"!==a.dim||!t.get("roundCap",!0),_=h.dataToCoord(0),b=0,S=e.count();b<S;b++){var C=e.get(y,b),w=e.get(m,b),M=C>=0?"p":"n",I=_;v&&(i[s][w]||(i[s][w]={p:_,n:_}),I=i[s][w][M]);var T=void 0,A=void 0,D=void 0,L=void 0;if("radius"===h.dim){var k=h.dataToCoord(C)-_,O=a.dataToCoord(w);Math.abs(k)<f&&(k=(k<0?-1:1)*f),T=I,A=I+k,L=(D=O-u)-c,v&&(i[s][w][M]=A)}else{var P=h.dataToCoord(C,x)-_,E=a.dataToCoord(w);Math.abs(P)<g&&(P=(P<0?-1:1)*g),A=(T=E+u)+c,D=I,L=I+P,v&&(i[s][w][M]=L)}e.setItemLayout(b,{cx:d,cy:p,r0:T,r:A,startAngle:-D*Math.PI/180,endAngle:-L*Math.PI/180,clockwise:D>=L})}}}))},Gv={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Hv={splitNumber:5},Uv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="polar",e}(Sl.default);function Yv(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},a=i.position,o=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===o?u.vertical[a]:l[0],"horizontal"===o?u.horizontal[a]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),C.retrieve(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),r.labelRotation="top"===a?-c:c,r.z2=1,r}je=a("lCvKW"),p=a("kyrfh"),Sl=a("2UHy9"),je=a("lCvKW"),C=a("2FIaD"),tt=a("2IUoL"),it=a("dXBoT"),br=a("l0SnR"),C=a("2FIaD");var Xv=["axisLine","axisTickLabel","axisName"],Kv=["splitArea","splitLine"],jv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return(0,je.__extends)(e,t),e.prototype.render=function(e,n,i,r){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new tt.default;var s=Yv(e),l=new Iu(e,s);C.each(Xv,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),C.each(Kv,(function(t){e.get([t,"show"])&&Zv[t](this,this.group,this._axisGroup,e)}),this),it.groupTransition(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){Ld(this)},e.type="singleAxis",e}(Cd),Zv={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var a=i.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=[],d=0,p=r.getTicksCoords({tickModel:a}),f=[],g=[],y=0;y<p.length;++y){var m=r.toGlobalCoord(p[y].coord);c?(f[0]=m,f[1]=u.y,g[0]=m,g[1]=u.y+u.height):(f[0]=u.x,f[1]=m,g[0]=u.x+u.width,g[1]=m);var v=new br.default({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});it.subPixelOptimizeLine(v.shape,l);var x=d++%s.length;h[x]=h[x]||[],h[x].push(v)}var _=o.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(it.mergePath(h[y],{style:C.defaults({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,i){Dd(t,n,i,i)}},qv=jv,Jv=(je=a("lCvKW"),pl=a("eWRYv"),fu=a("7J1ai"),C=a("2FIaD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.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}}},e}(pl.default));(0,C.mixin)(Jv,fu.AxisModelCommonMixin.prototype);var Qv=Jv,$v=(je=a("lCvKW"),function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o.position=a||"bottom",o}return(0,je.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}((mv=a("z6R1J")).default)),ex=(Gl=a("37xup"),yr=a("3Q8SW"),C=a("2FIaD"),["single"]);function tx(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var nx=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=ex,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new $v(i,Gl.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),a="category"===r.type;r.onBand=a&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();(0,C.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),Gl.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=(0,yr.getLayoutRect)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return tx(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return tx(e)===this?this.pointToData(n):null},t}();Bn=a("2LuwV");var ix={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var a=new nx(i,t,e);a.name="single_"+r,a.resize(i,e),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Bn.SINGLE_REFERRING).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:ex},rx=(je=a("lCvKW"),["x","y"]),ax=["width","height"],ox=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis,o=a.coordinateSystem,s=ux(o,1-lx(a)),l=o.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=Nf(i),h=sx[u](a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}Vf(e,t,Yv(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Yv(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=zf(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,a=r.coordinateSystem,o=lx(r),s=ux(a,o),l=[t.x,t.y];l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=ux(a,1-o),c=(u[1]+u[0])/2,h=[c,c];return h[o]=l[o],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(Rf),sx={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Wf([e,n[0]],[e,n[1]],lx(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:Gf([e-i/2,n[0]],[i,r],lx(t))}}};function lx(t){return t.isHorizontal()?0:1}function ux(t,e){var n=t.getRect();return[n[rx[e]],n[rx[e]]+n[ax[e]]]}var cx=ox,hx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="single",e}(Sl.default);je=a("lCvKW"),je=a("lCvKW"),pl=a("eWRYv"),Yt=a("hpTXA"),C=a("2FIaD"),Bn=a("2LuwV");var dx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],(0,C.each)(n,(function(e,n){var i,a=(0,Bn.convertOptionIdName)((0,Bn.getDataItemValue)(e),"");(0,C.isObject)(e)?(i=(0,C.clone)(e)).value=n:i=n,t.push(i),r.push(a)}))):t=n;var a={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new(0,Yt.default)([{name:"value",type:a}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.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:[]},e}(pl.default),px=(Tm=a("ibUez"),C=a("2FIaD"),$e=a("jmxtG"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="timeline.slider",e.defaultOption=(0,$e.inheritDefaultOption)(dx.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:[]}),e}(dx));(0,C.mixin)(px,Tm.DataFormatMixin.prototype);var fx=px;je=a("lCvKW"),Jr=a("lV62k"),nr=a("0445l"),a("dXBoT"),br=a("l0SnR"),it=a("dXBoT"),tt=a("2IUoL"),$=a("jud7h"),lt=a("c3Bep"),yr=a("3Q8SW"),je=a("lCvKW");var gx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="timeline",e}((Sl=a("2UHy9")).default),yx=(je=a("lCvKW"),function(t){function e(e,n,i,r){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a}return(0,je.__extends)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}((mv=a("z6R1J")).default)),mx=(Ki=a("2ZiWs"),ct=a("lcKsG"),C=a("2FIaD"),a("hTGbR")),vx=a("66ngc"),xx=(yh=a("bMR4E"),v=a("bv5ZD"),Bn=a("2LuwV"),ot=a("5v9xk"),st=a("4lzC1"),so=a("eckBc"),Math.PI),_x=(0,Bn.makeInner)();function bx(t,e,n,i,r,a){var o=e.get("color");if(r)r.setColor(o),n.add(r),a&&a.onUpdate(r);else{var s=t.get("symbol");(r=(0,Ki.createSymbol)(s,-1,-1,2,2,o)).setStyle("strokeNoScale",!0),n.add(r),a&&a.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=(0,C.merge)({rectHover:!0,z2:100},i,!0);var u=(0,Ki.normalizeSymbolSize)(t.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=(0,Ki.normalizeSymbolOffset)(t.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function Sx(t,e,n,i,r,a){if(!t.dragging){var o=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var Mx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=o.scale.getLabel({value:t});return(0,so.createTooltipMarkup)("nameValue",{noName:!0,value:e})},(0,C.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,o,t)}),this),this._renderAxisLabel(i,a,o,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,a,o=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return yr.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==o||"auto"===o?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":(0,C.isString)(o)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][o]:o)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:xx/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,y=f?p.get("itemGap"):0,m=g+y,v=t.get(["label","rotate"])||0;v=v*xx/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),S=f&&p.get("showNextBtn",!0),w=0,M=d;"left"===x||"bottom"===x?(_&&(i=[0,0],w+=m),b&&(r=[w,0],w+=m),S&&(a=[M-g,0],M-=m)):(_&&(i=[M-g,0],M-=m),b&&(r=[0,0],w+=m),S&&(a=[M-g,0],M-=m));var I=[w,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:v,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:a,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var a=nr.create(),o=r.x,s=r.y+r.height;nr.translate(a,a,[-o,-s]),nr.rotate(a,a,-xx/2),nr.translate(a,a,[o,s]),(r=r.clone()).applyTransform(a)}var l=y(r),u=y(n.getBoundingRect()),c=y(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p,f=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==f||(0,C.isString)(f)?(m(h,u,l,1,p="+"===f?0:1),m(d,c,l,1,1-p)):(m(h,u,l,1,p=f>=0?0:1),d[1]=h[1]+f),n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new(0,mx.default)({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new(0,vx.default)({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(0,yh.default)}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.calcNiceTicks();var o=new yx("value",r,t.axisExtent,i);return o.model=e,o},e.prototype._createGroup=function(t){var e=this[t]=new tt.default;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var a=new br.default({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,C.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(a);var o=this._progressLine=new br.default({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,C.defaults)({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(o)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,a=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],(0,C.each)(o,(function(t){var o=n.dataToCoord(t.value),s=a.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:(0,C.bind)(r._changeTimeline,r,t.value)},d=bx(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),(0,st.enableHoverEmphasis)(d);var p=(0,ot.getECData)(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var a=i.getData(),o=n.getViewLabels();this._tickLabels=[],(0,C.each)(o,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new $.default({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,C.bind)(r._changeTimeline,r,o),silent:!1,style:(0,lt.createTextStyle)(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=(0,lt.createTextStyle)(u),d.ensureState("progress").style=(0,lt.createTextStyle)(c),e.add(d),(0,st.enableHoverEmphasis)(d),_x(d).dataIndex=o,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,a=t.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=(0,v.parsePercent)((0,C.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,a=it.createIcon(t.get(["controlStyle",e]),i||{},new(0,Jr.default)(n[0],n[1],n[2],n[3]));return r&&a.setStyle(r),a}(i,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-a:0,rectHover:!0,style:o,onclick:l});h.ensureState("emphasis").style=s,e.add(h),(0,st.enableHoverEmphasis)(h)}}c(t.nextBtnPosition,"next",(0,C.bind)(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",(0,C.bind)(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",(0,C.bind)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=(0,C.bind)(s._handlePointerDrag,s),t.ondragend=(0,C.bind)(s._handlePointerDragend,s),Sx(t,s._progressLine,a,n,i,!0)},onUpdate:function(t){Sx(t,s._progressLine,a,n,i)}};this._currentPointer=bx(o,o,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=ct.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(e||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return it.applyTransform(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,a){var o=r.dataToCoord(n),s=Math.abs(o-t);s<i&&(i=s,e=a)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",_x(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(gx);function Ix(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,C.defaults)({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function Tx(t){var e=t&&t.timeline;C.isArray(e)||(e=e?[e]:[]),C.each(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),Cx(t),Ax(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});Ax(i,"position")||(i.position=t.controlPosition),"none"!==i.position||Ax(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}C.each(t.data||[],(function(t){C.isObject(t)&&!C.isArray(t)&&(!Ax(t,"value")&&Ax(t,"name")&&(t.value=t.name),Cx(t))}))}(t)}))}function Cx(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),a={normal:1,emphasis:1};C.each(i,(function(t,e){a[e]||Ax(r,e)||(r[e]=t)})),n.label&&!Ax(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function Ax(t,e){return t.hasOwnProperty(e)}C=a("2FIaD"),C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),a("dXBoT"),rt=a("jKUgc"),$=a("jud7h"),ot=a("5v9xk"),lt=a("c3Bep"),yr=a("3Q8SW"),pl=a("eWRYv"),Sl=a("2UHy9"),ko=a("bZ9NN");var Dx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,je.__extends)(e,t),e.type="title",e.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"}},e}(pl.default),Lx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),s=C.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),l=new $.default({style:(0,lt.createTextStyle)(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new $.default({style:(0,lt.createTextStyle)(a,{text:c,fill:a.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){(0,ko.windowOpen)(d,"_"+t.get("target"))})),p&&h.on("click",(function(){(0,ko.windowOpen)(p,"_"+t.get("subtarget"))})),(0,ot.getECData)(l).eventData=(0,ot.getECData)(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=(0,yr.getLayoutRect)(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));o||("middle"===(o=t.get("left")||t.get("right"))&&(o="center"),"right"===o?m.x+=m.width:"center"===o&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var v={align:o,verticalAlign:s};l.setStyle(v),h.setStyle(v),g=i.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new rt.default({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:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Sl.default);p=a("kyrfh"),je=a("lCvKW");var kx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="dataZoom.select",e}(gy),Ox=(je=a("lCvKW"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="dataZoom.select",e}(my));function Px(t){t.registerComponentModel(kx),t.registerComponentView(Ox),Ny(t)}je=a("lCvKW"),C=a("2FIaD");var Ex=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;C.each(this.option.feature,(function(t,n){var i=Jg(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),C.merge(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}((pl=a("eWRYv")).default);je=a("lCvKW"),C=a("2FIaD"),v=a("bv5ZD"),it=a("dXBoT"),st=a("4lzC1"),Ha=a("9xTlQ"),Hn=a("7aXlh"),Sl=a("2UHy9"),$e=a("jmxtG"),$=a("jud7h"),lt=a("c3Bep");var Rx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var a=+t.get("itemSize"),o="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];C.each(s,(function(t,e){u.push(e)})),new(0,Hn.default)(this._featureNames||[],u).add(c).update(c).remove(C.curry(c,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=(0,yr.getLayoutRect)(i,a,r);(0,yr.box)(e.get("orient"),t,e.get("itemGap"),o.width,o.height),(0,yr.positionElement)(t,i,a,r)}(r,t,n),r.add(rm(r.getBoundingRect(),t)),o||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!C.isFunction(l)&&e){var u=l.style||(l.style={}),c=v.getBoundingRect(e,$.default.makeFont(u)),h=t.x+r.x,d=!1;t.y+r.y+a+c.height>n.getHeight()&&(o.position="top",d=!0);var p=d?-5-c.height:a+10;h+c.width/2>n.getWidth()?(o.position=["100%",p],u.align="right"):h-c.width/2<0&&(o.position=[0,p],u.align="left")}}))}function c(c,h){var d,p=u[c],f=u[h],g=s[p],y=new(0,Ha.default)(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:y.option.onclick,featureName:p};else{var m=Jg(p);if(!m)return;d=new m}l[p]=d}else if(!(d=l[f]))return;d.uid=(0,$e.getUID)("toolbox-feature"),d.model=y,d.ecModel=e,d.api=n;var v=d instanceof jg;p||!f?!y.get("show")||v&&d.unusable?v&&d.remove&&d.remove(e,n):(function(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof jg&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};C.isString(p)?(u={})[l]=p:u=p,C.isString(f)?(c={})[l]=f:c=f;var g=i.iconPaths={};C.each(u,(function(l,u){var p=it.createIcon(l,{},{x:-a/2,y:-a/2,width:a,height:a});p.setStyle(h.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new(0,$.default)({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:(0,lt.getFont)({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(f),it.setTooltipConfig({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),i=o?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?st.enterEmphasis:st.leaveEmphasis)(p),r.add(p),p.on("click",C.bind(s.onclick,s,e,n,u)),g[u]=p}))}(y,d,p),y.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?st.enterEmphasis:st.leaveEmphasis)(i[t])},d instanceof jg&&d.render&&d.render(y,e,n,i)):v&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){C.each(this._features,(function(t){t instanceof jg&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){C.each(this._features,(function(n){n instanceof jg&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){C.each(this._features,(function(n){n instanceof jg&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Sl.default),Nx=(je=a("lCvKW"),qf=a("6rpCZ"),C=a("2FIaD"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),a=r?"svg":n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=qf.default.browser;if((0,C.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+a,l.target="_blank",l.href=o;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var c=o.split(","),h=c[0].indexOf("base64")>-1,d=r?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var v=m.contentWindow,x=v.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),v.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var _=n.get("lang"),b='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',S=window.open();S.document.write(b),S.document.title=i}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(jg)),Fx=(je=a("lCvKW"),ba=a("cATUV"),C=a("2FIaD"),Bn=a("2LuwV"),[["line","bar"],["stack"]]),Bx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return C.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(zx[n]){var a,o={series:[]};C.each(Fx,(function(t){C.indexOf(t,n)>=0&&C.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,a=zx[n](e,r,t,i);a&&(C.defaults(a,t.option),o.series.push(a));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,Bn.SINGLE_REFERRING).models[0].componentIndex;o[u]=o[u]||[];for(var h=0;h<=c;h++)o[u][c]=o[u][c]||{};o[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(a=C.merge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:o,newTitle:a,featureName:"magicType"})}},e}(jg),zx={line:function(t,e,n,i){if("bar"===t)return C.merge({id:e,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(t,e,n,i){if("line"===t)return C.merge({id:e,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(t,e,n,i){var r="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),C.merge({id:e,stack:r?"":"__ec_magicType_stack__"},i.get(["option","stack"])||{},!0)}};ba.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var Vx=Bx,Wx=(je=a("lCvKW"),ba=a("cATUV"),C=a("2FIaD"),_a=a("1DnBg"),new Array(60).join("-"));function Gx(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Hx=new RegExp("[\t]+","g");function Ux(t,e){var n=t.split(new RegExp("\n*"+Wx+"\n*","g")),i={series:[]};return C.each(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf("\t")>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=Gx(e.shift()).split(Hx),i=[],r=C.map(n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var o=Gx(e[a]).split(Hx);i.push(o.shift());for(var s=0;s<o.length;s++)r[s]&&(r[s].data[a]=o[s])}return{series:r,categories:i}}(t),a=e[n],o=a.axisDim+"Axis";a&&(i[o]=i[o]||[],i[o][a.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else r=function(t){for(var e=t.split(/\n+/g),n=Gx(e.shift()),i=[],r=0;r<e.length;r++){var a=Gx(e[r]);if(a){var o=a.split(Hx),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t),i.series.push(r)})),i}var Yx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var a=document.createElement("h4"),o=i.get("lang")||[];a.innerHTML=o[0]||i.get("title"),a.style.cssText="margin:10px 20px",a.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var a=r.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:C.filter([(n=r.seriesGroupByCategoryAxis,i=[],C.each(n,(function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,a=[" "].concat(C.map(t.series,(function(t){return t.name}))),o=[n.model.getCategories()];C.each(t.series,(function(t){var e=t.getRawData();o.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[a.join("\t")],l=0;l<o[0].length;l++){for(var u=[],c=0;c<o.length;c++)u.push(o[c][l]);s.push(u.join("\t"))}i.push(s.join("\n"))})),i.join("\n\n"+Wx+"\n\n")),(e=r.other,C.map(e,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o<t-1;o++)i[o]=arguments[o];n.push((a?a+"\t":"")+i.join("\t"))})),n.join("\n")})).join("\n\n"+Wx+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+Wx+"\n\n"),meta:r.meta}}(t);if(C.isFunction(u)){var d=u(e.getOption());C.isString(d)?s.innerHTML=d:C.isDom(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),v=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(r),x._dom=null}(0,_a.addEventListener)(m,"click",_),(0,_a.addEventListener)(v,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=C.isFunction(c)?c(s,e.getOption()):Ux(l.value,f)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),m.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=m.style.cssText=y,!i.get("readOnly")&&g.appendChild(v),g.appendChild(m),r.appendChild(a),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(jg);function Xx(t,e){return C.map(t,(function(t,n){var i=e&&e[n];if(C.isObject(i)&&!C.isArray(i)){C.isObject(t)&&!C.isArray(t)||(t={value:t});var r=null!=i.name&&null==t.name;return t=C.defaults(t,i),r&&delete t.name,t}return t}))}ba.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];C.each(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:Xx(t.data,r)})}else n.push(C.extend({type:"scatter"},t))})),e.mergeOption(C.defaults({series:n},t.newOption))}));var Kx=Yx,jx=(je=a("lCvKW"),ba=a("cATUV"),C=a("2FIaD"),Bn=a("2LuwV"),C.each),Zx=(0,Bn.makeInner)();function qx(t){var e=Zx(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Jx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.onclick=function(t,e){!function(t){Zx(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(jg);ba.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var Qx=Jx,$x=(je=a("lCvKW"),C=a("2FIaD"),Bn=a("2LuwV"),a("3BAh2")),e_=C.each,t_=(0,Bn.makeInternalComponentId)("toolbox-dataZoom_"),n_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,je.__extends)(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new cc(n.getZr()),this._brushController.on("brush",C.bind(this._onBrush,this)).mount()),function(t,e,n,i,r){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new Fg(r_(t),e,{include:["grid"]}).makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(o).enableBrush(!(!a||!o.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return qx(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){i_[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new Fg(r_(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=qx(t);jx(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var o=a.getPercentRange();n[0][i]={dataZoomId:i,start:o[0],end:o[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var a=e.getAxis(t),o=a.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,o,i),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=Ul(0,r.slice(),a.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];e_(t,(function(t,n){e.push(C.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(jg),i_={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=qx(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return jx(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function r_(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}(0,$x.registerInternalOptionCreator)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],a=r_(i),o=(0,Bn.parseFinder)(t,a);return e_(o.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),e_(o.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var a=t.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:t_+e+a};o[n]=a,r.push(o)}}));var a_=n_;p=a("kyrfh"),je=a("lCvKW");var o_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}((pl=a("eWRYv")).default);function s_(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function l_(t){if(qf.default.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}je=a("lCvKW"),C=a("2FIaD"),qf=a("6rpCZ"),C=a("2FIaD"),_a=a("1DnBg"),O=a("i1s7L"),qf=a("6rpCZ"),ko=a("bZ9NN"),ko=a("bZ9NN"),qf=a("6rpCZ");var u_=l_(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),c_=l_(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function h_(t,e){if(!t)return e;e=(0,ko.toCamelCase)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}so=a("eckBc");var d_=h_(c_,"transition"),p_=h_(u_,"transform"),f_="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(qf.default.transform3dSupported?"will-change:transform;":"");function g_(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!qf.default.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var a=qf.default.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+r+(a?",0":"")+")";return n?"top:0;left:0;"+p_+":"+o+";":[["top",0],["left",0],[u_,o]]}function y_(t,e,n){var i=[],r=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=(0,so.getPaddingFromTooltipModel)(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+d),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=qf.default.transformSupported?","+p_+i:",left"+i+",top"+i),d_+":"+r}(r,n)),a&&i.push("background-color:"+a),(0,C.each)(["width","color","radius"],(function(e){var n="border-"+e,r=(0,ko.toCamelCase)(n),a=t.get(r);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+r),(0,C.each)(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=h&&i.push("padding:"+(0,ko.normalizeCssArray)(h).join("px ")+"px"),i.join(";")+";"}function m_(t,e,n,i,r){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&(0,O.transformLocalCoord)(t,o,n,i,r)}else{t[0]=i,t[1]=r;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var v_=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,qf.default.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,a=r&&((0,C.isString)(r)?document.querySelector(r):(0,C.isDom)(r)?r:(0,C.isFunction)(r)&&r(t.getDom()));m_(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!o._enterable){var e=i.handler,n=i.painter.getViewportRoot();(0,_a.normalizeEvent)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(a="position",(o=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?a?o[a]:o:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,a,o,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=f_+y_(t,!this._firstShow,this._longHide)+g_(r[0],r[1],!0)+"border-color:"+(0,ko.convertToColorString)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var a=this.el;if(null!=t){var o="";if((0,C.isString)(r)&&"item"===n.get("trigger")&&!s_(n)&&(o=function(t,e,n){if(!(0,C.isString)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=(0,ko.convertToColorString)(e);var a,o,s="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=p_+":";(0,C.indexOf)(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var h=o*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),(0,C.isString)(t))a.innerHTML=t+o;else if(t){a.innerHTML="",(0,C.isArray)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,C.isDom)(t[s])&&t[s].parentNode!==a&&a.appendChild(t[s]);if(o&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=o,a.appendChild(l)}}}else a.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(m_(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=g_(n[0],n[1]);(0,C.each)(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",qf.default.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,C.bind)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();function x_(t){return Math.max(0,t)}function __(t){var e=x_(t.shadowBlur||0),n=x_(t.shadowOffsetX||0),i=x_(t.shadowOffsetY||0);return{left:x_(e-n),right:x_(e+n),top:x_(e-i),bottom:x_(e+i)}}function b_(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}C=a("2FIaD"),$=a("jud7h"),so=a("eckBc"),un=a("lgV6V");var S_=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),b_(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var a=this;C.isObject(t)&&(0,un.throwError)(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new(0,$.default)({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,so.getPaddingFromTooltipModel)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){a.el.style[t]=n.get(t)})),C.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){a.el.style[t]=o.get(t)||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}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=__(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;b_(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,a=x_(r.borderWidth||0),o=__(r);n.x=t+a+o.left,n.y=e+a+o.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(C.bind(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();ko=a("bZ9NN"),ct=a("lcKsG"),a("dXBoT"),rt=a("jKUgc"),yr=a("3Q8SW"),Ha=a("9xTlQ"),Gl=a("37xup"),Bn=a("2LuwV"),Sl=a("2UHy9");var w_=a("aXh1w"),M_=(ot=a("5v9xk"),Tm=a("ibUez"),so=a("eckBc"),wl=a("4XWEA"),ut=a("3deD8"),new(0,rt.default)({shape:{x:-1,y:-1,width:2,height:2}}));function I_(t,e,n){var i,r=e.ecModel;n?(i=new(0,Ha.default)(n,r,r),i=new(0,Ha.default)(e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ha.default&&(o=o.get("tooltip",!0)),(0,C.isString)(o)&&(o={formatter:o}),o&&(i=new(0,Ha.default)(o,i,r)))}return i}function T_(t,e){return t.dispatchAction||(0,C.bind)(e.dispatchAction,e)}function C_(t){return"center"===t||"middle"===t}var A_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){if(!qf.default.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=(0,Bn.getTooltipRenderMode)(n.get("renderMode"));this._tooltipContent="richText"===i?new S_(e):new v_(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!qf.default.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,ut.createOrUpdate)(this,"_updatePosition",50,"fixRate"):(0,ut.clear)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");$f("itemTooltip",this._api,(0,C.bind)((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!qf.default.node&&n.getDom()){var r=T_(i,n);this._ticket="";var a=i.dataByCoordSys,o=function(t,e,n){var i=(0,Bn.preParseFinder)(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var a,o=(0,Bn.queryReferringComponents)(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o)return n.getViewOfComponentModel(o).group.traverse((function(e){var n=(0,ot.getECData)(e).tooltipConfig;if(n&&n.name===t.name)return a=e,!0})),a?{componentMainType:r,componentIndex:o.componentIndex,el:a}:void 0}}(i,e,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=M_;l.x=i.x,l.y=i.y,l.update(),(0,ot.getECData)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=rg(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}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},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(T_(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s&&"axis"===I_([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,a;if("legend"===(0,ot.getECData)(n).ssrType)return;this._lastDataByCoordSys=null,(0,wl.findEventDispatcher)(n,(function(t){return null!=(0,ot.getECData)(t).dataIndex?(r=t,!0):null!=(0,ot.getECData)(t).tooltipConfig?(a=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,C.bind)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],a=I_([e.tooltipOption],i),o=this._renderMode,s=[],l=(0,so.createTooltipMarkup)("section",{blocks:[],noHeader:!0}),u=[],c=new(0,so.TooltipMarkupStyleCreator);(0,C.each)(t,(function(t){(0,C.each)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var a=Bf(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=(0,so.createTooltipMarkup)("section",{header:a,noHeader:!(0,C.trim)(a),sortBlocks:!0,blocks:[]});l.blocks.push(h),(0,C.each)(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Gl.getAxisRawValue(e.axis,{value:r}),f.axisValueLabel=a,f.marker=c.makeTooltipMarker("item",(0,ko.convertToColorString)(f.color),o);var g=(0,Tm.normalizeTooltipFormatResult)(d.formatTooltip(p,!0,null)),y=g.frag;if(y){var m=I_([d],i).get("valueFormatter");h.blocks.push(m?(0,C.extend)({valueFormatter:m},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=a.get("order"),p=(0,so.buildTooltipMarkup)(l,c,o,d,n.get("useUTC"),a.get("textStyle"));p&&u.unshift(p);var f="richText"===o?"\n\n":"<br/>",g=u.join(f);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=(0,ot.getECData)(e),a=r.seriesIndex,o=i.getSeriesByIndex(a),s=r.dataModel||o,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=I_([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new(0,so.TooltipMarkupStyleCreator);g.marker=y.makeTooltipMarker("item",(0,ko.convertToColorString)(g.color),h);var m=(0,Tm.normalizeTooltipFormatResult)(s.formatTooltip(l,!1,u)),v=p.get("order"),x=p.get("valueFormatter"),_=m.frag,b=_?(0,so.buildTooltipMarkup)(x?(0,C.extend)({valueFormatter:x},_):_,y,h,v,i.get("useUTC"),p.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=(0,ot.getECData)(e),r=i.tooltipConfig.option||{};(0,C.isString)(r)&&(r={content:r,formatter:r});var a=[r],o=this._ecModel.getComponent(i.componentMainType,i.componentIndex);o&&a.push(o),a.push({formatter:r.content});var s=t.positionDefault,l=I_(a,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new(0,so.TooltipMarkupStyleCreator);this._showOrMove(l,(function(){var n=(0,C.clone)(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");o=o||t.get("position");var h=e,d=this._getNearestPoint([r,a],n,t.get("trigger"),t.get("borderColor")).color;if(c)if((0,C.isString)(c)){var p=t.ecModel.get("useUTC"),f=(0,C.isArray)(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=(0,w_.format)(f.axisValue,h,p)),h=(0,ko.formatTpl)(h,n,!0)}else if((0,C.isFunction)(c)){var g=(0,C.bind)((function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,o),this._updatePosition(t,o,r,a,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,d,o),u.show(t,d),this._updatePosition(t,o,r,a,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,C.isArray)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,C.isArray)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),(0,C.isFunction)(e)&&(e=e([n,i],a,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),(0,C.isArray)(e))n=(0,ct.parsePercent)(e[0],s),i=(0,ct.parsePercent)(e[1],l);else if((0,C.isObject)(e)){var p=e;p.width=u[0],p.height=u[1];var f=(0,yr.getLayoutRect)(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if((0,C.isString)(e)&&o){var g=function(t,e,n,i){var r=n[0],a=n[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-r/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+o;break;case"left":s=e.x-r-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,a,o){var s=n.getSize(),l=s[0],u=s[1];return null!=a&&(t+l+a+2>i?t-=l+a:t+=a),null!=o&&(e+u+o>r?e-=u+o:e+=o),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=C_(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=C_(h)?u[1]/2:"bottom"===h?u[1]:0),s_(t)&&(g=function(t,e,n,i,r){var a=n.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&(0,C.each)(n,(function(n,a){var o=n.dataByAxis||[],s=(t[a]||{}).dataByAxis||[];(r=r&&o.length===s.length)&&(0,C.each)(o,(function(t,n){var a=s[n]||{},o=t.seriesDataIndices||[],l=a.seriesDataIndices||[];(r=r&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&o.length===l.length)&&(0,C.each)(o,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&(0,C.each)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],o=i[n];a&&o&&o.data!==a.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!qf.default.node&&e.getDom()&&((0,ut.clear)(this,"_updatePosition"),this._tooltipContent.dispose(),ng("itemTooltip",e))},e.type="tooltip",e}(Sl.default);C=a("2FIaD"),C=a("2FIaD"),un=a("lgV6V"),Om=a("foJ5h");var D_={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},L_=function(){function t(t){null==(this._condVal=(0,C.isString)(t)?new RegExp(t):(0,C.isRegExp)(t)?t:null)&&(0,un.throwError)("")}return t.prototype.evaluate=function(t){var e=typeof t;return(0,C.isString)(e)?this._condVal.test(t):!!(0,C.isNumber)(e)&&this._condVal.test(t+"")},t}(),k_=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),O_=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),P_=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),E_=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),R_=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function N_(t,e){if(!0===t||!1===t){var n=new k_;return n.value=t,n}return B_(t)||(0,un.throwError)(""),t.and?F_("and",t,e):t.or?F_("or",t,e):t.not?function(t,e){var n=t.not;B_(n)||(0,un.throwError)("");var i=new E_;return i.child=N_(n,e),i.child||(0,un.throwError)(""),i}(t,e):function(t,e){for(var n=e.prepareGetValue(t),i=[],r=(0,C.keys)(t),a=t.parser,o=a?(0,Om.getRawValueParser)(a):null,s=0;s<r.length;s++){var l=r[s];if("parser"!==l&&!e.valueGetterAttrMap.get(l)){var u=(0,C.hasOwn)(D_,l)?D_[l]:l,c=t[l],h=o?o(c):c,d=(0,Om.createFilterComparator)(u,h)||"reg"===u&&new L_(h);d||(0,un.throwError)(""),i.push(d)}}i.length||(0,un.throwError)("");var p=new R_;return p.valueGetterParam=n,p.valueParser=o,p.getValue=e.getValue,p.subCondList=i,p}(t,e)}function F_(t,e,n){var i=e[t];(0,C.isArray)(i)||(0,un.throwError)(""),i.length||(0,un.throwError)("");var r="and"===t?new O_:new P_;return r.children=(0,C.map)(i,(function(t){return N_(t,n)})),r.children.length||(0,un.throwError)(""),r}function B_(t){return(0,C.isObject)(t)&&!(0,C.isArrayLike)(t)}var z_=function(){function t(t,e){this._cond=N_(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();C=a("2FIaD"),un=a("lgV6V");var V_={type:"echarts:filter",transform:function(t){for(var e,n,i,r=t.upstream,a=(n=t.config,i={valueGetterAttrMap:(0,C.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;(0,C.hasOwn)(t,"dimension")||(0,un.throwError)("");var n=r.getDimensionInfo(e);return n||(0,un.throwError)(""),{dimIdx:n.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new z_(n,i)),o=[],s=0,l=r.count();s<l;s++)e=r.getRawDataItem(s),a.evaluate()&&o.push(e);return{data:o}}},W_=(cn=a("1tAq5"),un=a("lgV6V"),C=a("2FIaD"),Bn=a("2LuwV"),Om=a("foJ5h"),{type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=(0,Bn.normalizeToArray)(n);r.length||(0,un.throwError)(i);var a=[];(0,C.each)(r,(function(t){var n=t.dimension,r=t.order,o=t.parser,s=t.incomparable;null==n&&(0,un.throwError)(i),"asc"!==r&&"desc"!==r&&(0,un.throwError)(i),s&&"min"!==s&&"max"!==s&&(0,un.throwError)(""),"asc"!==r&&"desc"!==r&&(0,un.throwError)("");var l=e.getDimensionInfo(n);l||(0,un.throwError)(i);var u=o?(0,Om.getRawValueParser)(o):null;o&&!u&&(0,un.throwError)(i),a.push({dimIdx:l.index,parser:u,comparator:new(0,Om.SortOrderComparator)(r,s)})}));var o=e.sourceFormat;o!==cn.SOURCE_FORMAT_ARRAY_ROWS&&o!==cn.SOURCE_FORMAT_OBJECT_ROWS&&(0,un.throwError)(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<a.length;i++){var r=a[i],o=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(o=r.parser(o),s=r.parser(s));var l=r.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:s}}});p=a("kyrfh"),je=a("lCvKW"),C=a("2FIaD"),je=a("lCvKW"),C=a("2FIaD"),C=a("2FIaD");var G_={get:function(t,e,n){var i=C.clone((H_[t]||{})[e]);return n&&C.isArray(i)?i[i.length-1]:i}},H_={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]}},U_=G_,Y_=(Bn=a("2LuwV"),ct=a("lcKsG"),pl=a("eWRYv"),$h.mapVisual),X_=$h.eachVisual,K_=C.isArray,j_=C.each,Z_=ct.asc,q_=ct.linearMap,J_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(0,je.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&xg(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=C.bind(t,this),this.controllerVisuals=vg(this.option.controller,e,t),this.targetVisuals=vg(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Bn.normalizeToArray(t),e},e.prototype.eachTargetSeries=function(t,e){C.each(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,a=r.precision,o=this.dataBound,s=r.formatter;n=n||["<",">"],C.isArray(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return C.isString(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):C.isFunction(s)?i?s(t[0],t[1]):s(t):i?t[0]===o[0]?n[0]+" "+l[1]:t[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===o[0]?"min":t===o[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=Z_([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],a=t.getDimensionInfo(r);if(!a.isCalculationCoord)return a.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});C.merge(i,n),C.merge(r,n);var a=this.isCategory();function o(n){K_(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}o.call(this,i),o.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},j_(i,(function(t,e){if($h.isValidType(e)){var n=U_.get(e,"inactive",a);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";j_(this.stateList,(function(o){var s=this.itemSize,l=t[o];l||(l=t[o]={color:a?i:[i]}),null==l.symbol&&(l.symbol=e&&C.clone(e)||(a?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&C.clone(n)||(a?s[0]:[s[0],s[0]])),l.symbol=Y_(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;X_(u,(function(t){t>c&&(c=t)})),l.symbolSize=Y_(u,(function(t){return q_(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(pl.default),Q_=(ct=a("lcKsG"),$e=a("jmxtG"),[20,140]);function $_(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],a=[],o=0;o<=200&&r<n[1];o++)a.push(r),r+=i;return a.push(n[1]),a}var eb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=Q_[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=Q_[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):C.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),C.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ct.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=$_(this,"outOfRange",this.getExtent()),n=$_(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,o=0,s=n.length,l=e.length;o<l&&(!n.length||e[o]<=n[0]);o++)e[o]<n[a]&&r(e[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&i.length&&r(n[a],"outOfRange"),r(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<e[o])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[o],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,$e.inheritDefaultOption)(J_.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)"}}),e}(J_);je=a("lCvKW"),C=a("2FIaD"),So=a("8BJkx"),_a=a("1DnBg"),je=a("lCvKW"),C=a("2FIaD"),a("dXBoT"),rt=a("jKUgc"),ko=a("bZ9NN"),yr=a("3Q8SW");var tb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,je.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=ko.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new(0,rt.default)({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:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,a={};if("color"===e){var o=r.get("contentColor");a.color=o}function s(t){return a[t]}function l(t,e){a[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],c=$h.prepareVisualTypes(u);return C.each(c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),$h.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;yr.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}((Sl=a("2UHy9")).default);a("dXBoT"),rt=a("jKUgc"),it=a("dXBoT"),ur=a("dVgap"),tt=a("2IUoL"),$=a("jud7h"),ct=a("lcKsG"),C=a("2FIaD"),yr=a("3Q8SW");var nb=[["left","right","width"],["top","bottom","height"]];function ib(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var a={width:e.getWidth(),height:e.getHeight()},o="horizontal"===i.orient?1:0,s=nb[o],l=[0,null,10],u={},c=0;c<3;c++)u[nb[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][o],d=(0,yr.getLayoutRect)(u,a,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function rb(t,e){return C.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}Bn=a("2LuwV"),v=a("bv5ZD"),st=a("4lzC1"),Ki=a("2ZiWs"),m=a("kbAoh"),ot=a("5v9xk"),lt=a("c3Bep"),wl=a("4XWEA");var ab=ct.linearMap,ob=C.each,sb=Math.min,lb=Math.max;function ub(t,e,n,i){return new ur.default({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){_a.stop(t.event)},ondragend:i})}function cb(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function hb(t){return"vertical"===t?"ns-resize":"ew-resize"}var db=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,je.__extends)(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=C.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=C.bind(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new $.default({style:(0,lt.createTextStyle)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,a=this._useHandle,o=ib(e,this.api,i),s=n.mainGroup=this._createBarGroup(o),l=new tt.default;s.add(l),l.add(n.outOfRange=ub()),l.add(n.inRange=ub(null,a?hb(this._orient):null,C.bind(this._dragHandle,this,"all",!1),C.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new rt.default({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=lb(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,a){var o=C.bind(this._dragHandle,this,n,!1),s=C.bind(this._dragHandle,this,n,!0),l=(0,v.parsePercent)(t.get("handleSize"),i[0]),u=(0,Ki.createSymbol)(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=hb(this._orient);u.attr({cursor:c,draggable:!0,drift:o,ondragend:s,onmousemove:function(t){_a.stop(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,st.setAsHighDownDispatcher)(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new $.default({cursor:c,draggable:!0,drift:o,onmousemove:function(t){_a.stop(t.event)},ondragend:s,style:(0,lt.createTextStyle)(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,i,r){var a=(0,v.parsePercent)(t.get("indicatorSize"),n[0]),o=(0,Ki.createSymbol)(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(o instanceof m.default){var l=o.style;o.useStyle(C.extend({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);e.add(o);var u=this.visualMapModel.textStyleModel,c=new $.default({silent:!0,invisible:!0,style:(0,lt.createTextStyle)(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:6)+n[0]/2,0],d=this._shapes;d.indicator=o,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():cb(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[ab(e[0],n,i,!0),ab(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Ul(e,i,r,t,0);var a=n.getExtent();this._dataInterval=[ab(i[0],r,a,!0),ab(i[1],r,a,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],a=t?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,r),o=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,o);return{barColor:new(0,So.default)(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var a=t[0]+i*r;if(a>t[1])break;n.push({color:this.getControllerVisual(a,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new tt.default("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,a=n.handleLabels,o=i.itemSize,s=i.getExtent();ob([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=ab(t[l],[0,o[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/o[0],u.x=o[0]-h/2;var d=it.applyTransform(n.handleLabelPoints[l],it.getTransform(u,this.group));a[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)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=ab(t,a,s,!0),p=o[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=it.applyTransform(l.indicatorLabelPoint,it.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:v?m:"middle",align:v?"center":m});var x={x:p,y:d,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=sb(lb(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],a=n.getExtent();t=sb(lb(r[0],t),r[1]);var o=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");return r&&(i=ab(r,e,n,!0)/2),i}(n,a,r),s=[t-o,t+o],l=ab(t,r,a,!0),u=[ab(s[0],r,a,!0),ab(s[1],r,a,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var c=this._hoverLinkDataIndices,h=[];(e||cb(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Bn.compressBatches(c,h);this._dispatchHighDown("downplay",rb(d[0],n)),this._dispatchHighDown("highlight",rb(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,wl.findEventDispatcher)(t.target,(function(t){var n=(0,ot.getECData)(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),a=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",rb(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=it.getTransform(e,i?null:this.group);return C.isArray(t)?it.applyTransform(t,r,n):it.transformDirection(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(tb),pb={type:"selectDataRange",event:"dataRangeSelected",update:"update"},fb=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},gb=(C=a("2FIaD"),gg=a("9kZyL"),[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i,r,a,o,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,a=C.bind(e.getValueState,e),o=e.getDataDimensionIndex(t.getData()),s={},C.each(i,(function(t){var e=$h.prepareVisualTypes(r[t]);s[t]=e})),{progress:function(t,e){var n,i;function l(t){return(0,gg.getItemVisualFromData)(e,i,t)}function u(t,n){(0,gg.setItemVisualFromData)(e,i,t,n)}null!=o&&(n=e.getDimensionIndex(o));for(var c=e.getStore();null!=(i=t.next());){var h=e.getRawDataItem(i);if(!h||!1!==h.visualMap)for(var d=null!=o?c.get(n,i):i,p=a(d),f=r[p],g=s[p],y=0,m=g.length;y<m;y++){var v=g[y];f[v]&&f[v].applyVisual(d,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(C.bind(yb,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(r.dimension=a,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}]);function yb(t,e,n,i){for(var r=e.targetVisuals[i],a=$h.prepareVisualTypes(r),o={color:(0,gg.getVisualFromData)(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return o.color;function h(t){return o[t]}function d(t,e){o[t]=e}}C=a("2FIaD");var mb=(C=a("2FIaD")).each;function vb(t){var e=t&&t.visualMap;C.isArray(e)||(e=e?[e]:[]),mb(e,(function(t){if(t){xb(t,"splitList")&&!xb(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&C.isArray(e)&&mb(e,(function(t){C.isObject(t)&&(xb(t,"start")&&!xb(t,"min")&&(t.min=t.start),xb(t,"end")&&!xb(t,"max")&&(t.max=t.end))}))}}))}function xb(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var _b=!1;function bb(t){_b||(_b=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(pb,fb),(0,C.each)(gb,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(vb))}function Sb(t){t.registerComponentModel(eb),t.registerComponentView(db),bb(t)}je=a("lCvKW"),C=a("2FIaD"),ct=a("lcKsG"),$e=a("jmxtG");var wb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,je.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Mb[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=C.clone(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=C.map(this._pieceList,(function(t){return t=C.clone(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=$h.listVisualTypes(),r=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}C.each(e.pieces,(function(t){C.each(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),C.each(n,(function(t,n){var i=!1;C.each(this.stateList,(function(t){i=i||a(e,t,n)||a(e.target,t,n)}),this),!i&&C.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=U_.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,C.each(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var a=!1;C.each(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(a?r[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=C.clone(t)},e.prototype.getValueState=function(t){var e=$h.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],a=i.getData();a.each(this.getDataDimensionIndex(a),(function(e,i){$h.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),(a=r[r.length-1].interval[1])!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var o=-1/0;return C.each(r,(function(t){var e=t.interval;e&&(e[0]>o&&s([o,e[0]],"outOfRange"),s(e.slice()),o=e[1])}),this),{stops:e,outerColors:n}}function s(r,a){var o=i.getRepresentValue({interval:r});a||(a=i.getValueState(o));var s=t(o,a);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,$e.inheritDefaultOption)(J_.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}),e}(J_),Mb={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var a=(i[1]-i[0])/r;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<r;s+=a,o++){var l=o===r-1?i[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),(0,ct.reformIntervals)(t),C.each(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;C.each(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),Ib(e,t)},pieces:function(t){var e=this.option;C.each(e.pieces,(function(e,n){C.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var a=i.interval=[],o=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==a[c];d++)a[c]=e[h[d]],o[c]=s[d],u[c]=2===d;null==a[c]&&(a[c]=l[c])}u[0]&&a[1]===1/0&&(o[0]=0),u[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(i.value=a[0])}i.visual=$h.retrieveVisuals(e),t.push(i)}),this),Ib(e,t),(0,ct.reformIntervals)(t),C.each(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function Ib(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var Tb=wb,Cb=(je=a("lCvKW"),C=a("2FIaD"),tt=a("2IUoL"),$=a("jud7h"),Ki=a("2ZiWs"),yr=a("3Q8SW"),lt=a("c3Bep"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,je.__extends)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),a=i.getTextColor(),o=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=C.retrieve(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,o),C.each(l.viewPieceList,(function(i){var l=i.piece,u=new tt.default;u.onclick=C.bind(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new $.default({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:r,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,o),yr.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:rb(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return ib(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var a=new tt.default,o=this.visualMapModel.textStyleModel;a.add(new $.default({style:(0,lt.createTextStyle)(o,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=C.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add((0,Ki.createSymbol)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=C.clone(n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(r[a]=!0,C.each(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(tb));function Ab(t){t.registerComponentModel(Tb),t.registerComponentView(Cb),bb(t)}var Db=a("afLms"),Lb=(Ze=a("gGiC4"),C=a("2FIaD"),Oa=a("ibBA5"),y=a("isgWw"),C=a("2FIaD"),Dr=a("jkyg0"),ls=a("60Kwm"),V=a("lnAL9"),ta=a("2WfwC"),Jr=a("lV62k"),sr=a("NBRFu"),C=a("2FIaD"),ur=a("dVgap"),rt=a("jKUgc"),at=a("92sM9"),Oa=a("ibBA5"),(W=a("hpPau")).default.CMD);function kb(t,e){return Math.abs(t-e)<1e-5}function Ob(t){var e,n,i,r,a,o=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){kb(t,i)&&kb(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,a,o){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*a+i,g=h*o+r,y=d*a+i,m=p*o+r,v=a*l*u,x=o*l*u;e.push(f-v*h,g+x*c,y+v*p,m-x*d,y,m)}for(var y=0;y<s;){var m=o[y++],v=1===y;switch(v&&(h=u=o[y],d=c=o[y+1],m!==Lb.L&&m!==Lb.C&&m!==Lb.Q||(e=[h,d])),m){case Lb.M:u=h=o[y++],c=d=o[y++],p(h,d);break;case Lb.L:f(u,c,n=o[y++],i=o[y++]),u=n,c=i;break;case Lb.C:e.push(o[y++],o[y++],o[y++],o[y++],u=o[y++],c=o[y++]);break;case Lb.Q:n=o[y++],i=o[y++],r=o[y++],a=o[y++],e.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),a+2/3*(i-a),r,a),u=r,c=a;break;case Lb.A:var x=o[y++],_=o[y++],b=o[y++],S=o[y++],C=o[y++],w=o[y++]+C;y+=1;var M=!o[y++];n=Math.cos(C)*b+x,i=Math.sin(C)*S+_,v?p(h=n,d=i):f(u,c,n,i),u=Math.cos(w)*b+x,c=Math.sin(w)*S+_;for(var I=(M?-1:1)*Math.PI/2,T=C;M?T>w:T<w;T+=I)g(T,M?Math.max(T+I,w):Math.min(T+I,w),x,_,b,S);break;case Lb.R:h=u=o[y++],d=c=o[y++],n=h+o[y++],i=d+o[y++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case Lb.Z:e&&f(u,c,h,d),u=h,c=d}}return e&&e.length>2&&l.push(e),l}function Pb(t,e,n,i,r,a,o,s,l,u){if(kb(t,n)&&kb(e,i)&&kb(r,o)&&kb(a,s))l.push(o,s);else{var c=2/u,h=c*c,d=o-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,y=i-e,m=r-o,v=a-s,x=g*g+y*y,_=m*m+v*v;if(x<h&&_<h)l.push(o,s);else{var b=d*g+p*y,S=-d*m-p*v;if(x-b*b<h&&b>=0&&_-S*S<h&&S>=0)l.push(o,s);else{var C=[],w=[];(0,Oa.cubicSubdivide)(t,n,r,o,.5,C),(0,Oa.cubicSubdivide)(e,i,a,s,.5,w),Pb(C[0],w[0],C[1],w[1],C[2],w[2],C[3],w[3],l,u),Pb(C[4],w[4],C[5],w[5],C[6],w[6],C[7],w[7],l,u)}}}}function Eb(t,e){var n=Ob(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var a=n[r],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],h=a[u++],d=a[u++],p=a[u++],f=a[u++],g=a[u++];Pb(s,l,c,h,d,p,f,g,o,e),s=f,l=g}i.push(o)}return i}function Rb(t,e,n){var i=t[e],r=t[1-e],a=Math.abs(i/r),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=n-o*s;if(c>0)for(u=0;u<c;u++)l[u%o]+=1;return l}function Nb(t,e,n){for(var i=t.r0,r=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*r,u=r-i,c=l>Math.abs(u),h=Rb([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var y={};c?(y.startAngle=a+d*p,y.endAngle=a+d*(p+1),y.r0=i+f*g,y.r=i+f*(g+1)):(y.startAngle=a+f*g,y.endAngle=a+f*(g+1),y.r0=i+d*p,y.r=i+d*(p+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function Fb(t,e,n,i){return t*i-n*e}function Bb(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=Fb(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=Fb(t-r,e-a,c,h)/d;return p<0||p>1?null:new(0,sr.default)(p*l+t,p*u+e)}function zb(t,e,n){var i=new(0,sr.default);sr.default.sub(i,n,e),i.normalize();var r=new(0,sr.default);return sr.default.sub(r,t,e),r.dot(i)}function Vb(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Wb(t){var e=t.points,n=[],i=[];(0,ta.fromPoints)(e,n,i);var r=new(0,Jr.default)(n[0],n[1],i[0]-n[0],i[1]-n[1]),a=r.width,o=r.height,s=r.x,l=r.y,u=new(0,sr.default),c=new(0,sr.default);return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),function(t,e,n){for(var i=t.length,r=[],a=0;a<i;a++){var o=t[a],s=t[(a+1)%i],l=Bb(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:zb(l,e,n),pt:l,idx:a})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(a=u.idx+1;a<=c.idx;a++)Vb(f,t[a].slice());for(Vb(f,p),Vb(f,d),a=c.idx+1;a<=u.idx+i;a++)Vb(g,t[a%i].slice());return Vb(g,d),Vb(g,p),[{points:f},{points:g}]}(e,u,c)}function Gb(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),a=t(e);Gb(t,a[0],r,i),Gb(t,a[1],n-r,i)}return i}function Hb(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,a=i>r,o=Rb([i,r],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",h=t[s]/o.length,d=0;d<o.length;d++)for(var p=t[l]/o[d],f=0;f<o[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=rt.default;break;case"sector":Nb(r,e,i),n=at.default;break;case"circle":Nb({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=at.default;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=(0,C.map)(Eb(t.getUpdatedPathProxy(),o),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)Gb(Wb,{points:s[0]},e,i);else if(l===e)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=(0,C.map)(s,(function(t){var e=[],n=[];(0,ta.fromPoints)(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*e);f<0||(Gb(Wb,{points:p.poly},f,i),d-=f)}}n=ur.default}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push((0,ls.clonePath)(t));return n}(t,e);var g,y,m=[];for(u=0;u<i.length;u++){var v=new n;v.setShape(i[u]),g=t,(y=v).setStyle(g.style),y.z=g.z,y.z2=g.z2,y.zlevel=g.zlevel,m.push(v)}return m}function Ub(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],a=[],o=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],d=l,p=2;p<s;){var f=o[p-2],g=o[p-1],y=o[p++],m=o[p++],v=o[p++],x=o[p++],_=o[p++],b=o[p++];if(d<=0)h.push(y,m,v,x,_,b);else{for(var S=Math.min(d,c-1)+1,C=1;C<=S;C++){var w=C/S;(0,Oa.cubicSubdivide)(f,y,v,_,w,r),(0,Oa.cubicSubdivide)(g,m,x,b,w,a),f=r[3],g=a[3],h.push(r[1],a[1],r[2],a[2],f,g),y=r[5],m=a[5],v=r[6],x=a[6]}d-=S-1}}return o===t?[h,e]:[t,h]}function Yb(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],a=[],o=0;o<e.length;)a[o++]=i,a[o++]=r;return a}function Xb(t){for(var e=0,n=0,i=0,r=t.length,a=0,o=r-2;a<r;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function Kb(t,e,n,i){for(var r=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],y=e[d]-i[0]-f,m=e[d+1]-i[1]-g;h+=y*y+m*m}h<a&&(a=h,o=u)}return o}function jb(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function Zb(t){return t.__isCombineMorphing}function qb(t,e,n){var i="__mOriginal_"+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var a=n.replace,o=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=a?a.apply(this,e):r.apply(this,e),o&&o.apply(this,e),t}}function Jb(t,e){var n="__mOriginal_"+e;t[n]&&(t[e]=t[n],t[n]=null)}function Qb(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var a=i[r],o=i[r+1];i[r++]=e[0]*a+e[2]*o+e[4],i[r++]=e[1]*a+e[3]*o+e[5]}}function $b(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(i=c=(n=Ub(l,u))[0],r=h=n[1]):(h=Yb(r||l,l),c=l):(c=Yb(i||u,u),h=u),a.push(c),o.push(h)}return[a,o]}(Ob(n),Ob(i)),a=r[0],o=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&Qb(a,s),l&&Qb(o,l),qb(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,i){for(var r,a=[],o=0;o<t.length;o++){var s=t[o],l=e[o],u=Xb(s),c=Xb(l);null==r&&(r=u[2]<0!=c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],y=s.length;r&&(s=jb(s));for(var m=6*Kb(s,l,u,c),v=y-2,x=0;x<v;x+=2){var _=(m+x)%v+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}h[0]=s[m]-u[0],h[1]=s[m+1]-u[1];for(var b=i/10,S=-i/2;S<=i/2;S+=b){var C=Math.sin(S),w=Math.cos(S),M=0;for(x=0;x<s.length;x+=2){var I=h[x],T=h[x+1],A=l[x]-c[0],D=l[x+1]-c[1],L=A*w-D*C,k=A*C+D*w;g[x]=L,g[x+1]=k;var O=L-I,P=k-T;M+=O*O+P*P}if(M<f){f=M,p=S;for(var E=0;E<g.length;E++)d[E]=g[E]}}a.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return a}(a,o,0,Math.PI),c=[];qb(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],a=0;a<u.length;a++){var o=u[a],s=o.from,l=o.to,h=o.rotation*n,d=o.fromCp,p=o.toCp,f=Math.sin(h),g=Math.cos(h);(0,Dr.lerp)(r,d,p,n);for(var y=0;y<s.length;y+=2){var m=s[y],v=s[y+1],x=m*i+(C=l[y])*n,_=v*i+(w=l[y+1])*n;c[y]=x*g-_*f+r[0],c[y+1]=x*f+_*g+r[1]}var b=c[0],S=c[1];for(t.moveTo(b,S),y=2;y<s.length;){var C=c[y++],w=c[y++],M=c[y++],I=c[y++],T=c[y++],A=c[y++];b===C&&S===w&&M===T&&I===A?t.lineTo(T,A):t.bezierCurveTo(C,w,M,I,T,A),b=T,S=A}}}})}function eS(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return $b(t,e),e.__morphT=0,e.animateTo({__morphT:1},(0,C.defaults)({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){Jb(e,"buildPath"),Jb(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function tS(t,e,n,i,r,a){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=a===i?0:Math.round(32767*(e-i)/(a-i));for(var o,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),o=t,t=e,e=o)}return s}function nS(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,a=(0,C.map)(t,(function(t){var a=t.getBoundingRect(),o=t.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return(0,C.map)(a,(function(a,o){return{cp:a,z:tS(a[0],a[1],e,n,i,r),path:t[o]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function iS(t){return Hb(t.path,t.count)}function rS(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];Zb(r)?t(r.childrenRef()):r instanceof y.default&&i.push(r)}}(t);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var a=(n.dividePath||iS)({path:e,count:r});if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=nS(i),a=nS(a);for(var o=n.done,s=n.during,l=n.individualDelay,u=new(0,V.default),c=0;c<r;c++){var h=i[c],d=a[c];d.parent=e,d.copyTransform(u),l||$b(h,d)}function p(t){for(var e=0;e<a.length;e++)a[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Jb(e,"addSelfToZr"),Jb(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return a},qb(e,"addSelfToZr",{after:function(t){p(t)}}),qb(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<a.length;e++)a[e].removeSelfFromZr(t)}});var g=a.length;if(l){var m=g,v=function(){0==--m&&(f(),o&&o())};for(c=0;c<g;c++){var x=l?(0,C.defaults)({delay:(n.delay||0)+l(c,g,i[c],a[c]),done:v},n):n;eS(i[c],a[c],x)}}else e.__morphT=0,e.animateTo({__morphT:1},(0,C.defaults)({during:function(t){for(var n=0;n<g;n++){var i=a[n];i.__morphT=e.__morphT,i.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)Jb(t[e],"updateTransform");o&&o()}},n));return e.__zr&&p(e.__zr),{fromIndividuals:i,toIndividuals:a,count:g}}function aS(t,e,n){var i=e.length,r=[],a=n.dividePath||iS;if(Zb(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];Zb(i)?t(i.childrenRef()):i instanceof y.default&&r.push(i)}}(t.childrenRef());var o=r.length;if(o<i)for(var s=0,l=o;l<i;l++)r.push((0,ls.clonePath)(r[s++%o]));r.length=i}else{r=a({path:t,count:i});var u=t.getComputedTransform();for(l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=nS(r),e=nS(e);var c=n.individualDelay;for(l=0;l<i;l++){var h=c?(0,C.defaults)({delay:(n.delay||0)+c(l,i,r[l],e[l])},n):n;eS(r[l],e[l],h)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}function oS(t){return(0,C.isArray)(t[0])}function sS(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var a=e[r].length,o=void 0;for(o=0;o<a;o++)n[o%i].many.push(e[r][o])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[r].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}ls=a("60Kwm"),a("dXBoT"),y=a("isgWw"),C=a("2FIaD"),nt=a("kJ7of"),ls=a("60Kwm");var lS={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=(0,ls.clonePath)(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function uS(t,e,n,i,r,a){if(t.length&&e.length){var o=(0,nt.getAnimationConfig)("update",i,r);if(o&&o.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},o);oS(t)&&(s=t,l=e),oS(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?sS(l,s):sS(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)y(d[f],h,g,p),g+=d[f].many.length}}function y(t,e,i,r,o){var s=t.many,l=t.one;if(1!==s.length||o)for(var h=(0,C.defaults)({dividePath:lS[n],individualDelay:u&&function(t,e,n,a){return u(t+i,r)}},c),d=e?rS(s,l,h):aS(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,m=0;m<g;m++)v=u?(0,C.defaults)({delay:u(m,g)},c):c,a(p[m],f[m],e?s[m]:t.one,e?t.one:s[m],v);else{var v,x=e?s[0]:l,_=e?l:s[0];Zb(x)?y({many:[x],one:_},!0,i,r,!0):(eS(x,_,v=u?(0,C.defaults)({delay:u(i,r)},c):c),a(x,_,x,_,v))}}}function cS(t){if(!t)return[];if((0,C.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(cS(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof y.default&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}y=a("isgWw"),nt=a("kJ7of"),Hn=a("7aXlh"),Bn=a("2LuwV"),un=a("lgV6V"),nt=a("kJ7of"),jn=a("77M3u");var hS=(0,Bn.makeInner)();function dS(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r){var a=function(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var a=t.get(i.name,e);return r&&r.categories[a]||a+""}}(t,e,r);return a}var o=t.getRawDataItem(e),s=i?"childGroupId":"groupId";return o&&o[s]?o[s]+"":i?void 0:n||t.getId(e)}function pS(t){var e=[];return(0,C.each)(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),a=0;a<r.length;a++)e.push({data:n,groupId:dS(n,a,i,!1),childGroupId:dS(n,a,i,!0),divide:t.divide,dataIndex:a})})),e}function fS(t,e,n){t.traverse((function(t){t instanceof y.default&&(0,nt.initProps)(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function gS(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function yS(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function mS(t,e,n){var i=pS(t),r=pS(e);function a(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?(0,C.extend)((0,C.extend)({},n.style),t.style):t.style},r)}var o=!1,s=0,l=(0,C.createHashMap)(),u=(0,C.createHashMap)();i.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=1;break}var d=r[c].childGroupId;if(d&&l.get(d)){s=2;break}}function p(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],a=e[i];if(r.data.getId(r.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}(i,r),g={};if(!f)for(c=0;c<r.length;c++){var m=r[c],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function x(t,e){var n=i[e],s=r[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(yS(c),u?(yS(u),gS(u),o=!0,uS(cS(u),cS(c),s.divide,l,t,a)):fS(c,l,t)):c&&function(t,e,n){var i=(0,nt.getAnimationConfig)("update",n,e);i&&t.traverse((function(t){if(t instanceof jn.default){var e=(0,nt.getOldStyle)(t);e&&t.animateFrom({style:e},i)}}))}(c,s.dataIndex,l)}new(0,Hn.default)(i,r,p(!0,f),p(!1,f),null,"multiple").update(x).updateManyToOne((function(t,e){var n=r[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=(0,C.filter)((0,C.map)(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(yS(u),c.length?((0,C.each)(c,(function(t){yS(t),gS(t)})),o=!0,uS(cS(c),cS(u),n.divide,l,t,a)):fS(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=(0,C.filter)((0,C.map)(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==s})),u=r[t[0]].data.hostModel;l.length&&((0,C.each)(l,(function(t){return yS(t)})),s?(yS(s),gS(s),o=!0,uS(cS(s),cS(l),n.divide,u,t[0],a)):(0,C.each)(l,(function(e){return fS(e,u,t[0])})))}})).updateManyToMany((function(t,e){new(0,Hn.default)(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){x(t[n],e[i])})).execute()})).execute(),o&&(0,C.each)(e,(function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=(0,nt.getAnimationConfig)("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(t){t instanceof y.default&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function vS(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function xS(t){return(0,C.isArray)(t)?t.sort().join(","):t}function _S(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bS(t,e){for(var n=0;n<t.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}(0,p.use)([f.install]),(0,p.use)([function(t){t.registerPainter("svg",He)}]),(0,p.use)([function(t){t.registerChartView(Go),t.registerSeriesModel(vo),t.registerLayout(rr("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ke("line"))},function(t){t.registerChartView(Ht),t.registerSeriesModel(et),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,C.curry(Ue.layout,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,Ue.createProgressiveLayout)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ke("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(eh),t.registerSeriesModel(nh),(0,dl.createLegacyDataSelectAction)("pie",t.registerAction),t.registerLayout((0,C.curry)(Kc,"pie")),t.registerProcessor(vr("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!((0,C.isNumber)(i)&&!isNaN(i)&&i<0)}))}})},function(t){(0,p.use)(zd),t.registerSeriesModel(td),t.registerChartView(ad),t.registerLayout(rr("scatter"))},function(t){(0,p.use)(bh),t.registerChartView(sh),t.registerSeriesModel(lh),t.registerLayout(ih),t.registerProcessor(vr("radar")),t.registerPreprocessor(oh)},function(t){(0,p.use)(Tl),t.registerChartView(ll),t.registerSeriesModel(ul),t.registerLayout(hl),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,cl),(0,dl.createLegacyDataSelectAction)("map",t.registerAction)},function(t){t.registerChartView(Ap),t.registerSeriesModel(Lp),t.registerLayout(Pp),t.registerVisual(Ep),Rp(t)},function(t){t.registerSeriesModel(Vp),t.registerChartView(ef),t.registerVisual(nf),t.registerLayout(yf),Fp(t)},function(t){t.registerChartView(Ga),t.registerSeriesModel(uo),t.registerProcessor(Ir),t.registerVisual(Tr),t.registerVisual(Ar),t.registerLayout(zr),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Kr),t.registerLayout(qr),t.registerCoordinateSystem("graphView",{dimensions:ea.dimensions,create:na}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},C.noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},C.noop),t.registerAction(po,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=ho(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},function(t){t.registerChartView(wr),t.registerSeriesModel(Mr)},function(t){t.registerChartView(pr),t.registerSeriesModel(gr),t.registerLayout(mr),t.registerProcessor(vr("funnel"))},function(t){(0,p.use)(_c),t.registerChartView(kl),t.registerSeriesModel(Pl),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Rl)},function(t){t.registerChartView(Ih),t.registerSeriesModel(Th),t.registerLayout(Ch),t.registerVisual(ed),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(Jt),t.registerChartView(an),t.registerLayout(sn),t.registerTransform(hn)},function(t){t.registerChartView(Mn),t.registerSeriesModel(Tn),t.registerPreprocessor(Cn),t.registerVisual(En),t.registerLayout(Fn)},function(t){t.registerChartView(ar),t.registerSeriesModel(or),t.registerLayout(rr("effectScatter"))},function(t){t.registerChartView(Qo),t.registerSeriesModel(ns),t.registerLayout(Jo),t.registerVisual(rs)},function(t){t.registerChartView(yo),t.registerSeriesModel(mo)},function(t){t.registerChartView(Wc),t.registerSeriesModel(Gc),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,(0,C.curry)(Ue.layout,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,Ue.createProgressiveLayout)("pictorialBar"))},function(t){t.registerChartView(ap),t.registerSeriesModel(op),t.registerLayout(sp),t.registerProcessor(vr("themeRiver"))},function(t){t.registerChartView(Kd),t.registerSeriesModel(ep),t.registerLayout((0,C.curry)(np,"sunburst")),t.registerProcessor((0,C.curry)(vr,"sunburst")),t.registerVisual(rp),Xd(t)},function(t){t.registerChartView(Di),t.registerSeriesModel(Gn)}]),(0,p.use)((function(t){(0,p.use)(zd),(0,p.use)(dg)})),(0,p.use)((function(t){(0,p.use)(dg),Cd.registerAxisPointerClass("PolarAxisPointer",cv),t.registerCoordinateSystem("polar",Tv),t.registerComponentModel(hv),t.registerComponentView(Uv),hu(t,"angle",pv,Gv),hu(t,"radius",fv,Hv),t.registerComponentView(Pv),t.registerComponentView(Bv),t.registerLayout((0,C.curry)(Wv,"bar"))})),(0,p.use)(Tl),(0,p.use)((function(t){(0,p.use)(dg),Cd.registerAxisPointerClass("SingleAxisPointer",cx),t.registerComponentView(hx),t.registerComponentView(qv),t.registerComponentModel(Qv),hu(t,"single",Qv,Qv.defaultOption),t.registerCoordinateSystem("single",ix)})),(0,p.use)(_c),(0,p.use)((function(t){t.registerComponentModel(ty),t.registerComponentView(iy),t.registerCoordinateSystem("calendar",ay)})),(0,p.use)((function(t){t.registerComponentModel(Zy),t.registerComponentView(Qy),t.registerPreprocessor((function(t){var e=t.graphic;(0,C.isArray)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),(0,p.use)((function(t){t.registerComponentModel(Ex),t.registerComponentView(Rx),qg("saveAsImage",Nx),qg("magicType",Vx),qg("dataView",Kx),qg("dataZoom",a_),qg("restore",Qx),(0,p.use)(Px)})),(0,p.use)((function(t){(0,p.use)(dg),t.registerComponentModel(o_),t.registerComponentView(A_),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},C.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},C.noop)})),(0,p.use)(dg),(0,p.use)((function(t){t.registerComponentView(Yg),t.registerComponentModel(Kg),t.registerPreprocessor(fg),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Vg),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},C.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},C.noop),qg("brush",$g)})),(0,p.use)((function(t){t.registerComponentModel(Dx),t.registerComponentView(Lx)})),(0,p.use)((function(t){t.registerComponentModel(fx),t.registerComponentView(Mx),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Ix(t),t.registerPreprocessor(Tx)})),(0,p.use)((function(t){t.registerComponentModel(av),t.registerComponentView(sv),t.registerPreprocessor((function(t){Im(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),(0,p.use)((function(t){t.registerComponentModel(Jm),t.registerComponentView(rv),t.registerPreprocessor((function(t){Im(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),(0,p.use)((function(t){t.registerComponentModel(km),t.registerComponentView(qm),t.registerPreprocessor((function(t){Im(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),(0,p.use)((function(t){(0,p.use)(ym),(0,p.use)(Mm)})),(0,p.use)((function(t){(0,p.use)(Fy),(0,p.use)(Uy)})),(0,p.use)(Fy),(0,p.use)(Uy),(0,p.use)((function(t){(0,p.use)(Sb),(0,p.use)(Ab)})),(0,p.use)(Sb),(0,p.use)(Ab),(0,p.use)((function(t){t.registerPreprocessor(Tf),t.registerVisual(t.PRIORITY.VISUAL.ARIA,If)})),(0,p.use)((function(t){t.registerTransform(V_),t.registerTransform(W_)})),(0,p.use)(oy.install),(0,p.use)((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(0,C.each)((0,Bn.normalizeToArray)(n.seriesTransition),(function(t){(0,C.each)((0,Bn.normalizeToArray)(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][Ze.SERIES_UNIVERSAL_TRANSITION_PROP]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=hS(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)(0,C.each)((0,Bn.normalizeToArray)(r),(function(t){!function(t,e,n,i){var r=[],a=[];(0,C.each)((0,Bn.normalizeToArray)(t.from),(function(t){var n=bS(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:_S(e.oldData[n]),groupIdDim:t.dimension})})),(0,C.each)((0,Bn.normalizeToArray)(t.to),(function(t){var i=bS(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();a.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:_S(r),groupIdDim:t.dimension})}})),r.length>0&&a.length>0&&mS(r,a,i)}(t,i,n,e)}));else{var a=function(t,e){var n=(0,C.createHashMap)(),i=(0,C.createHashMap)(),r=(0,C.createHashMap)();return(0,C.each)(t.oldSeries,(function(e,n){var a=t.oldDataGroupIds[n],o=t.oldData[n],s=vS(e),l=xS(s);i.set(l,{dataGroupId:a,data:o}),(0,C.isArray)(s)&&(0,C.each)(s,(function(t){r.set(t,{key:l,dataGroupId:a,data:o})}))})),(0,C.each)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),o=vS(t),s=xS(o),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:_S(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:_S(a),data:a}]});else if((0,C.isArray)(o)){var u=[];(0,C.each)(o,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:_S(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:a,divide:_S(a)}]})}else{var c=r.get(o);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_S(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:a,divide:_S(a)})}}}})),n}(i,n);(0,C.each)(a.keys(),(function(t){var n=a.get(t);mS(n.oldSeries,n.newSeries,e)}))}(0,C.each)(n.updatedSeries,(function(t){t[Ze.SERIES_UNIVERSAL_TRANSITION_PROP]&&(t[Ze.SERIES_UNIVERSAL_TRANSITION_PROP]=!1)}))}for(var o=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],c=0;c<o.length;c++){var h=o[c].getData();h.count()<1e4&&(s.push(o[c]),l.push(o[c].get("dataGroupId")),u.push(h))}}))})),(0,p.use)(Db.installLabelLayout),ba=a("cATUV"),a("aivKh"),ba=a("cATUV");var SS=a("aieqh"),wS=a("68oIq"),MS=a("fi1vT"),IS=a("7FaTO");a("aivKh");var TS=a("ci7l3");SS=a("aieqh"),Yt=a("hpTXA"),TS.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(t){return{fill:t.get("color")}},visualDrawType:"fill",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var n=SS.createDimensions(t.data,{coordDimensions:["value"]}),i=new Yt.default(n,this);return i.initData(t.data),i},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{fontWeight:"normal"}}}),a("aivKh"),TS=a("ci7l3");var CS=a("ljBIR");SS=a("aieqh"),TS.extendChartView({type:"wordCloud",render:function(t,e,n){var i=this.group;i.removeAll();var r=t.getData(),a=t.get("gridSize");t.layoutInstance.ondraw=function(e,n,o,s){var l=r.getItemModel(o),u=l.getModel("textStyle"),c=new CS.Text({style:SS.createTextStyle(u),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});c.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:e,verticalAlign:"middle",fill:r.getItemVisual(o,"style").fill,fontSize:n}),i.add(c),r.setItemGraphicEl(o,c),c.ensureState("emphasis").style=SS.createTextStyle(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),c.ensureState("blur").style=SS.createTextStyle(l.getModel(["blur","textStyle"]),{state:"blur"}),SS.enableHoverEmphasis(c,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),c.stateTransition={duration:t.get("animation")?t.get(["stateAnimation","duration"]):0,easing:t.get(["stateAnimation","easing"])},c.__highDownDispatcher=!0},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e="zero-timeout-message";return window.addEventListener("message",(function(n){if("string"==typeof n.data&&n.data.substr(0,e.length)===e){n.stopImmediatePropagation();var i=parseInt(n.data.substr(e.length),36);t[i]&&(t[i](),t[i]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(n){var i=t.length;return t.push(n),window.postMessage(e+i.toString(36),"*"),i}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var AS=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!!(e.getImageData&&e.fillText&&Array.prototype.some&&Array.prototype.push)}(),DS=function(){if(AS){for(var t,e,n=document.createElement("canvas").getContext("2d"),i=20;i;){if(n.font=i.toString(10)+"px sans-serif",n.measureText("W").width===t&&n.measureText("m").width===e)return i+1;t=n.measureText("W").width,e=n.measureText("m").width,i--}return 0}}(),LS=function(t){for(var e,n,i=t.length;i;e=Math.floor(Math.random()*i),n=t[--i],t[i]=t[e],t[e]=n);return t},kS=function(t,e){if(AS){Array.isArray(t)||(t=[t]),t.forEach((function(e,n){if("string"==typeof e){if(t[n]=document.getElementById(e),!t[n])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."}));var n={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var i in e)i in n&&(n[i]=e[i]);if("function"!=typeof n.weightFactor){var r=n.weightFactor;n.weightFactor=function(t){return t*r}}if("function"!=typeof n.shape)switch(n.shape){case"circle":default:n.shape="circle";break;case"cardioid":n.shape=function(t){return 1-Math.sin(t)};break;case"diamond":case"square":n.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":n.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":n.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":n.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":n.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}n.gridSize=Math.max(Math.floor(n.gridSize),4);var a,o,s,l,u,c,h,d=n.gridSize,p=d-n.maskGapWidth,f=Math.abs(n.maxRotation-n.minRotation),g=Math.min(n.maxRotation,n.minRotation),y=n.rotationStep;switch(n.color){case"random-dark":h=function(){return L(10,50)};break;case"random-light":h=function(){return L(50,90)};break;default:"function"==typeof n.color&&(h=n.color)}var m=null;"function"==typeof n.classes&&(m=n.classes);var v,x=!1,_=[],b=function(t){var e,n,i=t.currentTarget,r=i.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,n=t.touches[0].clientY):(e=t.clientX,n=t.clientY);var a=e-r.left,o=n-r.top,s=Math.floor(a*(i.width/r.width||1)/d),l=Math.floor(o*(i.height/r.height||1)/d);return _[s][l]},S=function(t){var e=b(t);v!==e&&(v=e,e?n.hover(e.item,e.dimension,t):n.hover(void 0,void 0,t))},C=function(t){var e=b(t);e&&(n.click(e.item,e.dimension,t),t.preventDefault())},w=[],M=function(t){if(w[t])return w[t];var e=8*t,i=e,r=[];for(0===t&&r.push([l[0],l[1],0]);i--;){var a=1;"circle"!==n.shape&&(a=n.shape(i/e*2*Math.PI)),r.push([l[0]+t*a*Math.cos(-i/e*2*Math.PI),l[1]+t*a*Math.sin(-i/e*2*Math.PI)*n.ellipticity,i/e*2*Math.PI])}return w[t]=r,r},I=function(){return n.abortThreshold>0&&(new Date).getTime()-c>n.abortThreshold},T=function(e,n,i,r,l){e>=o||n>=s||e<0||n<0||(a[e][n]=!1,i&&t[0].getContext("2d").fillRect(e*d,n*d,p,p),x&&(_[e][n]={item:l,dimension:r}))},A=function(e){var i,r,l;Array.isArray(e)?(i=e[0],r=e[1]):(i=e.word,r=e.weight,l=e.attributes);var c=0===n.rotateRatio||Math.random()>n.rotateRatio?0:0===f?g:g+Math.round(Math.random()*f/y)*y,p=function(t,e,i){var r=n.weightFactor(e);if(r<=n.minSize)return!1;var a=1;r<DS&&(a=function(){for(var t=2;t*r<DS;)t+=2;return t}());var o=document.createElement("canvas"),s=o.getContext("2d",{willReadFrequently:!0});s.font=n.fontWeight+" "+(r*a).toString(10)+"px "+n.fontFamily;var l=s.measureText(t).width/a,u=Math.max(r*a,s.measureText("m").width,s.measureText("W").width)/a,c=l+2*u,h=3*u,p=Math.ceil(c/d),f=Math.ceil(h/d);c=p*d,h=f*d;var g=-l/2,y=.4*-u,m=Math.ceil((c*Math.abs(Math.sin(i))+h*Math.abs(Math.cos(i)))/d),v=Math.ceil((c*Math.abs(Math.cos(i))+h*Math.abs(Math.sin(i)))/d),x=v*d,_=m*d;o.setAttribute("width",x),o.setAttribute("height",_),s.scale(1/a,1/a),s.translate(x*a/2,_*a/2),s.rotate(-i),s.font=n.fontWeight+" "+(r*a).toString(10)+"px "+n.fontFamily,s.fillStyle="#000",s.textBaseline="middle",s.fillText(t,g*a,(y+.5*r)*a);var b=s.getImageData(0,0,x,_).data;if(I())return!1;for(var S,C,w,M=[],T=v,A=[m/2,v/2,m/2,v/2];T--;)for(S=m;S--;){w=d;t:for(;w--;)for(C=d;C--;)if(b[4*((S*d+w)*x+(T*d+C))+3]){M.push([T,S]),T<A[3]&&(A[3]=T),T>A[1]&&(A[1]=T),S<A[0]&&(A[0]=S),S>A[2]&&(A[2]=S);break t}}return{mu:a,occupied:M,bounds:A,gw:v,gh:m,fillTextOffsetX:g,fillTextOffsetY:y,fillTextWidth:l,fillTextHeight:u,fontSize:r}}(i,r,c);if(!p)return!1;if(I())return!1;if(!n.drawOutOfBound){var v=p.bounds;if(v[1]-v[3]+1>o||v[2]-v[0]+1>s)return!1}for(var _=u+1,b=function(f){var g=Math.floor(f[0]-p.gw/2),y=Math.floor(f[1]-p.gh/2);return p.gw,p.gh,!!function(t,e,i,r,l){for(var u=l.length;u--;){var c=t+l[u][0],h=e+l[u][1];if(c>=o||h>=s||c<0||h<0){if(!n.drawOutOfBound)return!1}else if(!a[c][h])return!1}return!0}(g,y,0,0,p.occupied)&&(function(e,i,r,a,o,s,l,u,c){var p,f,g=r.fontSize;p=h?h(a,o,g,s,l):n.color,f=m?m(a,o,g,s,l):n.classes;var y=r.bounds;y[3],y[0],y[1],y[3],y[2],y[0],t.forEach((function(t){if(t.getContext){var o=t.getContext("2d"),s=r.mu;o.save(),o.scale(1/s,1/s),o.font=n.fontWeight+" "+(g*s).toString(10)+"px "+n.fontFamily,o.fillStyle=p,o.translate((e+r.gw/2)*d*s,(i+r.gh/2)*d*s),0!==u&&o.rotate(-u),o.textBaseline="middle",o.fillText(a,r.fillTextOffsetX*s,(r.fillTextOffsetY+.5*g)*s),o.restore()}else{var l=document.createElement("span"),h="";h="rotate("+-u/Math.PI*180+"deg) ",1!==r.mu&&(h+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var y={position:"absolute",display:"block",font:n.fontWeight+" "+g*r.mu+"px "+n.fontFamily,left:(e+r.gw/2)*d+r.fillTextOffsetX+"px",top:(i+r.gh/2)*d+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:g+"px",whiteSpace:"nowrap",transform:h,webkitTransform:h,msTransform:h,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var m in p&&(y.color=p),l.textContent=a,y)l.style[m]=y[m];if(c)for(var v in c)l.setAttribute(v,c[v]);f&&(l.className+=f),t.appendChild(l)}}))}(g,y,p,i,r,u-_,f[2],c,l),function(e,i,r,a,l,u){var c,h,p=l.occupied,f=n.drawMask;if(f&&((c=t[0].getContext("2d")).save(),c.fillStyle=n.maskColor),x){var g=l.bounds;h={x:(e+g[3])*d,y:(i+g[0])*d,w:(g[1]-g[3]+1)*d,h:(g[2]-g[0]+1)*d}}for(var y=p.length;y--;){var m=e+p[y][0],v=i+p[y][1];m>=o||v>=s||m<0||v<0||T(m,v,f,h,u)}f&&c.restore()}(g,y,0,0,p,e),{gx:g,gy:y,rot:c,info:p})};_--;){var S=M(u-_);n.shuffle&&(S=[].concat(S),LS(S));for(var C=0;C<S.length;C++){var w=b(S[C]);if(w)return w}}return null},D=function(e,n,i){if(n)return!t.some((function(t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,!0,n,i||{}),!t.dispatchEvent(r)}),this);t.forEach((function(t){var r=document.createEvent("CustomEvent");r.initCustomEvent(e,!0,n,i||{}),t.dispatchEvent(r)}),this)};!function(){var e=t[0];if(e.getContext)o=Math.ceil(e.width/d),s=Math.ceil(e.height/d);else{var i=e.getBoundingClientRect();o=Math.ceil(i.width/d),s=Math.ceil(i.height/d)}if(D("wordcloudstart",!0)){var r,h,p,f,g;if(l=n.origin?[n.origin[0]/d,n.origin[1]/d]:[o/2,s/2],u=Math.floor(Math.sqrt(o*o+s*s)),a=[],!e.getContext||n.clearCanvas)for(t.forEach((function(t){if(t.getContext){var e=t.getContext("2d");e.fillStyle=n.backgroundColor,e.clearRect(0,0,o*(d+1),s*(d+1)),e.fillRect(0,0,o*(d+1),s*(d+1))}else t.textContent="",t.style.backgroundColor=n.backgroundColor,t.style.position="relative"})),r=o;r--;)for(a[r]=[],h=s;h--;)a[r][h]=!0;else{var y=document.createElement("canvas").getContext("2d");y.fillStyle=n.backgroundColor,y.fillRect(0,0,1,1);var m,b,w=y.getImageData(0,0,1,1).data,M=e.getContext("2d").getImageData(0,0,o*d,s*d).data;for(r=o;r--;)for(a[r]=[],h=s;h--;){b=d;t:for(;b--;)for(m=d;m--;)for(p=4;p--;)if(M[4*((h*d+b)*o*d+(r*d+m))+p]!==w[p]){a[r][h]=!1;break t}!1!==a[r][h]&&(a[r][h]=!0)}M=y=w=void 0}if(n.hover||n.click){for(x=!0,r=o+1;r--;)_[r]=[];n.hover&&e.addEventListener("mousemove",S),n.click&&(e.addEventListener("click",C),e.addEventListener("touchstart",C),e.addEventListener("touchend",(function(t){t.preventDefault()})),e.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),e.addEventListener("wordcloudstart",(function t(){e.removeEventListener("wordcloudstart",t),e.removeEventListener("mousemove",S),e.removeEventListener("click",C),v=void 0}))}p=0;var T=!0;n.layoutAnimation?0!==n.wait?(f=window.setTimeout,g=window.clearTimeout):(f=window.setImmediate,g=window.clearImmediate):(f=function(t){t()},g=function(){T=!1});var L=function(e,n){t.forEach((function(t){t.removeEventListener(e,n)}),this)},k=function t(){L("wordcloudstart",t),g(O)};!function(e,n){t.forEach((function(t){t.addEventListener("wordcloudstart",n)}),this)}(0,k);var O=(n.layoutAnimation?f:setTimeout)((function t(){if(T){if(p>=n.list.length)return g(O),D("wordcloudstop",!1),void L("wordcloudstart",k);c=(new Date).getTime();var e=A(n.list[p]),i=!D("wordclouddrawn",!0,{item:n.list[p],drawn:e});if(I()||i)return g(O),n.abort(),D("wordcloudabort",!1),D("wordcloudstop",!1),void L("wordcloudstart",k);p++,O=f(t,n.wait)}}),n.wait)}}()}function L(t,e){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(e-t)+t).toFixed()+"%)"}};kS.isSupported=AS,kS.minFontSize=DS;var OS=kS;if(!OS.isSupported)throw new Error("Sorry your browser not support wordCloud");ba.registerLayout((function(t,e){t.eachSeriesByType("wordCloud",(function(n){var i=SS.getLayoutRect(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),r=n.getData(),a=document.createElement("canvas");a.width=i.width,a.height=i.height;var o=a.getContext("2d"),s=n.get("maskImage");if(s)try{o.drawImage(s,0,0,a.width,a.height),function(t){for(var e=t.getContext("2d"),n=e.getImageData(0,0,t.width,t.height),i=e.createImageData(n),r=0,a=0,o=0;o<n.data.length;o+=4)n.data[o+3]>128&&(r+=l=n.data[o]+n.data[o+1]+n.data[o+2],++a);var s=r/a;for(o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2];n.data[o+3]<128||l>s?(i.data[o]=0,i.data[o+1]=0,i.data[o+2]=0,i.data[o+3]=0):(i.data[o]=255,i.data[o+1]=255,i.data[o+2]=255,i.data[o+3]=255)}e.putImageData(i,0,0)}(a)}catch(t){console.error("Invalid mask image"),console.error(t.toString())}var l=n.get("sizeRange"),u=n.get("rotationRange"),c=r.getDataExtent("value"),h=Math.PI/180,d=n.get("gridSize");function p(t){var e=t.detail.item;t.detail.drawn&&n.layoutInstance.ondraw&&(t.detail.drawn.gx+=i.x/d,t.detail.drawn.gy+=i.y/d,n.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}OS(a,{list:r.mapArray("value",(function(t,e){var n=r.getItemModel(e);return[r.getName(e),n.get("textStyle.fontSize",!0)||wS.linearMap(t,c,l),e]})).sort((function(t,e){return e[1]-t[1]})),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||t.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||t.get("textStyle.fontWeight"),gridSize:d,ellipticity:i.height/i.width,minRotation:u[0]*h,maxRotation:u[1]*h,clearCanvas:!s,rotateRatio:1,rotationStep:n.get("rotationStep")*h,drawOutOfBound:n.get("drawOutOfBound"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),a.addEventListener("wordclouddrawn",p),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){a.removeEventListener("wordclouddrawn",p),a.addEventListener("wordclouddrawn",(function(t){t.preventDefault()}))}}}))})),ba.registerPreprocessor((function(t){var e=(t||{}).series;!MS.isArray(e)&&(e=e?[e]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function i(t){t&&MS.each(n,(function(e){t.hasOwnProperty(e)&&(t["text"+IS.capitalFirst(e)]=t[e])}))}MS.each(e,(function(t){if(t&&"wordCloud"===t.type){var e=t.textStyle||{};i(e.normal),i(e.emphasis)}}))}));var PS,ES,RS={};PS=RS,ES=function(t,e){e.registerLocale("DE",{time:{month:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthAbbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayOfWeekAbbr:["So","Mo","Di","Mi","Do","Fr","Sa"]},legend:{selector:{all:"Alle",inverse:"Invertiert"}},toolbox:{brush:{title:{rect:"Box Auswahl",polygon:"Lasso Auswahl",lineX:"Horizontale Auswahl",lineY:"Vertikale Auswahl",keep:"Bereich Auswahl",clear:"Auswahl zurücksetzen"}},dataView:{title:"Daten Ansicht",lang:["Daten Ansicht","Schließen","Aktualisieren"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom zurücksetzen"}},magicType:{title:{line:"Zu Liniendiagramm wechseln",bar:"Zu Balkendiagramm wechseln",stack:"Stapel",tiled:"Kachel"}},restore:{title:"Wiederherstellen"},saveAsImage:{title:"Als Bild speichern",lang:["Rechtsklick zum Speichern des Bildes"]}},series:{typeNames:{pie:"Tortendiagramm",bar:"Balkendiagramm",line:"Liniendiagramm",scatter:"Streudiagramm",effectScatter:"Welligkeits-Streudiagramm",radar:"Radar-Karte",tree:"Baum",treemap:"Baumkarte",boxplot:"Boxplot",candlestick:"Kerzenständer",k:"K Liniendiagramm",heatmap:"Heatmap",map:"Karte",parallel:"Parallele Koordinatenkarte",lines:"Liniendiagramm",graph:"Beziehungsgrafik",sankey:"Sankey-Diagramm",funnel:"Trichterdiagramm",gauge:"Meßanzeige",pictorialBar:"Bildlicher Balken",themeRiver:"Thematische Flusskarte",sunburst:"Sonnenausbruch",custom:"Graficu persunalizatu",chart:"Diagramm"}},aria:{general:{withTitle:'Dies ist ein Diagramm über "{title}"',withoutTitle:"Dies ist ein Diagramm"},series:{single:{prefix:"",withName:" mit Typ {seriesType} namens {seriesName}.",withoutName:" mit Typ {seriesType}."},multiple:{prefix:". Es besteht aus {seriesCount} Serienzählung.",withName:" Die Serie {seriesId} ist ein {seriesType} welcher {seriesName} darstellt.",withoutName:" Die {seriesId}-Reihe ist ein {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Die Daten sind wie folgt: ",partialData:"Die ersten {displayCnt} Elemente sind: ",withName:"die Daten für {name} sind {value}",withoutName:"{value}",separator:{middle:",",end:"."}}}})},"function"==typeof define&&define.amd?define(["exports","echarts"],ES):ES(0,"string"!=typeof RS.nodeName?a("aivKh"):PS.echarts);var NS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof NS.nodeName?e(NS,a("aivKh")):e({},t.echarts)}(NS,(function(t,e){e.registerLocale("EN",{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:". "}}}})}));var FS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof FS.nodeName?e(FS,a("aivKh")):e({},t.echarts)}(FS,(function(t,e){e.registerLocale("ES",{time:{month:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthAbbr:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayOfWeek:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayOfWeekAbbr:["dom","lun","mar","mie","jue","vie","sáb"]},legend:{selector:{all:"Todas",inverse:"Inversa"}},toolbox:{brush:{title:{rect:"Selección de cuadro",polygon:"Selección de lazo",lineX:"Seleccionar horizontalmente",lineY:"Seleccionar verticalmente",keep:"Mantener selección",clear:"Despejar selecciones"}},dataView:{title:"Ver datos",lang:["Ver datos","Cerrar","Actualizar"]},dataZoom:{title:{zoom:"Zoom",back:"Restablecer zoom"}},magicType:{title:{line:"Cambiar a gráfico de líneas",bar:"Cambiar a gráfico de barras",stack:"Pila",tiled:"Teja"}},restore:{title:"Restaurar"},saveAsImage:{title:"Guardar como imagen",lang:["Clic derecho para guardar imagen"]}},series:{typeNames:{pie:"Gráfico circular",bar:"Gráfico de barras",line:"Gráfico de líneas",scatter:"Diagrama de dispersión",effectScatter:"Diagrama de dispersión de ondas",radar:"Gráfico de radar",tree:"Árbol",treemap:"Mapa de árbol",boxplot:"Diagrama de caja",candlestick:"Gráfico de velas",k:"Gráfico de líneas K",heatmap:"Mapa de calor",map:"Mapa",parallel:"Mapa de coordenadas paralelas",lines:"Gráfico de líneas",graph:"Gráfico de relaciones",sankey:"Diagrama de Sankey",funnel:"Gráfico de embudo",gauge:"Medidor",pictorialBar:"Gráfico de barras pictóricas",themeRiver:"Mapa de río temático",sunburst:"Sunburst",custom:"Gráfico personalizado",chart:"Gráfico"}},aria:{general:{withTitle:"Este es un gráfico sobre “{title}”",withoutTitle:"Este es un gráfico"},series:{single:{prefix:"",withName:" con tipo {seriesType} llamado {seriesName}.",withoutName:" con tipo {seriesType}."},multiple:{prefix:". Consta de {seriesCount} series.",withName:" La serie {seriesId} es un {seriesType} que representa {seriesName}.",withoutName:" La serie {seriesId} es un {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Los datos son los siguientes: ",partialData:"Los primeros {displayCnt} elementos son: ",withName:"los datos para {name} son {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}})}));var BS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof BS.nodeName?e(BS,a("aivKh")):e({},t.echarts)}(BS,(function(t,e){e.registerLocale("FI",{time:{month:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],monthAbbr:["tammik","helmik","maalisk","huhtik","toukok","kesäk","heinäk","elok","syysk","lokak","marrask","jouluk"],dayOfWeek:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],dayOfWeekAbbr:["su","ma","ti","ke","to","pe","la"]},legend:{selector:{all:"Kaikki",inverse:"Käänteinen"}},toolbox:{brush:{title:{rect:"Laatikko valinta",polygon:"Lasso valinta",lineX:"Vaakataso valinta",lineY:"Pysty valinta",keep:"Pidä valinta",clear:"Poista valinta"}},dataView:{title:"Data näkymä",lang:["Data näkymä","Sulje","Päivitä"]},dataZoom:{title:{zoom:"Zoomaa",back:"Zoomin nollaus"}},magicType:{title:{line:"Vaihda Viivakaavioon",bar:"Vaihda palkkikaavioon",stack:"Pinoa",tiled:"Erottele"}},restore:{title:"Palauta"},saveAsImage:{title:"Tallenna kuvana",lang:["Paina oikeaa hiirennappia tallentaaksesi kuva"]}},series:{typeNames:{pie:"Ympyrädiagrammi",bar:"Pylväsdiagrammi",line:"Viivakaavio",scatter:"Pisteplot",effectScatter:"Ripple-pisteplot",radar:"Sädekaavio",tree:"Puu",treemap:"Tilastoaluekartta",boxplot:"Viivadiagrammi",candlestick:"Kynttiläkaavio",k:"K-linjakaavio",heatmap:"Lämpökartta",map:"Kartta",parallel:"Rinnakkaiskoordinaattikartta",lines:"Viivakuvaaja",graph:"Suhdekuvaaja",sankey:"Sankey-kaavio",funnel:"Suppilokaavio",gauge:"Mittari",pictorialBar:"Kuvallinen pylväs",themeRiver:"Teemajokikartta",sunburst:"Auringonkehä",custom:"Mukautettu kaavio",chart:"Kaavio"}},aria:{general:{withTitle:"Tämä on kaavio “{title}”",withoutTitle:"Tämä on kaavio"},series:{single:{prefix:"",withName:" tyyppiä {seriesType} nimeltään {seriesName}.",withoutName:" tyyppiä {seriesType}."},multiple:{prefix:". Se koostuu {seriesCount} sarjasta.",withName:" Sarja {seriesId} on {seriesType}, joka edustaa {seriesName}.",withoutName:" Sarja {seriesId} on {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Tiedot ovat seuraavat: ",partialData:"Ensimmäiset {displayCnt} kohtaa ovat: ",withName:"tiedot nimelle {name} ovat {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}})}));var zS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof zS.nodeName?e(zS,a("aivKh")):e({},t.echarts)}(zS,(function(t,e){e.registerLocale("FR",{time:{month:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthAbbr:["Jan","Fév","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Déc"],dayOfWeek:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayOfWeekAbbr:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},legend:{selector:{all:"Tout",inverse:"Inverse"}},toolbox:{brush:{title:{rect:"Sélection rectangulaire",polygon:"Sélection au lasso",lineX:"Sélectionner horizontalement",lineY:"Sélectionner verticalement",keep:"Garder la sélection",clear:"Effacer la sélection"}},dataView:{title:"Visualisation des données",lang:["Visualisation des données","Fermer","Rafraîchir"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Remise à zéro"}},magicType:{title:{line:"Changer pour Ligne",bar:"Changer pour Histogramme",stack:"Superposition",tiled:"Tuile"}},restore:{title:"Restaurer"},saveAsImage:{title:"Sauvegarder l'image",lang:["Clic droit pour sauvegarder l'image"]}},series:{typeNames:{pie:"Camembert",bar:"Histogramme",line:"Ligne",scatter:"Nuage de points",effectScatter:"Nuage de points stylisé",radar:"Radar",tree:"Arbre",treemap:"Treemap",boxplot:"Boîte à moustaches",candlestick:"Chandelier",k:"Linéaire K",heatmap:"Carte de fréquentation",map:"Carte",parallel:"Données parallèles",lines:"Lignes",graph:"Graphe",sankey:"Sankey",funnel:"Entonnoir",gauge:"Jauge",pictorialBar:"Barres à images",themeRiver:"Stream Graph",sunburst:"Sunburst",custom:"Graphique personnalisé",chart:"Graphique"}},aria:{general:{withTitle:'Cette carte est intitulée "{title}"',withoutTitle:"C'est une carte"},series:{single:{prefix:"",withName:" Avec le type de {seriesType} qui s'appelle {seriesName}.",withoutName:" Avec le type de {seriesType}."},multiple:{prefix:" Elle comprend {seriesCount} séries.",withName:" La série {seriesId} représente {seriesName} de {seriesType}.",withoutName:" La série {seriesId} est un/une {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Les données sont: ",partialData:"Les premiers {displayCnt} éléments sont : ",withName:"Les données pour {name} sont {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}})}));var VS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof VS.nodeName?e(VS,a("aivKh")):e({},t.echarts)}(VS,(function(t,e){e.registerLocale("JA",{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 WS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof WS.nodeName?e(WS,a("aivKh")):e({},t.echarts)}(WS,(function(t,e){e.registerLocale("TH",{time:{month:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthAbbr:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],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",heatmap:"แผนที่ความร้อน",map:"แผนที่",parallel:"แผนที่พิกัดขนาน",lines:"กราฟเส้น",graph:"กราฟความสัมพันธ์",sankey:"แผนภูมิซันกีย์",funnel:"แผนภูมิกรวย",gauge:"เกจ",pictorialBar:"แผนภูมิแท่งภาพ",themeRiver:"แผนที่แม่น้ำธีม",sunburst:"Sunburst",custom:"แผนภูมิที่กำหนดเอง",chart:"แผนภูมิ"}},aria:{general:{withTitle:"นี่คือแผนภูมิเกี่ยวกับ “{title}”",withoutTitle:"นี่คือแผนภูมิ"},series:{single:{prefix:"",withName:" ด้วยประเภท {seriesType} ชื่อ {seriesName} ",withoutName:" ด้วยประเภท {seriesType} "},multiple:{prefix:" มีทั้งหมด {seriesCount} ชุดข้อมูล ",withName:" ชุดข้อมูลที่ {seriesId} เป็นประเภท {seriesType} แทน {seriesName} ",withoutName:" ชุดข้อมูลที่ {seriesId} เป็นประเภท {seriesType} ",separator:{middle:"",end:""}}},data:{allData:"ข้อมูลดังต่อไปนี้: ",partialData:"ข้อมูล {displayCnt} รายการแรกคือ: ",withName:"ข้อมูลสำหรับ {name} คือ {value} ",withoutName:"{value} ",separator:{middle:", ",end:". "}}}})}));var GS={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof GS.nodeName?e(GS,a("aivKh")):e({},t.echarts)}(GS,(function(t,e){e.registerLocale("ZH",{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 HS=a("8kr9p");customElements.define("lia-chart",class extends HTMLElement{val="";static get observedAttributes(){return["style","mode","json","locale","aria-label"]}constructor(){super();const t=this.attachShadow({mode:"open"});this.option_={},this.chart=null,this.geoJson={url:"",data:null},this.locale="en",this.mode="",this.container=document.createElement("div"),t.appendChild(this.container);let e=this;this.resizeObserver=new(0,o.default)(HS.debounce((()=>{e.resizeChart()}))),this.style_="width: 100%; height: 400px; margin-top: -0.2em;"}connectedCallback(){if(!this.chart){this.container.setAttribute("style",this.style_),this.chart=ba.init(this.container,this.mode||"",{renderer:"svg",locale:this.locale}),this.option_=JSON.parse(this.getAttribute("option")||"null")||this.option_,this.option_.aria={show:!0};let t=this;this.chart.on("finished",(function(){t.setAttribute("aria-label",t.container.getAttribute("aria-label")||"")})),t.setAttribute("aria-role","figure alert"),t.setAttribute("aria-relevant","text"),this.geoJson.url||(this.updateChart(),this.resizeChart());try{this.parentElement&&this.resizeObserver.observe(this.parentElement)}catch(t){console.warn("charts: resize observer =>",t)}}}disconnectedCallback(){this.chart&&ba.dispose(this.chart),this.resizeObserver.disconnect(),this.geoJson.data={}}attributeChangedCallback(t,e,n){if(e!==n)switch(t){case"style":this.style_="width: 100%; height: 400px; margin-top: -0.2em;"+n,this.container.setAttribute("style",this.style_),this.resizeChart();break;case"locale":this.chart&&this.locale!==n&&(this.locale=n,ba.dispose(this.chart),this.chart=ba.init(this.container,this.mode,{renderer:"svg",locale:this.locale}),this.updateChart());case"mode":n=n||"",this.chart&&this.mode!==n&&(this.mode=n,ba.dispose(this.chart),this.chart=ba.init(this.container,this.mode,{renderer:"svg",locale:this.locale}),this.updateChart());break;case"json":if(this.geoJson.url=n,this.geoJson.data=null,HS.allowedProtocol(this.geoJson.url)){let t=new XMLHttpRequest,e=this;t.onreadystatechange=function(){if(4==t.readyState&&200==t.status)try{t.responseText&&(e.geoJson.data=JSON.parse(t.responseText),e.updateChart())}catch(t){console.warn("eCharts ... could not load =>",t)}},t.open("GET",n,!0),t.send(null)}break;default:console.warn("charts: unknown attribute",t)}}updateChart(){this.chart&&this.option_&&(null!==this.geoJson.data&&ba.registerMap(this.geoJson.url,this.geoJson.data),this.chart.setOption(this.option_,!0))}resizeChart(){this.chart&&this.chart.resize()}get option(){return this.option_}set option(t){if(t){const e=JSON.stringify(t);if(e!==this.val){if(this.val=e,t.aria={show:!0},t.pdf){const e=s.create(t.pdf.data,{min:t.pdf.min,max:t.pdf.max,size:t.pdf.size,width:t.pdf.width}),n=[],i=[];for(let t=0;t<e.length;t++)n.push(e[t].x),i.push(e[t].y);t.xAxis.data=n,t.series[0].data=i}this.option_=t,this.updateChart()}}}});
|