(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68460,(t,e,n)=>{var i={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return(n+i)*3/4-i},e.toByteArray=function(t){var e,n,o=l(t),a=o[0],s=o[1],u=new r((a+s)*3/4-s),h=0,c=s>0?a-4:a;for(n=0;n>16&255,u[h++]=e>>8&255,u[h++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[h++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[h++]=e>>8&255,u[h++]=255&e),u},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=0,s=i-r;a>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===r?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}i[45]=62,i[95]=63},72:function(t,e,n){"use strict";var i=n(675),r=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t){var i=t,r=e;if(("string"!=typeof r||""===r)&&(r="utf8"),!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);var o=0|d(i,r),l=a(o),u=l.write(i,r);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return function(t,e,n){var i;if(e<0||t.byteLength=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw 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 I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(t).length;default:if(r)return i?-1:I(t).length;e=(""+e).toLowerCase(),r=!0}}function f(t,e,n){var r,o,a,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length)if(r)return -1;else n=t.length-1;else if(n<0)if(!r)return -1;else n=0;if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,r);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(r)return Uint8Array.prototype.indexOf.call(t,e,n);else return Uint8Array.prototype.lastIndexOf.call(t,e,n);return v(t,[e],n,i,r)}throw TypeError("val must be string, number or Buffer")}function v(t,e,n,i,r){var o,a=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;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var h=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var c=!0,p=0;pn&&(t+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,n,i,r){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw 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 RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,a=n-e,l=Math.min(o,a),u=this.slice(i,r),h=t.slice(e,n),c=0;c239?4:u>223?3:u>191?2:1;if(r+c<=n)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(o=t[r+1]))==128&&(l=(31&u)<<6|63&o)>127&&(h=l);break;case 3:o=t[r+1],a=t[r+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),r+=c}var p=i,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var f="",g=0;gn)throw RangeError("Trying to access beyond buffer length")}function _(t,e,n,i,r,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw RangeError("Index out of range")}function b(t,e,n,i,r,o){if(n+i>t.length||n<0)throw RangeError("Index out of range")}function w(t,e,n,i,o){return e*=1,n>>>=0,o||b(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function S(t,e,n,i,o){return e*=1,n>>>=0,o||b(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}s.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))e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,o,a,s,l,u,h,c,p=this.length-e;if((void 0===n||n>p)&&(n=p),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var d=!1;;)switch(i){case"hex":return function(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;i>o/2&&(i=o/2);for(var a=0;a>8,r.push(n%256),r.push(i);return r}(t,this.length-h),this,h,c);default:if(d)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||x(t,e,this.length);for(var i=this[t],r=1,o=0;++o>>=0,e>>>=0,n||x(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},s.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||x(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||x(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,i){if(t*=1,e>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;_(this,t,e,n,r,0)}var o=1,a=0;for(this[e]=255&t;++a>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;_(this,t,e,n,r,0)}var o=n-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,n,i){if(t*=1,e>>>=0,!i){var r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>>=0,!i){var r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,n){return w(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return w(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return S(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return S(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,i){if(!s.isBuffer(t))throw 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=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,i),e);return r},s.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 TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===t.length){var r,o=t.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&n<57344){if(!r){if(n>56319||a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function T(t){for(var e=[],n=0;n=e.length)&&!(r>=t.length);++r)e[r+n]=t[r];return r}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var k=function(){for(var t="0123456789abcdef",e=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}()},783:function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,h=-7,c=n?r-1:0,p=n?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<>1,p=5960464477539062e-23*(23===r),d=i?0:o-1,f=i?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?e+=p/l:e+=p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}},a=!0;try{i[t](n,n.exports,o),a=!1}finally{a&&delete r[t]}return n.exports}o.ab="/ROOT/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/buffer/",e.exports=o(72)},75246,62397,84906,52191,91390,5111,70966,95181,30990,27365,40609,24889,42061,94109,61611,15227,55426,32079,57529,67757,83500,25675,59116,59437,47989,83554,79633,6612,23997,67323,62157,80321,94657,5767,35763,84140,11707,84449,19506,12908,24388,43866,32571,80798,84607,34769,90653,62604,47566,51213,51718,95159,86905,33846,30233,1860,49565,20909,t=>{"use strict";t.i(34526);var e,n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,v,m,x,_,b,w,S,M,I,T,C,A,D,k,L,P,O,R,N,E,z,B,V,G,F,W,H,U,Y,X,Z,j,q,K,$,J,Q,tt,te=function(t,e){return(te=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function tn(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}te(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ti=function(){return(ti=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function to(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((i=i.apply(t,e||[])).next())})}function ta(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&l[0]?i.return:l[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;switch(i=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,i=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]ti,"__awaiter",()=>to,"__extends",()=>tn,"__generator",()=>ta,"__rest",()=>tr],62397);var ts=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},tl=new function(){this.browser=new ts,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?(tl.wxa=!0,tl.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?tl.worker=!0:!tl.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(tl.node=!0,tl.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.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(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,tl),t.s(["default",0,tl],84906);var tu="sans-serif",th="12px "+tu,tc=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)s=a*t.length;else for(var l=0;lth,"DEFAULT_FONT_FAMILY",()=>tu,"DEFAULT_FONT_SIZE",()=>12,"platformApi",()=>tp,"setPlatformAPI",()=>td],52191);var tf=tG(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tg=tG(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ty=Object.prototype.toString,tv=Array.prototype,tm=tv.forEach,tx=tv.filter,t_=tv.slice,tb=tv.map,tw=(function(){}).constructor,tS=tw?tw.prototype:null,tM="__proto__",tI=2311;function tT(){return tI++}function tC(){for(var t=[],e=0;eeg,"HashMap",()=>es,"RADIAN_TO_DEGREE",()=>ef,"assert",()=>et,"bind",()=>tU,"clone",()=>tA,"concatArray",()=>eu,"createCanvas",()=>tO,"createHashMap",()=>el,"createObject",()=>eh,"curry",()=>tY,"defaults",()=>tP,"disableUserSelect",()=>ec,"each",()=>tB,"eqNaN",()=>t3,"extend",()=>tL,"filter",()=>tF,"find",()=>tW,"guid",()=>tT,"hasOwn",()=>ep,"indexOf",()=>tR,"inherits",()=>tN,"isArray",()=>tX,"isArrayLike",()=>tz,"isBuiltInObject",()=>tJ,"isDom",()=>t0,"isFunction",()=>tZ,"isGradientObject",()=>t1,"isImagePatternObject",()=>t2,"isNumber",()=>tK,"isObject",()=>t$,"isPrimitive",()=>er,"isRegExp",()=>t5,"isString",()=>tj,"isStringSafe",()=>tq,"isTypedArray",()=>tQ,"keys",()=>tH,"logError",()=>tC,"map",()=>tV,"merge",()=>tD,"mergeAll",()=>tk,"mixin",()=>tE,"noop",()=>ed,"normalizeCssArray",()=>t9,"reduce",()=>tG,"retrieve",()=>t4,"retrieve2",()=>t6,"retrieve3",()=>t8,"setAsPrimitive",()=>ei,"slice",()=>t7,"trim",()=>ee],91390),t.s(["add",()=>e_,"applyTransform",()=>eR,"clone",()=>em,"copy",()=>ev,"create",()=>ey,"dist",()=>ek,"distSquare",()=>eL,"distance",()=>ek,"distanceSquare",()=>eL,"div",()=>eT,"dot",()=>eC,"len",()=>eS,"lenSquare",()=>eM,"length",()=>eS,"lengthSquare",()=>eM,"lerp",()=>eO,"max",()=>eE,"min",()=>eN,"mul",()=>eI,"negate",()=>eP,"normalize",()=>eD,"scale",()=>eA,"scaleAndAdd",()=>eb,"set",()=>ex,"sub",()=>ew],5111);var ez=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},eB=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 ez(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new ez(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new ez(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new ez(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ez(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ez(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),eV=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 o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){tB(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function ej(t){return"CANVAS"===t.nodeName.toUpperCase()}var eq=/([&<>"'])/g,eK={"&":"&","<":"<",">":">",'"':""","'":"'"};function e$(t){return null==t?"":(t+"").replace(eq,function(t,e){return eK[e]})}t.s(["encodeHTML",()=>e$,"isCanvasEl",()=>ej,"transformCoordWithViewport",()=>eZ,"transformLocalCoord",()=>eY,"transformLocalCoordClear",()=>eX],70966);var eJ=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eQ=[],e0=tl.browser.firefox&&39>+tl.browser.version.split(".")[0];function e1(t,e,n,i){return n=n||{},i?e2(t,e,n):e0&&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):e2(t,e,n),n}function e2(t,e,n){if(tl.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ej(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}if(eZ(eQ,t,i,r)){n.zrX=eQ[0],n.zrY=eQ[1];return}}n.zrX=n.zrY=0}function e5(t){return t||window.event}function e3(t,e,n){if(null!=(e=e5(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&&e1(t,r,e,n)}else{e1(t,e,e,n);var o=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=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&eJ.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function e4(t,e,n,i){t.addEventListener(e,n,i)}var e6=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function e8(t){return 2===t.which||3===t.which}var e7=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 i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&i&&i.length>1){var o=e9(i)/e9(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ne(){return[1,0,0,1,0,0]}function nn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ni(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 nr(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=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]=o,t[3]=a,t[4]=s,t[5]=l,t}function no(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 na(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function ns(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 nl(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function nu(t){var e=ne();return ni(e,t),e}t.s(["clone",()=>nu,"copy",()=>ni,"create",()=>ne,"identity",()=>nn,"invert",()=>nl,"mul",()=>nr,"rotate",()=>na,"scale",()=>ns,"translate",()=>no],95181);var nh=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}(),nc=Math.min,np=Math.max,nd=Math.abs,nf=["x","y"],ng=["width","height"],ny=new nh,nv=new nh,nm=new nh,nx=new nh,n_=nA(),nb=n_.minTv,nw=n_.maxTv,nS=[0,0],nM=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=nc(t.x,this.x),n=nc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=np(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=np(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=t.width/this.width,n=t.height/this.height,i=ne();return no(i,i,[-this.x,-this.y]),ns(i,i,[e,n]),no(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&nh.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(nI,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(nT,n.x,n.y,n.width,n.height));var s=!!i;n_.reset(r,s);var l=n_.touchThreshold,u=e.x+l,h=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,y=n.y+n.height-l;if(u>h||c>p||d>f||g>y)return!1;var v=!(h=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},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){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(!i){e!==n&&t.copy(e,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ny.x=nm.x=n.x,ny.y=nx.y=n.y,nv.x=nx.x=n.x+n.width,nv.y=nm.y=n.y+n.height,ny.transform(i),nx.transform(i),nv.transform(i),nm.transform(i),e.x=nc(ny.x,nv.x,nm.x,nx.x),e.y=nc(ny.y,nv.y,nm.y,nx.y);var l=np(ny.x,nv.x,nm.x,nx.x),u=np(ny.y,nv.y,nm.y,nx.y);e.width=l-e.x,e.height=u-e.y},t}(),nI=new nM(0,0,0,0),nT=new nM(0,0,0,0);function nC(t,e,n,i,r,o,a,s){var l=nd(e-n),u=nd(i-t),h=nc(l,u),c=nf[r],p=nf[1-r],d=ng[r];e=u||!n_.bidirectional)&&(nb[c]=-u,nb[p]=0,n_.useDir&&n_.calcDirMTV())))}function nA(){var t=0,e=new nh,n=new nh,i={minTv:new nh,maxTv:new nh,useDir:!1,dirMinTv:new nh,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=np(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),h=l*o.y+u*o.x;if(r(h)){r(o.x)&&r(o.y)&&a.set(0,0);return}(n.x=s*u/h,n.y=s*l/h,r(n.x)&&r(n.y))?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()nd(t)}return i}var nD="silent";function nk(){e6(this.event)}var nL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return tn(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(eV),nP=function(t,e){this.x=t,this.y=e},nO=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nR=new nM(0,0,0,0),nN=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new nP(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new nL,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new eB(a),a}return tn(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tB(nO,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=nz(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new nP(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"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 nP(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,o="on"+e,a={type:e,event:n,target:(r=t).target,topTarget:r.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:nk};i&&(i[o]&&(a.cancelBubble=!!i[o].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[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new nP(t,e);if(nE(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new nM(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(nR.copy(h.getBoundingRect()),h.transform&&nR.applyTransform(h.transform),nR.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,p=2*Math.PI,d=0;d=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||nD}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==nD)){e.target=a;break}}}function nz(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function nB(t,e,n,i){var r=e+1;if(r===n)return 1;if(0>i(t[r++],t[e])){for(;ri(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a=0;)r++;return r-e}function nV(t,e,n,i,r){for(i===e&&i++;ir(a,t[o=s+l>>>1])?l=o:s=o+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]=a}}function nG(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l=o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function nF(t,e,n,i,r,o){var a=0,s=0,l=1;if(0>o(t,e[n+r])){for(s=r+1;lo(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function nW(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32){o=nB(t,n,i,e),nV(t,n,i,n+o,e);return}var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=nF(t[h],t,l,u,0,e);l+=p,0==(u-=p)||0!==(c=nG(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l,u,h,c=0;for(c=0;ce(t[d],a[p])){if(t[f++]=t[d++],u++,l=0,0==--s){h=!0;break}}else if(t[f++]=a[p++],l++,u=0,1==--i){h=!0;break}while((l|u)=7||u>=7)if(h)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(c=0;c=0;l--)t[d+l]=t[p+l];t[c]=a[h];return}for(var f=r;;){var g=0,y=0,v=!1;do if(0>e(a[h],t[u])){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}while((g|y)=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(y=s-nG(t[u],a,0,s,s-1,e))){for(c-=y,h-=y,s-=y,d=c+1,p=h+1,l=0;l=7||y>=7)if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(c-=i,u-=i,d=c+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else if(0===s)throw Error();else for(l=0,p=c-(s-1);l1;){var t=o-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])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=nB(t,n,i,e))s&&(l=s),nV(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r)a.forceMergeRuns()}}tB(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){nN.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=nz(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).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||ek(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var nH=!1;function nU(){nH||(nH=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nY(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nX=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nY}return t.prototype.traverse=function(t,e){for(var n=0;n=0&&this._roots.splice(i,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}();d=tl.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nZ={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*(-Math.pow(2,-10*(t-1))+2)},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(2*Math.PI*(t-e)/.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(2*Math.PI*(t-e)/.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)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-nZ.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*nZ.bounceIn(2*t):.5*nZ.bounceOut(2*t-1)+.5}},nj=Math.pow,nq=Math.sqrt,nK=nq(3),n$=1/3,nJ=ey(),nQ=ey(),n0=ey();function n1(t){return t>-1e-8&&t<1e-8}function n2(t){return t>1e-8||t<-1e-8}function n5(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function n3(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function n4(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(n1(h)&&n1(c))if(n1(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[d++]=f)}else{var g=c*c-4*h*p;if(n1(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v)}else if(g>0){var m=nq(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m),f=(-s-((x=x<0?-nj(-x,n$):nj(x,n$))+(_=_<0?-nj(-_,n$):nj(_,n$))))/(3*a);f>=0&&f<=1&&(o[d++]=f)}else{var b=Math.acos((2*h*s-3*a*c)/(2*nq(h*h*h)))/3,w=nq(h),S=Math.cos(b),f=(-s-2*w*S)/(3*a),v=(-s+w*(S+nK*Math.sin(b)))/(3*a),M=(-s+w*(S-nK*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v),M>=0&&M<=1&&(o[d++]=M)}}return d}function n6(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(n1(a)){if(n2(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(n1(h))r[0]=-o/(2*a);else if(h>0){var c=nq(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function n8(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function n7(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;nJ[0]=l,nJ[1]=u;for(var m=0;m<1;m+=.05)nQ[0]=n5(t,n,r,a,m),nQ[1]=n5(e,i,o,s,m),(f=eL(nJ,nQ))=0&&f=0&&d=1?1:n4(0,i,o,1,t,s)&&n5(0,r,a,1,s[0])}}}var is=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||ed,this.ondestroy=t.ondestroy||ed,this.onrestart=t.onrestart||ed,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){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-i%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tZ(t)?t:nZ[t]||ia(t)},t}(),il=function(t){this.value=t},iu=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new il(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}(),ih=function(){function t(t){this._list=new iu,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new il(e),a.key=t,n.insertEntry(a),i[t]=a}return r},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}(),ic={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 ip(t){return(t=Math.round(t))<0?0:t>255?255:t}function id(t){return t<0?0:t>1?1:t}function ig(t){return t.length&&"%"===t.charAt(t.length-1)?ip(parseFloat(t)/100*255):ip(parseInt(t,10))}function iy(t){return t.length&&"%"===t.charAt(t.length-1)?id(parseFloat(t)/100):id(parseFloat(t))}function iv(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 im(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function ix(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var i_=new ih(20),ib=null;function iw(t,e){ib&&ix(ib,e),ib=i_.put(t,ib||e.slice())}function iS(t,e){if(t){e=e||[];var n=i_.get(t);if(n)return ix(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in ic)return ix(e,ic[i]),iw(t,e),e;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var o=parseInt(i.slice(1,4),16);return o>=0&&o<=4095?(im(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),iw(t,e),e):void im(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(i.slice(1,7),16);return o>=0&&o<=0xffffff?(im(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),iw(t,e),e):void im(e,0,0,0,1)}return}var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?im(e,+u[0],+u[1],+u[2],1):im(e,0,0,0,1);h=iy(u.pop());case"rgb":if(u.length>=3)return im(e,ig(u[0]),ig(u[1]),ig(u[2]),3===u.length?h:iy(u[3])),iw(t,e),e;return void im(e,0,0,0,1);case"hsla":if(4!==u.length)return void im(e,0,0,0,1);return u[3]=iy(u[3]),iM(u,e),iw(t,e),e;case"hsl":if(3!==u.length)return void im(e,0,0,0,1);return iM(u,e),iw(t,e),e;default:return}}im(e,0,0,0,1)}}function iM(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=iy(t[1]),r=iy(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return im(e=e||[],ip(255*iv(a,o,n+1/3)),ip(255*iv(a,o,n)),ip(255*iv(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function iI(t,e){var n=iS(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return iL(n,4===n.length?"rgba":"rgb")}}function iT(t){var e=iS(t);if(e)return(0x1000000+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function iC(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i,r,o,a,s=t*(e.length-1),l=Math.floor(s),u=Math.ceil(s),h=e[l],c=e[u],p=s-l;return n[0]=ip((i=h[0],i+(c[0]-i)*p)),n[1]=ip((r=h[1],r+(c[1]-r)*p)),n[2]=ip((o=h[2],o+(c[2]-o)*p)),n[3]=id((a=h[3],a+(c[3]-a)*p)),n}}function iA(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i,r,o,a,s=t*(e.length-1),l=Math.floor(s),u=Math.ceil(s),h=iS(e[l]),c=iS(e[u]),p=s-l,d=iL([ip((i=h[0],i+(c[0]-i)*p)),ip((r=h[1],r+(c[1]-r)*p)),ip((o=h[2],o+(c[2]-o)*p)),id((a=h[3],a+(c[3]-a)*p))],"rgba");return n?{color:d,leftIndex:l,rightIndex:u,value:s}:d}}function iD(t,e,n,i){var r,o=iS(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(r=Math.round(r=tZ(e)?e(o[0]):e))<0?0:r>360?360:r),null!=n&&(o[1]=iy(tZ(n)?n(o[1]):n)),null!=i&&(o[2]=iy(tZ(i)?i(o[2]):i)),iL(iM(o),"rgba")}function ik(t,e){var n=iS(t);if(n&&null!=e)return n[3]=id(e),iL(n,"rgba")}function iL(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 iP(t,e){var n=iS(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function iO(){return iL([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var iR=new ih(100);function iN(t){if(tj(t)){var e=iR.get(t);return e||(e=iI(t,-.1),iR.put(t,e)),e}if(t1(t)){var n=tL({},t);return n.colorStops=tV(t.colorStops,function(t){return{offset:t.offset,color:iI(t.color,-.1)}}),n}return t}t.s(["fastLerp",()=>iC,"fastMapToColor",()=>iC,"lerp",()=>iA,"lift",()=>iI,"liftColor",()=>iN,"lum",()=>iP,"mapToColor",()=>iA,"modifyAlpha",()=>ik,"modifyHSL",()=>iD,"parse",()=>iS,"parseCssFloat",()=>iy,"parseCssInt",()=>ig,"random",()=>iO,"stringify",()=>iL,"toHex",()=>iT],30990);var iE=t.i(68460),iz=Math.round;function iB(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=iS(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function iV(t){return t<1e-4&&t>-1e-4}function iG(t){return iz(1e3*t)/1e3}function iF(t){return iz(1e4*t)/1e4}var iW={left:"start",right:"end",center:"middle",middle:"middle"};function iH(t){return t&&!!t.image}function iU(t){return iH(t)||t&&!!t.svgElement}function iY(t){return"linear"===t.type}function iX(t){return"radial"===t.type}function iZ(t){return t&&("linear"===t.type||"radial"===t.type)}function ij(t){return"url(#"+t+")"}function iq(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function iK(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*ef,r=t6(t.scaleX,1),o=t6(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),(1!==r||1!==o)&&l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+iz(a*ef)+"deg, "+iz(s*ef)+"deg)"),l.join(" ")}var i$=tl.hasGlobalWindow&&tZ(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==iE.Buffer?function(t){return iE.Buffer.from(t).toString("base64")}:function(t){return null},iJ=Array.prototype.slice;function iQ(t,e,n,i){for(var r,o=e.length,a=0;a=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(tz(e)){var l=tz(e&&e[0])?2:1;a=l,(1!==l||tK(e[0]))&&(2!==l||tK(e[0][0]))||(o=!0)}else if(tK(e)&&e==e)a=0;else if(tj(e))if(isNaN(+e)){var u=iS(e);u&&(s=u,a=3)}else a=0;else if(t1(e)){var h=tL({},s);h.colorStops=tV(e.colorStops,function(t){return{offset:t.offset,color:iS(t.color)}}),iY(e)?a=4:iX(e)&&(a=5),s=h}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=tZ(n)?n:nZ[n]||ia(n)),i.push(c),c},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,o=n[r-1],a=this.discrete,s=i4(i),l=i3(i),u=0;ur)t.length=r;else for(var o=i;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;ne);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?i6:t[h];if((i4(s)||c)&&!y&&(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(i4(s))1===s?iQ(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,i2(l),i),this._trackKeys.push(a)}s.addKeyframe(t,i2(e[a]),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;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function i9(){return new Date().getTime()}var rt=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,n.stage=(e=e||{}).stage||{},n}return tn(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=i9()-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}this._time=e,!t&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,d(function e(){t._running&&(d(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=i9(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=i9(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=i9()-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 i7(t,e.loop);return this.addAnimator(n),n},e}(eV),re=tl.domSupported,rn=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},o=tV(i=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return r.hasOwnProperty(e)?e:t}),{mouse:i,touch:["touchstart","touchend","touchmove"],pointer:o}),ri=["mousemove","mouseup"],rr=["pointermove","pointerup"],ro=!1;function ra(t){var e=t.pointerType;return"pen"===e||"touch"===e}function rs(t){t&&(t.zrByTouch=!0)}function rl(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 ru=function(t,e){this.stopPropagation=ed,this.stopImmediatePropagation=ed,this.preventDefault=ed,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},rh={mousedown:function(t){t=e3(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=e3(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=e3(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){rl(this,(t=e3(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ro=!0,t=e3(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ro||(t=e3(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){rs(t=e3(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),rh.mousemove.call(this,t),rh.mousedown.call(this,t)},touchmove:function(t){rs(t=e3(this.dom,t)),this.handler.processGesture(t,"change"),rh.mousemove.call(this,t)},touchend:function(t){rs(t=e3(this.dom,t)),this.handler.processGesture(t,"end"),rh.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&rh.click.call(this,t)},pointerdown:function(t){rh.mousedown.call(this,t)},pointermove:function(t){ra(t)||rh.mousemove.call(this,t)},pointerup:function(t){rh.mouseup.call(this,t)},pointerout:function(t){ra(t)||rh.mouseout.call(this,t)}};tB(["click","dblclick","contextmenu"],function(t){rh[t]=function(e){e=e3(this.dom,e),this.trigger(t,e)}});var rc={pointermove:function(t){ra(t)||rc.mousemove.call(this,t)},pointerup:function(t){rc.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 rp(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,e4(t.domTarget,e,n,i)}function rd(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=r[o],i=t.listenerOpts[o],e.removeEventListener(o,n,i));t.mounted={}}var rf=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},rg=function(t){function e(e,n){var i,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new rf(e,rh),re&&(o._globalHandlerScope=new rf(document,rc)),r=(i=o._localHandlerScope).domHandlers,tl.pointerEventsSupported?tB(rn.pointer,function(t){rp(i,t,function(e){r[t].call(o,e)})}):(tl.touchEventsSupported&&tB(rn.touch,function(t){rp(i,t,function(e){r[t].call(o,e),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),tB(rn.mouse,function(t){rp(i,t,function(e){e=e5(e),i.touching||r[t].call(o,e)})})),o}return tn(e,t),e.prototype.dispose=function(){rd(this._localHandlerScope),re&&rd(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,re&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){tl.pointerEventsSupported?tB(rr,n):tl.touchEventsSupported||tB(ri,n);function n(n){rp(e,n,function(i){if(!rl(t,(i=e5(i)).target)){var r;r=i,i=e3(t.dom,new ru(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):rd(e)}},e}(eV),ry=1;tl.hasGlobalWindow&&(ry=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var rv=ry,rm="#333",rx="#ccc";function r_(t){return t>5e-5||t<-5e-5}var rb=[],rw=[],rS=ne(),rM=Math.abs,rI=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return r_(this.rotation)||r_(this.x)||r_(this.y)||r_(this.scaleX-1)||r_(this.scaleY-1)||r_(this.skewX)||r_(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(nn(n),this.invTransform=null);return}n=n||ne(),e?this.getLocalTransform(n):nn(n),t&&(e?nr(n,t,n):ni(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(rb);var n=rb[0]<0?-1:1,i=rb[1]<0?-1:1,r=((rb[0]-n)*e+n)/rb[0]||0,o=((rb[1]-i)*e+i)/rb[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ne(),nl(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.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}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ne(),nr(rw,t.invTransform,e),e=rw);var n=this.originX,i=this.originY;(n||i)&&(rS[4]=n,rS[5]=i,nr(rw,e,rS),rw[4]-=n,rw[5]-=i,e=rw),this.setLocalTransform(e)}},e.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[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&eR(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&eR(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&rM(t[0]-1)>1e-10&&rM(t[3]-1)>1e-10?Math.sqrt(rM(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){rC(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&na(e,e,l),e[4]+=n+u,e[5]+=i+h,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),rT=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rC(t,e){for(var n=0;n=5)){t=t||th;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=tp.measureText(String.fromCharCode(i),t).width;var r=new Date-n;return r>16?rD=5:r>2&&rD++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function rL(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=tp.measureText(e,t.font).width,n.put(e,i)),i}function rP(t,e,n,i){var r=rL(rA(e),t),o=rE(e);return new nM(rR(0,r,n),rN(0,o,i),r,o)}function rO(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return rP(r[0],e,n,i);for(var o=new nM(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function rB(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=rz(i[0],n.width),u+=rz(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var rV="__zr_normal__",rG=rT.concat(["ignore"]),rF=tG(rT,function(t,e){return t[e]=!0,t},{ignore:!1}),rW={},rH=new nM(0,0,0,0),rU=[],rY=function(){function t(t){this.id=tT(),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,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,h=n.autoOverflowArea,c=void 0;if((h||u)&&(c=rH,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(rW,n,c):rB(rW,n,c),r.x=rW.x,r.y=rW.y,o=rW.align,a=rW.verticalAlign;var p=n.origin;if(p&&null!=n.rotation){var d=void 0,f=void 0;"center"===p?(d=.5*c.width,f=.5*c.height):(d=rz(p[0],c.width),f=rz(p[1],c.height)),l=!0,r.originX=-r.x+d+(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],l||(r.originX=-g[0],r.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var v=y.overflowRect=y.overflowRect||new nM(0,0,0,0);r.getLocalTransform(rU),nl(rU,rU),nM.copy(v,c),v.applyTransform(rU)}else y.overflowRect=null;var m=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,x=void 0,_=void 0,b=void 0;m&&this.canBeInsideText()?(x=n.insideFill,_=n.insideStroke,(null==x||"auto"===x)&&(x=this.getInsideTextFill()),(null==_||"auto"===_)&&(_=this.getInsideTextStroke(x),b=!0)):(x=n.outsideFill,_=n.outsideStroke,(null==x||"auto"===x)&&(x=this.getOutsideFill()),(null==_||"auto"===_)&&(_=this.getOutsideStroke(x),b=!0)),((x=x||"#000")!==y.fill||_!==y.stroke||b!==y.autoStroke||o!==y.align||a!==y.verticalAlign)&&(s=!0,y.fill=x,y.stroke=_,y.autoStroke=b,y.align=o,y.verticalAlign=a,e.setDefaultTextStyle(y)),e.__dirty|=1,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()?rx:rm},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&iS(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+255*!r*(1-i);return n[3]=1,iL(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||{},tL(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(t$(t))for(var n=tH(t),i=0;i0},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(rV,!1,t)},t.prototype.useState=function(t,e,n,i){var r,o=t===rV;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tR(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tC("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=!!(r&&r.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t=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=tR(i,t),o=tR(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&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=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=[],o=0;o0||o.force&&!s.length){var M=void 0,I=void 0,T=void 0;if(l){I={},d&&(M={});for(var b=0;b<_;b++){var m=y[b];I[m]=i[m],d?M[m]=r[m]:i[m]=r[m]}}else if(d){T={};for(var b=0;b<_;b++){var m=y[b];T[m]=i2(i[m]),function(t,e,n){if(tz(e[n]))if(tz(t[n])||(t[n]=[]),tQ(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),rZ(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(tz(r[0]))for(var s=r[0].length,l=0;l0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=tR(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=tR(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;niP(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r0&&(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;erQ,"disposeAll",()=>r0,"getElementSSRData",()=>r5,"getInstance",()=>r1,"init",()=>rJ,"registerPainter",()=>r2,"registerSSRDataGetter",()=>r3,"version",()=>"6.0.0"],27365);var r4=Math.min,r6=Math.max,r8=Math.abs;function r7(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var r9=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return ot(t,e,n)};function ot(t,e,n){return tj(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function oe(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function on(t){return t.sort(function(t,e){return t-e}),t}function oi(t){if(isNaN(t*=1))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 or(t)}function or(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(".");return Math.max(0,(o<0?0:r-1-o)-i)}function oo(t,e){var n=Math.log,i=Math.LN10,r=Math.min(Math.max(-Math.floor(n(t[1]-t[0])/i)+Math.round(n(r8(e[1]-e[0]))/i),0),20);return isFinite(r)?r:20}function oa(t,e,n){return t[e]&&os(t,n)[e]||0}function os(t,e){var n=tG(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=tV(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=tV(r,function(t){return Math.floor(t)}),s=tG(a,function(t,e){return t+e},0),l=tV(r,function(t,e){return t-a[e]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return tV(a,function(t){return t/i})}function ol(t,e){var n=Math.max(oi(t),oi(e)),i=t+e;return n>20?i:oe(i,n)}function ou(t){var e=2*Math.PI;return(t%e+e)%e}function oh(t){return t>-1e-4&&t<1e-4}var oc=/^(?:(\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 op(t){if(t instanceof Date)return t;if(tj(t)){var e=oc.exec(t);if(!e)return new Date(NaN);if(!e[8])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);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 null==t?new Date(NaN):new Date(Math.round(t))}function od(t){return Math.pow(10,of(t))}function of(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 og(t,e){var n=of(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 oy(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function ov(t){t.sort(function(t,e){return!function t(e,n,i){return e.interval[i]=t.indexOf("x"))?e:NaN}function ox(t){return!isNaN(om(t))}function o_(){return Math.round(9*Math.random())}function ob(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}t.s(["MAX_SAFE_INTEGER",()=>0x1fffffffffffff,"addSafe",()=>ol,"asc",()=>on,"getLeastCommonMultiple",()=>ob,"getPercentSeats",()=>os,"getPercentWithPrecision",()=>oa,"getPixelPrecision",()=>oo,"getPrecision",()=>oi,"getPrecisionSafe",()=>or,"getRandomIdBase",()=>o_,"isNumeric",()=>ox,"isRadianAroundZero",()=>oh,"linearMap",()=>r7,"mathAbs",()=>r8,"mathMax",()=>r6,"mathMin",()=>r4,"nice",()=>og,"numericToNumber",()=>om,"parseDate",()=>op,"parsePercent",()=>r9,"parsePositionSizeOption",()=>ot,"quantile",()=>oy,"quantity",()=>od,"quantityExponent",()=>of,"reformIntervals",()=>ov,"remRadian",()=>ou,"round",()=>oe],40609);var ow="series\0",oS="\0_ec_\0";function oM(t){return t instanceof Array?t:null==t?[]:[t]}function oI(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;itR(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var oV={useDefault:!0,enableAll:!1,enableNone:!1},oG={useDefault:!1,enableAll:!0,enableNone:!0};function oF(t,e,n,i){i=i||oV;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r)if(i.enableNone)return s.models=[],s;else r=-1;return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function oW(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function oH(t,e){var n=el(),i=[];return tB(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function oU(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(tK(i)){var a,s=(i-(a=n||0))*r+a;return oe(s,o?Math.max(oi(n||0),oi(i)):e)}if(tj(i))return r<1?n:i;for(var l=[],u=Math.max(n?n.length:0,i.length),h=0;h0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)},t}();function oX(t){t.option=t.parentModel=t.ecModel=null}var oZ="___EC__COMPONENT__CONTAINER___",oj="___EC__EXTENDED_CLASS___";function oq(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function oK(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return tZ(e=i)&&/^class\s/.test(Function.prototype.toString.call(e))?n=function(t){function e(){return t.apply(this,arguments)||this}return tn(e,t),e}(i):tN(n=function(){(t.$constructor||i).apply(this,arguments)},this),tL(n.prototype,t),n[oj]=!0,n.extend=this.extend,n.superCall=oQ,n.superApply=o0,n.superClass=i,n}}function o$(t,e){t.extend=e.extend}var oJ=Math.round(10*Math.random());function oQ(t,e){for(var n=[],i=2;i=0||r&&0>tR(r,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var o5=o2([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o3=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o5(this,t,e)},t}(),o4=new ih(50);function o6(t,e,n,i,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=o4.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?o7(e=o.image)||o.pending.push(a):((e=tp.loadImage(t,o8,o8)).__zrImageSrc=t,o4.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function o8(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=s;u++)l-=s;var h=rL(a,n);return h>l&&(n="",h=0),l=t-h,r.ellipsis=n,r.ellipsisWidth=h,r.contentWidth=l,r.containerWidth=t,r}function ai(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var a=rL(o,e);if(a<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n){for(var i=0,r=0,o=t.length;r0?Math.floor(e.length*r/a):0;a=rL(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function ar(t,e,n,i){var r,o=ag(t),a=e.overflow,s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,h=e.font,c=rE(h),p=t6(e.lineHeight,c),d="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-l);var y=e.height;null==y&&null!=i&&(y=i-u);var v=(r=null!=g&&("break"===a||"breakAll"===a)?o?ac(o,e.font,g,"breakAll"===a,0).lines:[]:o?o.split("\n"):[]).length*p;if(null==y&&(y=v),v>y&&d){var m=Math.floor(y/p);f=f||r.length>m,v=(r=r.slice(0,m)).length*p}if(o&&"truncate"===a&&null!=g)for(var x=an(g,h,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),_={},b=0;bg&&au(a,s.substring(g,y),e,f),au(a,o[2],e,f,o[1]),g=o9.lastIndex}gp){var N=a.lines.length;A>0?(I.tokens=I.tokens.slice(0,A),S(I,C,T),a.lines=a.lines.slice(0,M+1)):a.lines=a.lines.slice(0,M),a.isTruncated=a.isTruncated||a.lines.length0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=ac(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var y=rA(h),v=0;v=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!ah[t]}(d);if(o.length?h+f>n:r+h+f>n){h?(s||l)&&(g?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=f)):g?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f));continue}h+=f,g?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function ap(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;nM.set(ad,rR(n,a,r),rN(i,s,o),a,s),nM.intersect(e,ad,null,af);var l=af.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=rR(l.x,l.width,r,!0),t.baseY=rN(l.y,l.height,o,!0)}}var ad=new nM(0,0,0,0),af={outIntersectRect:{},clamp:!0};function ag(t){return null!=t?t+="":t=""}function ay(t){var e=ag(t.text),n=t.font;return av(t,rL(rA(n),e),rE(n),null)}function av(t,e,n,i){var r=new nM(rR(t.x||0,e,t.textAlign),rN(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:am(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function am(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}t.s(["calcInnerTextOverflowArea",()=>ap,"parsePlainText",()=>ar,"parseRichText",()=>al,"tSpanCreateBoundingRect",()=>ay,"tSpanCreateBoundingRect2",()=>av,"tSpanHasStroke",()=>am,"truncateText",()=>at],24889);var ax="__zr_style_"+Math.round(10*Math.random()),a_={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ab={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};a_[ax]=!0;var aw=["z","z2","invisible"],aS=["invisible"],aM=function(t){var e;function n(e){return t.call(this,e)||this}return tn(n,t),n.prototype._init=function(e){for(var n=tH(e),i=0;i=aJ?r=n+aJ:e&&n-r>=aJ?r=n-aJ:!e&&n>r?r=n+(aJ-a1(n-r)):e&&n0&&(this._ux=aK(n/rv/t)||0,this._uy=aK(n/rv/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(aV.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=aK(t-this._xi),i=aK(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(aV.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(aV.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(aV.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),a0[0]=i,a0[1]=r,a2(a0,o),i=a0[0];var a=(r=a0[1])-i;return this.addData(aV.A,t,e,n,n,i,a,0,+!o),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=aj(r)*n+t,this._yi=aq(r)*n+e,this},e.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},e.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(aV.R,t,e,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(aV.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&aQ&&(this.data=new Float32Array(e));for(var n=0;n0&&o))for(var a=0;au.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){aW[0]=aW[1]=aU[0]=aU[1]=Number.MAX_VALUE,aH[0]=aH[1]=aY[0]=aY[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t1e-4){s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;return}if(aP[0]=ak(r)*n+t,aP[1]=aD(r)*i+e,aO[0]=ak(o)*n+t,aO[1]=aD(o)*i+e,eN(s,aP,aO),eE(l,aP,aO),(r%=aL)<0&&(r+=aL),(o%=aL)<0&&(o+=aL),r>o&&!a?o+=aL:rr&&(aR[0]=ak(c)*n+t,aR[1]=aD(c)*i+e,eN(s,aR,s),eE(l,aR,l))}(l,u,h,c,p,d,f,aU,aY),n=aj(d)*h+l,i=aq(d)*c+u;break;case aV.R:aE(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],aU,aY);break;case aV.Z:n=r,i=o}eN(aW,aW,aU),eE(aH,aH,aY)}return 0===t&&(aW[0]=aW[1]=aH[0]=aH[1]=0),new nM(aW[0],aW[1],aH[0]-aW[0],aH[1]-aW[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;cn||aK(m)>i||c===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,o=y);break;case aV.C:var x=t[c++],_=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=n5(t,n,r,a,d),g=n5(e,i,o,s,d),y=f-u,v=g-h;c+=Math.sqrt(y*y+v*v),u=f,h=g}return c}(r,o,x,_,g,y,b,w,0),r=b,o=w;break;case aV.Q:var x=t[c++],_=t[c++],g=t[c++],y=t[c++];f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=n9(t,n,r,c),d=n9(e,i,o,c),f=p-s,g=d-l;u+=Math.sqrt(f*f+g*g),s=p,l=d}return u}(r,o,x,_,g,y,0),r=g,o=y;break;case aV.A:var S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],A=t[c++],D=A+C;c+=1,d&&(a=aj(C)*I+S,s=aq(C)*T+M),f=aZ(I,T)*aX(aJ,Math.abs(A)),r=aj(D)*I+S,o=aq(D)*T+M;break;case aV.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case aV.Z:var v=a-r,m=s-o;f=Math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))e:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case aV.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case aV.L:a=p[_++],s=p[_++];var S=aK(a-r),M=aK(s-o);if(S>d||M>f){if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}v+=I}t.lineTo(a,s),r=a,o=s,x=0}else{var C=S*S+M*M;C>x&&(h=a,c=s,x=C)}break;case aV.C:var A=p[_++],D=p[_++],k=p[_++],L=p[_++],P=p[_++],O=p[_++];if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;n8(r,A,k,P,T,aG),n8(o,D,L,O,T,aF),t.bezierCurveTo(aG[1],aF[1],aG[2],aF[2],aG[3],aF[3]);break e}v+=I}t.bezierCurveTo(A,D,k,L,P,O),r=P,o=O;break;case aV.Q:var A=p[_++],D=p[_++],k=p[_++],L=p[_++];if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;ii(r,A,k,T,aG),ii(o,D,L,T,aF),t.quadraticCurveTo(aG[1],aF[1],aG[2],aF[2]);break e}v+=I}t.quadraticCurveTo(A,D,k,L),r=k,o=L;break;case aV.A:var R=p[_++],N=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],G=p[_++],F=!p[_++],W=E>z?E:z,H=aK(E-z)>.001,U=B+V,Y=!1;if(y){var I=l[m++];v+I>u&&(U=B+V*(u-v)/I,Y=!0),v+=I}if(H&&t.ellipse?t.ellipse(R,N,E,z,G,B,U,F):t.arc(R,N,W,B,U,F),Y)break e;w&&(n=aj(B)*E+R,i=aq(B)*z+N),r=aj(U)*E+R,o=aq(U)*z+N;break;case aV.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var X=p[_++],Z=p[_++];if(y){var I=l[m++];if(v+I>u){var j=u-v;t.moveTo(a,s),t.lineTo(a+aX(j,X),s),(j-=X)>0&&t.lineTo(a+X,s+aX(j,Z)),(j-=Z)>0&&t.lineTo(a+aZ(X-j,0),s+Z),(j-=X)>0&&t.lineTo(a,s+aZ(Z-j,0));break e}v+=I}t.rect(a,s,X,Z);break;case aV.Z:if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}v+=I}t.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=aV,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function a3(t,e,n,i,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>i+r||at+r&&o>n+r||oe+a)||!(l>i+a)||!(l>o+a))&&(!(lt+a)||!(s>n+a)||!(s>r+a))&&(!(se&&o>i||or?s:0}var st=a5.CMD,se=2*Math.PI,sn=[-1,-1,-1],si=[-1,-1];function sr(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;f1&&!n&&(u+=a9(h,c,p,d,i,r)),M&&(h=s[f],c=s[f+1],p=h,d=c),S){case st.M:p=s[f++],d=s[f++],h=p,c=d;break;case st.L:if(n){if(a3(h,c,s[f],s[f+1],e,i,r))return!0}else u+=a9(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case st.C:if(n){if(g=h,y=c,v=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==e&&(!(r>y+e)||!(r>m+e)||!(r>_+e)||!(r>w+e))&&(!(rg+e)||!(i>v+e)||!(i>x+e)||!(i>b+e))&&(!(ie&&u>i&&u>o&&u>s||u1&&function(){var t=si[0];si[0]=si[1],si[1]=t}(),d=n5(e,i,o,s,si[0]),p>1&&(f=n5(e,i,o,s,si[1]))),2===p?ye&&s>i&&s>o||s=0&&u<=1&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(n1(h)){var u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(h>0){var c=nq(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,sn);if(0===l)return 0;var u=ie(e,i,o);if(u>=0&&u<=1){for(var h=0,c=n9(e,i,o,u),p=0;pn||u+ar&&(r+=a7);var c=Math.atan2(l,s);return c<0&&(c+=a7),c>=i&&c<=r||c+a7>=i&&c+a7<=r}(I,T,A,D,D+k,L,e,P,r))return!0}else u+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sn[0]=-l,sn[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=se-1e-4){i=0,r=se;var h=o?1:-1;return a>=sn[0]+t&&a<=sn[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=se,r+=se);for(var p=0,d=0;d<2;d++){var f=sn[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;g<0&&(g=se+g),(g>=i&&g<=r||g+se>=i&&g+se<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}(I,T,A,D,D+k,L,P,r);h=Math.cos(D+k)*C+I,c=Math.sin(D+k)*A+T;break;case st.R:p=h=s[f++],d=c=s[f++];var O=s[f++],R=s[f++];if(o=p+O,a=d+R,n){if(a3(p,d,o,d,e,i,r)||a3(o,d,o,a,e,i,r)||a3(o,a,p,a,e,i,r)||a3(p,a,p,d,e,i,r))return!0}else u+=a9(o,d,o,a,i,r),u+=a9(p,a,p,d,i,r);break;case st.Z:if(n){if(a3(h,c,p,d,e,i,r))return!0}else u+=a9(h,c,p,d,i,r);h=p,c=d}}return n||1e-4>Math.abs(c-d)||(u+=a9(h,c,p,d,i,r)||0),0!==u}var so=tP({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},a_),sa={style:tP({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ab.style)},ss=rT.concat(["invisible","culling","z","z2","zlevel","parent"]),sl=function(t){var e;function n(e){return t.call(this,e)||this}return tn(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?rm:e>.2?"#eee":rx}else if(t)return rx}return rm},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tj(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>iP(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new a5(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.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||4&this.__dirty)&&(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 o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.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 o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),sr(o,a/s,!0,t,e)))return!0}if(this.hasFill())return sr(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:tL(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return eh(so,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=tL({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=tL({},i.shape),tL(s,n.shape)):(s=tL({},r?this.shape:i.shape),tL(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=tL({},this.shape);for(var u={},h=tH(s),c=0;ch&&(s=i+r,i*=h/s,r*=h/s),o+a>h&&(s=o+a,o*=h/s,a*=h/s),r+o>c&&(s=r+o,r*=c/s,o*=c/s),i+a>c&&(s=i+a,i*=c/s,a*=c/s),t.moveTo(l+i,u),t.lineTo(l+h-r,u),0!==r&&t.arc(l+h-r,u+r,r,-Math.PI/2,0),t.lineTo(l+h,u+c-o),0!==o&&t.arc(l+h-o,u+c-o,o,0,Math.PI/2),t.lineTo(l+a,u+c),0!==a&&t.arc(l+a,u+c-a,a,Math.PI/2,Math.PI),t.lineTo(l,u+i),0!==i&&t.arc(l+i,u+i,i,Math.PI,1.5*Math.PI)):t.rect(d,f,g,y)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(sl);s_.prototype.type="rect";var sb={fill:"#000"},sw={},sS={style:tP({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},ab.style)},sM=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=sb,n.attr(e),n}return tn(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;e0,I=0;I=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",y),w-=C.width,I-=C.width,T--;for(M+=(s-(M-d)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",y),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&sE(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=sR(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(sh),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,y=0,v=!1,m=sO("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),x=sP("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||f.autoStroke&&!g?null:(y=2,v=!0,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,_&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||th,d.opacity=t8(s.opacity,e.opacity,1),sD(d,s),x&&(d.lineWidth=t8(s.lineWidth,e.lineWidth,y),d.lineDash=t6(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=x),m&&(d.fill=m),p.setBoundingRect(av(d,t.contentWidth,t.contentHeight,v?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){(a=this._getOrCreateChild(s_)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=t6(t.fillOpacity,1)}else if(c){(s=this._getOrCreateChild(sd)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=t6(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=t8(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return sk(t)&&(e=[t.fontStyle,t.fontWeight,sA(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ee(e)||t.textFont||t.font},e}(aM),sI={left:!0,right:1,center:1},sT={top:1,bottom:1,middle:1},sC=["fontStyle","fontWeight","fontSize","fontFamily"];function sA(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function sD(t,e){for(var n=0;nsz,"setCommonECData",()=>sB],42061);var sV=1,sG={},sF=oN(),sW=oN(),sH=["emphasis","blur","select"],sU=["normal","emphasis","blur","select"],sY="highlight",sX="downplay",sZ="select",sj="unselect",sq="toggleSelect",sK="selectchanged";function s$(t){return null!=t&&"none"!==t}function sJ(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function sQ(t){sJ(t,"emphasis",2)}function s0(t){2===t.hoverState&&sJ(t,"normal",0)}function s1(t){sJ(t,"blur",1)}function s2(t){1===t.hoverState&&sJ(t,"normal",0)}function s5(t){t.selected=!0}function s3(t){t.selected=!1}function s4(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function s6(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function s8(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&tR(n,"select")>=0,o=!1;if(t instanceof sl){var a=sF(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(s$(s)||s$(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=tL({},i),(u=tL({},u)).fill=s):!s$(u.fill)&&s$(s)?(o=!0,i=tL({},i),(u=tL({},u)).fill=iN(s)):!s$(u.stroke)&&s$(l)&&(o||(i=tL({},i),u=tL({},u)),u.stroke=iN(l)),i.style=u}}if(i&&null==i.z2){o||(i=tL({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,0,e,s);else if("blur"===t)return n=s,i=tR(this.currentStates,t)>=0,r=this.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;au.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=tL({},n),a=tL({opacity:i?r:.1*o.opacity},a),n.style=a),n;else if("select"===t){var l=s;if(l&&null==l.z2){l=tL({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function s7(t){t.stateProxy=s8;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=s8),n&&(n.stateProxy=s8)}function s9(t,e){ls(t,e)||t.__highByOuter||s4(t,sQ)}function lt(t,e){ls(t,e)||t.__highByOuter||s4(t,s0)}function le(t,e){t.__highByOuter|=1<<(e||0),s4(t,sQ)}function ln(t,e){(t.__highByOuter&=~(1<<(e||0)))||s4(t,s0)}function li(t){s4(t,s1)}function lr(t){s4(t,s2)}function lo(t){s4(t,s5)}function la(t){s4(t,s3)}function ls(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ll(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=sW(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);a||i.push(s),o.isBlured&&(s.group.traverse(function(t){s2(t)}),a&&n.push(r)),o.isBlured=!1}),tB(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function lu(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function lm(t,e,n){lM(t,!0),s4(t,s7),l_(t,e,n)}function lx(t,e,n,i){i?lM(t,!1):lm(t,e,n)}function l_(t,e,n){var i=sz(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var lb=["emphasis","blur","select"],lw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function lS(t,e,n,i){n=n||"itemStyle";for(var r=0;rsU,"DOWNPLAY_ACTION_TYPE",()=>sX,"HIGHLIGHT_ACTION_TYPE",()=>sY,"HOVER_STATE_BLUR",()=>1,"HOVER_STATE_EMPHASIS",()=>2,"SELECT_ACTION_TYPE",()=>sZ,"SELECT_CHANGED_EVENT_TYPE",()=>sK,"SPECIAL_STATES",()=>sH,"TOGGLE_SELECT_ACTION_TYPE",()=>sq,"UNSELECT_ACTION_TYPE",()=>sj,"Z2_EMPHASIS_LIFT",()=>10,"allLeaveBlur",()=>ll,"blurComponent",()=>lh,"blurSeriesFromHighlightPayload",()=>lc,"enableComponentHighDownFeatures",()=>lT,"enableHoverEmphasis",()=>lm,"enableHoverFocus",()=>l_,"enterBlur",()=>li,"enterEmphasis",()=>le,"enterSelect",()=>lo,"findComponentHighDownDispatchers",()=>lp,"getAllSelectedIndices",()=>lv,"getHighlightDigit",()=>lC,"handleGlobalMouseOutForHighDown",()=>lf,"handleGlobalMouseOverForHighDown",()=>ld,"isHighDownDispatcher",()=>lI,"isHighDownPayload",()=>lD,"isSelectChangePayload",()=>lA,"leaveBlur",()=>lr,"leaveEmphasis",()=>ln,"leaveSelect",()=>la,"savePathStates",()=>lk,"setAsHighDownDispatcher",()=>lM,"setDefaultStateProxy",()=>s7,"setStatesFlag",()=>s6,"setStatesStylesFromModel",()=>lS,"toggleHoverEmphasis",()=>lx,"toggleSelectionFromPayload",()=>lg,"updateSeriesElementSelection",()=>ly],94109);var lL=oN();function lP(t,e,n,i,r){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var u=void 0,h=void 0,c=void 0;return i?(u=t6(i.duration,200),h=t6(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),tZ(c)&&(c=c(n,r)),tZ(u)&&(u=u(n)),{duration:u||0,delay:c,easing:h}}function lO(t,e,n,i,r,o,a){var s,l=!1;tZ(r)?(a=o,o=r,r=null):t$(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=lP(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function lR(t,e,n,i,r,o){lO("update",t,e,n,i,r,o)}function lN(t,e,n,i,r,o){lO("enter",t,e,n,i,r,o)}function lE(t){if(!t.__zr)return!0;for(var e=0;elP,"getOldStyle",()=>lF,"initProps",()=>lN,"isElementRemoved",()=>lE,"removeElement",()=>lz,"removeElementWithFadeOut",()=>lV,"saveOldStyle",()=>lG,"updateProps",()=>lR],61611);var lW={};function lH(t,e){for(var n=0;nl5,"animateLabelValue",()=>l2,"createTextConfig",()=>lj,"createTextStyle",()=>lZ,"getFont",()=>lQ,"getLabelStatesModels",()=>lX,"labelInner",()=>l0,"setLabelStyle",()=>lY,"setLabelValueAnimation",()=>l1],15227);var l3=["textStyle","color"],l4=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],l6=new sM,l8=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(l3):null)},t.prototype.getFont=function(){return lQ({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-1?"ZH":"EN";function uc(t,e){uu[t=t.toUpperCase()]=new ur(e),ul[t]=e}function up(t){if(!tj(t))return tD(tA(t),tA(ul.EN),!1);var e=ul[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?tA(e):tD(tA(e),tA(ul.EN),!1)}function ud(t){return uu[t]}function uf(){return uu.EN}uc("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:". "}}}}),uc("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:""}}}}),t.s(["SYSTEM_LANG",()=>uh,"createLocaleObject",()=>up,"getDefaultLocaleModel",()=>uf,"getLocaleModel",()=>ud,"registerLocale",()=>uc],32079);var ug=null,uy={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},uv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},um="{yyyy}-{MM}-{dd}",ux={year:"{yyyy}",month:"{yyyy}-{MM}",day:um,hour:um+" "+uv.hour,minute:um+" "+uv.minute,second:um+" "+uv.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},u_=["year","month","day","hour","minute","second","millisecond"],ub=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function uw(t){var e,n,i;return tj(t)||tZ(t)?t:(e=(e=t)||{},n={},i=!0,tB(u_,function(t){i&&(i=null==e[t])}),tB(u_,function(t,r){var o=e[t];n[t]={};for(var a=null,s=r;s>=0;s--){var l=u_[s],u=t$(o)&&!tX(o)?o[l]:o,h=void 0;tX(u)?a=(h=u.slice())[0]||"":tj(u)?h=[a=u]:(null==a?a=uv[t]:uy[l].test(a)||(a=n[l][l][0]+" "+a),h=[a],i&&(h[1]="{primary|"+a+"}")),n[t][l]=h}}),n)}function uS(t,e){return t+="","0000".substr(0,e-t.length)+t}function uM(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 uI(t){return t===uM(t)}function uT(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function uC(t,e,n,i){var r=op(t),o=r[uL(n)](),a=r[uP(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[uO(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[uR(n)](),c=(h-1)%12+1,p=r[uN(n)](),d=r[uE(n)](),f=r[uz(n)](),g=h>=12?"pm":"am",y=g.toUpperCase(),v=(i instanceof ur?i:uu[i||uh]||uf()).getModel("time"),m=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,uS(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,uS(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,uS(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,uS(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,uS(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,uS(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,uS(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,uS(f,3)).replace(/{S}/g,f+"")}function uA(t,e,n,i,r){var o=null;if(tj(n))o=n;else if(tZ(n)){var a={time:t.time,level:t.time.level},s=ug;s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var h=uD(t.value,r);o=n[h][h][0]}}return uC(new Date(t.value),o,r,i)}function uD(t,e){var n=op(t),i=n[uP(e)]()+1,r=n[uO(e)](),o=n[uR(e)](),a=n[uN(e)](),s=n[uE(e)](),l=0===n[uz(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;if(p&&1===i)return"year";if(p)return"month";if(c)return"day";if(h)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function uk(t,e,n){switch(e){case"year":t[uV(n)](0);case"month":t[uG(n)](1);case"day":t[uF(n)](0);case"hour":t[uW(n)](0);case"minute":t[uH(n)](0);case"second":t[uU(n)](0)}return t}function uL(t){return t?"getUTCFullYear":"getFullYear"}function uP(t){return t?"getUTCMonth":"getMonth"}function uO(t){return t?"getUTCDate":"getDate"}function uR(t){return t?"getUTCHours":"getHours"}function uN(t){return t?"getUTCMinutes":"getMinutes"}function uE(t){return t?"getUTCSeconds":"getSeconds"}function uz(t){return t?"getUTCMilliseconds":"getMilliseconds"}function uB(t){return t?"setUTCFullYear":"setFullYear"}function uV(t){return t?"setUTCMonth":"setMonth"}function uG(t){return t?"setUTCDate":"setDate"}function uF(t){return t?"setUTCHours":"setHours"}function uW(t){return t?"setUTCMinutes":"setMinutes"}function uH(t){return t?"setUTCSeconds":"setSeconds"}function uU(t){return t?"setUTCMilliseconds":"setMilliseconds"}function uY(t){if(!ox(t))return tj(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function uX(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}function uZ(t,e,n){function i(t){return t&&ee(t)?t:"-"}function r(t){return!!(null!=t&&!isNaN(t)&&isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?op(t):t;if(!isNaN(+s))return uC(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return tq(t)?i(t):tK(t)&&r(t)?t+"":"-";var l=om(t);return r(l)?uY(l):tq(t)?i(t):"boolean"==typeof t?t+"":"-"}t.s(["ONE_DAY",()=>864e5,"ONE_HOUR",()=>36e5,"ONE_MINUTE",()=>6e4,"ONE_SECOND",()=>1e3,"ONE_YEAR",()=>31536e6,"dateGetterName",()=>uO,"dateSetterName",()=>uG,"format",()=>uC,"fullLeveledFormatter",()=>ux,"fullYearGetterName",()=>uL,"fullYearSetterName",()=>uB,"getDefaultFormatPrecisionOfInterval",()=>uT,"getPrimaryTimeUnit",()=>uM,"getUnitFromValue",()=>uD,"hoursGetterName",()=>uR,"hoursSetterName",()=>uF,"isPrimaryTimeUnit",()=>uI,"leveledFormat",()=>uA,"millisecondsGetterName",()=>uz,"millisecondsSetterName",()=>uU,"minutesGetterName",()=>uN,"minutesSetterName",()=>uW,"monthGetterName",()=>uP,"monthSetterName",()=>uV,"pad",()=>uS,"parseTimeAxisLabelFormatter",()=>uw,"primaryTimeUnits",()=>u_,"roundTime",()=>uk,"secondsGetterName",()=>uE,"secondsSetterName",()=>uH,"timeUnits",()=>ub],57529);var uj=["a","b","c","d","e","f","g"],uq=function(t,e){return"{"+t+(null==e?"":e)+"}"};function uK(t,e,n){tX(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function uQ(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=op(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t.replace("MM",uS(a,2)).replace("M",a).replace("yyyy",o).replace("yy",uS(o%100+"",2)).replace("dd",uS(s,2)).replace("d",s).replace("hh",uS(l,2)).replace("h",l).replace("mm",uS(u,2)).replace("m",u).replace("ss",uS(h,2)).replace("s",h).replace("SSS",uS(c,3))}function u0(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function u1(t,e){return e=e||"transparent",tj(t)?t:t$(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function u2(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}t.s(["addCommas",()=>uY,"capitalFirst",()=>u0,"convertToColorString",()=>u1,"formatTime",()=>uQ,"formatTpl",()=>uK,"formatTplSimple",()=>u$,"getTooltipMarker",()=>uJ,"makeValueReadable",()=>uZ,"normalizeCssArray",()=>t9,"toCamelCase",()=>uX,"windowOpen",()=>u2],67757);var u5={},u3={},u4=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return tB(n,function(n,i){var o=n.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=n(u5,!0),this._normalMasterList=n(u3,!1)},t.prototype.update=function(t,e){tB(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){u5[t]=e;return}u3[t]=e},t.get=function(t){return u3[t]||u5[t]},t}(),u6=el();function u8(t,e){var n=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),r=0;if(n){var o="series"===t.mainType;(null==i&&(i=o?"data":"box"),"data"===i)?(r=1,o||(r=0)):"box"!==i||(r=2,o||u5[n])||(r=0)}return{coordSysType:n,kind:r}}function u7(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=u8(e,!0),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=i(n,e);return!!l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0)}var u9=function(t,e){var n=e.getReferringComponents(t,oV).models[0];return n&&n.coordinateSystem},ht=["left","right","top","bottom","width","height"],he=[["width","left","right"],["height","top","bottom"]];function hn(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function hi(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function hr(t,e){var n=function(t,e){var n,i,r=hl(t,e,{enableLayoutOnlyByCenter:!0}),o=t.getBoxLayoutParams();if(r.type===hs.point)i=r.refPoint,n=ho(o,{width:e.getWidth(),height:e.getHeight()});else{var a=t.get("center"),s=tX(a)?a:[a,a];n=ho(o,r.refContainer),i=2===r.boxCoordFrom?r.refPoint:[r9(s[0],n.width)+n.x,r9(s[1],n.height)+n.y]}return{viewRect:n,center:i}}(t,e),i=n.viewRect,r=n.center,o=t.get("radius");tX(o)||(o=[0,o]);var a=Math.min(r9(i.width,e.getWidth()),r9(i.height,e.getHeight())),s=r9(o[0],a/2),l=r9(o[1],a/2);return{cx:r[0],cy:r[1],r0:s,r:l,viewRect:i}}function ho(t,e,n){n=t9(n||0);var i=e.width,r=e.height,o=r9(t.left,i),a=r9(t.top,r),s=r9(t.right,i),l=r9(t.bottom,r),u=r9(t.width,i),h=r9(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new nM((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return f.margin=n,f}function ha(t,e,n){var i=t.getShallow("preserveAspect",!0);if(!i)return e;var r=e.width/e.height;if(1e-9>Math.abs(Math.atan(n)-Math.atan(r)))return e;var o=t.getShallow("preserveAspectAlign",!0),a=t.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l="cover"===i;return r>n&&!l||r=2)return o;for(var h=0;hht,"applyPreserveAspect",()=>ha,"box",()=>hn,"copyLayoutParams",()=>hf,"createBoxLayoutReference",()=>hl,"fetchLayoutMode",()=>hc,"getBoxLayoutParams",()=>hi,"getCircleLayout",()=>hr,"getLayoutParams",()=>hd,"getLayoutRect",()=>ho,"mergeLayoutParam",()=>hp,"positionElement",()=>hu,"sizeCalculable",()=>hh],83500);var hg=oN(),hy=function(t){var e;function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=ua("ec_cpt_model"),r}return tn(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=hc(this),i=n?hd(t):{};tD(t,e.getTheme().get(this.mainType)),tD(t,this.getDefaultOption()),n&&hp(t,i,n)},n.prototype.mergeOption=function(t,e){tD(this.option,t,!0);var n=hc(this);n&&hp(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oj]))return t.defaultOption;var e=hg(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=tD(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return oF(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return hi(this,!1)},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(ur);o$(hy,ur),o1(hy),s={},hy.registerSubTypeDefaulter=function(t,e){s[oq(t).main]=e},hy.determineSubType=function(t,e){var n=e.type;if(!n){var i=oq(t).main;hy.hasSubTypes(t)&&s[i]&&(n=s[i](e))}return n};var hv=function(t){var e=[];return tB(hy.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tV(e,function(t){return oq(t).main}),"dataset"!==t&&0>=tR(e,"dataset")&&e.unshift("dataset"),e};function hm(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}hy.topologicalTravel=function(t,e,n,i){if(t.length){var r,o,a,s=(o={},a=[],tB(r=e,function(t){var e,n,i,s=hm(o,t),l=(e=s.originalDeps=hv(t),n=r,i=[],tB(e,function(t){tR(n,t)>=0&&i.push(t)}),i);s.entryCount=l.length,0===s.entryCount&&a.push(t),tB(l,function(e){0>tR(s.predecessor,e)&&s.predecessor.push(e);var n=hm(o,e);0>tR(n.successor,e)&&n.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,u=s.noEntryList,h={};for(tB(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(n.call(i,c,p.originalDeps.slice()),delete h[c]),tB(p.successor,d?g:f)}tB(h,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,f(t)}},t.s(["default",0,hy],25675);var hx={color:{},darkColor:{},size:{}},h_=hx.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var hb in tL(h_,{primary:h_.neutral80,secondary:h_.neutral70,tertiary:h_.neutral60,quaternary:h_.neutral50,disabled:h_.neutral20,border:h_.neutral30,borderTint:h_.neutral20,borderShade:h_.neutral40,background:h_.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:h_.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:h_.neutral70,axisLineTint:h_.neutral40,axisTick:h_.neutral70,axisTickMinor:h_.neutral60,axisLabel:h_.neutral70,axisSplitLine:h_.neutral15,axisMinorSplitLine:h_.neutral05}),h_)if(h_.hasOwnProperty(hb)){var hw=h_[hb];"theme"===hb?hx.darkColor.theme=h_.theme.slice():"highlight"===hb?hx.darkColor.highlight="rgba(255,231,130,0.4)":0===hb.indexOf("accent")?hx.darkColor[hb]=iD(hw,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):hx.darkColor[hb]=iD(hw,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}hx.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var hS="";"undefined"!=typeof navigator&&(hS=navigator.platform||"");var hM="rgba(0, 0, 0, 0.2)",hI=hx.color.theme[0],hT=iD(hI,null,null,.9);let hC={darkMode:"auto",colorBy:"series",color:hx.color.theme,gradientColor:[hT,hI],aria:{decal:{decals:[{color:hM,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:hM,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:hM,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:hM,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:hM,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:hM,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hS.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};var hA=el(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),hD="original",hk="arrayRows",hL="objectRows",hP="keyedColumns",hO="typedArray",hR="unknown",hN="column",hE=oN();function hz(t,e,n){var i,r,o={},a=hV(e);if(!a||!t)return o;var s=[],l=[],u=hE(e.ecModel).datasetMap,h=a.uid+"_"+n.seriesLayoutBy;tB(t=t.slice(),function(e,n){var a=t$(e)?e:t[n]={name:e};"ordinal"===a.type&&null==i&&(i=n,r=d(a)),o[a.name]=[]});var c=u.get(h)||u.set(h,{categoryWayDim:r,valueWayDim:0});function p(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var hj={},hq="undefined"!=typeof console&&console.warn&&console.log;function hK(t,e){!function(t,e,n){if(hq){if(n){if(hj[e])return;hj[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function h$(t){throw Error(t)}var hJ="\0_ec_inner",hQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new ur(i),this._locale=new ur(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=h2(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,h2(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)):m(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&tB(a,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,i=this._componentsMap,r=this._componentsCount,o=[],a=el(),s=e&&e.replaceMergeMainTypeMap;hE(this).datasetMap=el(),tB(t,function(t,e){null!=t&&(hy.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?tA(t):tD(n[e],t,!0))}),s&&s.each(function(t,e){hy.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),hy.topologicalTravel(o,hy.getAllClassMainTypes(),function(e){var o,a=function(t,e,n){var i=hW.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,oM(t[e])),l=i.get(e),u=l?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=oA(l,a,u);tB(h,function(t){var n,i,r,o,a=t.newOption;t$(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,i=a,r=t.existing,o=hy,i.type?i.type:r?r.subType:o.determineSubType(n,i)))}),n[e]=null,i.set(e,null),r.set(e,0);var c=[],p=[],d=0;tB(h,function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=hy.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(o)return;o=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=tL({componentIndex:n},t.keyInfo);tL(i=new s(r,this,this,l),l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))},this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&y(this)},this),this._seriesIndices||y(this)},e.prototype.getOption=function(){var t=tA(this.option);return tB(t,function(e,n){if(hy.hasClass(n)){for(var i=oM(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!oO(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[hJ],t},e.prototype.setTheme=function(t){this._theme=new ur(t),this._resetOption("recreate",null)},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=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=tV(s,function(t){return tA(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),h8=t$,h7=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function h9(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=h7.length;nu&&(u=d)}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=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return cL(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function cR(t){var e,n;return t$(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function cN(t){return new cE(t)}var cE=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,i,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,h=((n=t&&t.modBy)>=1||(n=1),n),c=t&&t.modDataCount||0;(l!==h||u!==c)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=h,this._modDataCount=c;var p=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!a&&(r||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},cF=function(){function t(t,e){tK(e)||h$(""),this._opFn=cG[t],this._rvalFloat=om(e)}return t.prototype.evaluate=function(t){return tK(t)?this._opFn(t,this._rvalFloat):this._opFn(om(t),this._rvalFloat)},t}(),cW=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=tK(t)?t:om(t),i=tK(e)?e:om(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=tj(t),s=tj(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),cH=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=om(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=om(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),cU=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw 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 cB(t,e)},t}();function cY(t){return cK(t.sourceFormat)||h$(""),t.data}function cX(t){var e=t.sourceFormat,n=t.data;if(cK(e)||h$(""),e===hk){for(var i=[],r=0,o=n.length;r65535?cJ:cQ}function c3(){return[1/0,-1/0]}function c4(t,e,n,i,r){var o=c2[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tV(o,function(t){return t.property}),u=0;uy[1]&&(y[1]=g)}}!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=0&&e=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return -1},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=u&&y<=h||isNaN(y))&&(a[s++]=d),d++}p=!0}else if(2===r){for(var f=c[i[0]],v=c[i[1]],m=t[i[1]][0],x=t[i[1]][1],g=0;g=u&&y<=h||isNaN(y))&&(_>=m&&_<=x||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(var g=0;g=u&&y<=h||isNaN(y))&&(a[s++]=b)}else for(var g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(c5(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var p=1;pn&&(n=i,r=m)}I>0&&Ia&&(f=a-u);for(var g=0;gd&&(d=y,p=u+g)}var v=this.getRawIndex(h),m=this.getRawIndex(p);hu-d&&(a.length=s=u-d);for(var f=0;fh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return e=[o,a],this._extent[t]=e,e},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=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 cB(t[i],this._dimensions[i])}I={arrayRows:t,objectRows:function(t,e,n,i){return cB(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return cB(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),c8=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,i=this._getUpstreamSourceManagers(),r=!!i.length;if(c9(n)){var o=void 0,a=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=tQ(o=n.get("data",!0))?hO:hD,e=[];var u=this._getSourceMetaRawOption()||{},h=s&&s.metaRawOption||{},c=t6(u.seriesLayoutBy,h.seriesLayoutBy)||null,p=t6(u.sourceHeader,h.sourceHeader),d=t6(u.dimensions,h.dimensions);t=c!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d?[cy(o,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},a)]:[]}else if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[cy(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);null!=o&&1!==t.length&&pt("");var a=[],s=[];return(tB(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||pt(""),a.push(e),s.push(t._getVersionSign())}),r)?n=function(t,e,n){var i=oM(t),r=i.length;r||h$("");for(var o=0;o1||i>0&&!e.noHeader;return tB(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||pa(e)&&!e.noHeader)))}),n}return 0}(e)],richText:pr[r]},s=[],l=e.blocks||[];et(!l||tX(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(ep(h,u)){var c=new cW(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}tB(l,function(n,r){var o=e.valueFormatter,l=(pa(n)?ps:pl)(o?tL(tL({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var p="richText"===t.renderMode?s.join(a.richText):ph(i,s.join(""),o?n:a.html);if(o)return p;var d=uZ(e.header,"ordinal",t.useUTC),f=pn(i,t.renderMode).nameStyle,g=pe(i);return"richText"===t.renderMode?pc(t,d,f)+a.richText+p:ph(i,'
'+e$(d)+"
"+p,n)}function pl(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return tV(t=tX(t)?t:[t],function(t,e){return uZ(t,tX(b)?b[e]:b,u)})};if(!o||!a){var c,p,d,f,g,y,v,m,x=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||hx.color.secondary,r),_=o?"":uZ(l,"ordinal",u),b=e.valueType,w=a?[]:h(e.value,e.dataIndex),S=!s||!o,M=!s&&o,I=pn(i,r),T=I.nameStyle,C=I.valueStyle;return"richText"===r?(s?"":x)+(o?"":pc(t,_,T))+(a?"":(c=t,p=w,d=S,f=M,g=[C],d&&g.push({padding:[0,0,0,f?10:20],align:"right"}),c.markupStyleCreator.wrapRichTextStyle(tX(p)?p.join(" "):p,g))):ph(i,(s?"":x)+(o?"":''+e$(_)+"")+(a?"":(y=w,v=S,m=M,''+tV(y=tX(y)?y:[y],function(t){return e$(t)}).join("  ")+"")),n)}}function pu(t,e,n,i,r,o){if(t)return(pa(t)?ps:pl)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function ph(t,e,n){return'
'+e+'
'}function pc(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function pp(t,e){return u1(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function pd(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var pf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=o_()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=uJ({color:e,type:t,renderMode:n,markerId:i});return tj(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};tX(e)?tB(e,function(t){return tL(n,t)}):tL(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function pg(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=tX(c),d=pp(o,a);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=tG(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(po("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?tB(i,function(t){h(cL(o,n,t),t)}):tB(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=cL(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=oP(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return po("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[po("nameValue",{markerType:"item",markerColor:d,name:x,noName:!ee(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var py=oN();function pv(t,e){return t.getName(e)||t.getId(e)}var pm="__universalTransitionEnabled",px=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return tn(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=cN({count:pb,reset:pw}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(py(this).sourceManager=new c8(this)).prepareSource();var i=this.getInitialData(t,n);pM(i,this),this.dataTask.context.data=i,py(this).dataBeforeProcessed=i,p_(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=hc(this),i=n?hd(t):{},r=this.subType;hy.hasClass(r)&&(r+="Series"),tD(t,e.getTheme().get(this.subType)),tD(t,this.getDefaultOption()),oI(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&hp(t,i,n)},n.prototype.mergeOption=function(t,e){t=tD(this.option,t,!0),this.fillDataTextStyle(t.data);var n=hc(this);n&&hp(this.option,t,n);var i=py(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);pM(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,py(this).dataBeforeProcessed=r,p_(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!tQ(t))for(var e=["show"],n=0;n=0&&h<0)&&(u=r,h=n,c=0),n===h&&(l[c++]=e))}),l.length=c,l},n.prototype.formatTooltip=function(t,e,n){return pg({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(tl.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=hY.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.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){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[pv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[pm])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){t$(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},n.registerClass=function(t){return hy.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(hy);function p_(t){var e,n,i,r=t.name;oP(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),i=[],tB(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function pb(t){return t.model.getRawData().count()}function pw(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),pS}function pS(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pM(t,e){tB(eu(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tY(pI,e))})}function pI(t,e){var n=pT(t);return n&&n.setOutputEnd((e||this).count()),e}function pT(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}}tE(px,cO),tE(px,hY),o$(px,hy),t.s(["SERIES_UNIVERSAL_TRANSITION_PROP",()=>pm,"default",0,px],59116);var pC=function(){function t(){this.group=new rj,this.uid=ua("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}();function pA(){var t=oN();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}oK(pC),o1(pC),t.s(["default",0,pC],59437);var pD=a5.CMD,pk=[[],[],[]],pL=Math.sqrt,pP=Math.atan2;function pO(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=pD.M,c=pD.C,p=pD.L,d=pD.R,f=pD.A,g=pD.Q;for(r=0,o=0;r1&&(a*=pR(f),s*=pR(f));var g=(r===o?-1:1)*pR((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=-(g*s)*p/a,m=(t+n)/2+pE(c)*y-pN(c)*v,x=(e+i)/2+pN(c)*y+pE(c)*v,_=pG([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=pG(b,w);if(-1>=pV(b,w)&&(S=pz),pV(b,w)>=1&&(S=0),S<0){var M=Math.round(S/pz*1e6)/1e6;S=2*pz+M%2*pz}h.addData(u,m,x,a,s,_,S,c,o)}var pW=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pH=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,pU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.applyTransform=function(t){},e}(sl);function pY(t){return null!=t.setData}function pX(t,e){var n=function(t){var e,n=new a5;if(!t)return n;var i=0,r=0,o=0,a=0,s=a5.CMD,l=t.match(pW);if(!l)return n;for(var u=0;uk*k+L*L&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}var p9=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},dt=function(t){function e(e){return t.call(this,e)||this}return tn(e,t),e.prototype.getDefaultShape=function(){return new p9},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=p6(e.r,0),r=p6(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,p=!!e.clockwise,d=p3(u-l),f=d>pQ&&d%pQ;if(f>1e-4&&(d=f),i>1e-4)if(d>pQ-1e-4)t.moveTo(h+i*p1(l),c+i*p0(l)),t.arc(h,c,i,l,u,!p),r>1e-4&&(t.moveTo(h+r*p1(u),c+r*p0(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,A=void 0,D=void 0,k=void 0,L=i*p1(l),P=i*p0(l),O=r*p1(u),R=r*p0(u),N=d>1e-4;if(N){var E=e.cornerRadius;E&&(g=(n=function(t){var e;if(tX(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}(E))[0],y=n[1],v=n[2],m=n[3]);var z=p3(i-r)/2;if(x=p8(z,v),_=p8(z,m),b=p8(z,g),w=p8(z,y),I=S=p6(x,_),T=M=p6(b,w),(S>1e-4||M>1e-4)&&(C=i*p1(u),A=i*p0(u),D=r*p1(l),k=r*p0(l),d1e-4){var Y=p8(v,I),X=p8(m,I),Z=p7(D,k,L,P,i,Y,p),j=p7(C,A,O,R,i,X,p);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),I0&&t.arc(h+Z.cx,c+Z.cy,Y,p5(Z.y0,Z.x0),p5(Z.y1,Z.x1),!p),t.arc(h,c,i,p5(Z.cy+Z.y1,Z.cx+Z.x1),p5(j.cy+j.y1,j.cx+j.x1),!p),X>0&&t.arc(h+j.cx,c+j.cy,X,p5(j.y1,j.x1),p5(j.y0,j.x0),!p))}else t.moveTo(h+L,c+P),t.arc(h,c,i,l,u,!p);else t.moveTo(h+L,c+P);if(r>1e-4&&N)if(T>1e-4){var Y=p8(g,T),X=p8(y,T),Z=p7(O,R,C,A,r,-X,p),j=p7(L,P,D,k,r,-Y,p);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),T0&&t.arc(h+Z.cx,c+Z.cy,X,p5(Z.y0,Z.x0),p5(Z.y1,Z.x1),!p),t.arc(h,c,r,p5(Z.cy+Z.y1,Z.cx+Z.x1),p5(j.cy+j.y1,j.cx+j.x1),p),Y>0&&t.arc(h+j.cx,c+j.cy,Y,p5(j.y1,j.x1),p5(j.y0,j.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(sl);dt.prototype.type="sector";var de=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dn=function(t){function e(e){return t.call(this,e)||this}return tn(e,t),e.prototype.getDefaultShape=function(){return new de},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}(sl);function di(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;pdT[1]){if(r=!1,dC.negativeSize||n)return r;var s=dM(dT[0]-dI[1]),l=dM(dI[0]-dT[1]);dw(s,l)>dD.len()&&(s=l||!dC.bidirectional)&&(nh.scale(dA,a,-l*i),dC.useDir&&dC.calcDirMTV()))}}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;lr8(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function dJ(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),lR(t,i,n,sz(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=tA(t.shape)),e}}function dQ(t,e){return tV(t,function(t){var n=t[0];n=r4(n=r6(n,e.x),e.x+e.width);var i=t[1];return[n,i=r4(i=r6(i,e.y),e.y+e.height)]})}function d0(t,e){var n=r6(t.x,e.x),i=r4(t.x+t.width,e.x+e.width),r=r6(t.y,e.y),o=r4(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function d1(t,e,n){var i=tL({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),tP(r,n),new sd(i)):dF(t.replace("path://",""),i,n,"center")}function d2(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,y=(f*h-u*g)/d;if(y<0||y>1)return!1;var v=(f*p-c*g)/d;return!(v<0)&&!(v>1)}function d3(t,e,n,i,r){return null==e||(tK(e)?d4[0]=d4[1]=d4[2]=d4[3]=e:(d4[0]=e[0],d4[1]=e[1],d4[2]=e[2],d4[3]=e[3]),i&&(d4[0]=r6(0,d4[0]),d4[1]=r6(0,d4[1]),d4[2]=r6(0,d4[2]),d4[3]=r6(0,d4[3])),n&&(d4[0]=-d4[0],d4[1]=-d4[1],d4[2]=-d4[2],d4[3]=-d4[3]),d6(t,d4,"x","width",3,1,r&&r[0]||0),d6(t,d4,"y","height",0,2,r&&r[1]||0)),t}var d4=[0,0,0,0];function d6(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=r6(0,r4(a,l)),t[i]=0?-e[r]:e[o]>=0?l+e[o]:r8(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function d8(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=tj(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tB(tH(l),function(t){ep(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=sz(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:tP({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function d7(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function d9(t,e){if(t)if(tX(t))for(var n=0;ne&&(e=i),ie&&(n=e=0),{min:n,max:e}}function fa(t,e,n){!function t(e,n,i,r){if(e.ignoreModelZ)return r;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;ldN,"XY",()=>dR,"applyTransform",()=>dK,"calcZ2Range",()=>fo,"clipPointsByRect",()=>dQ,"clipRectByRect",()=>d0,"createIcon",()=>d1,"ensureCopyRect",()=>fn,"ensureCopyTransform",()=>fi,"expandOrShrinkRect",()=>d3,"extendPath",()=>dB,"extendShape",()=>dE,"getShapeClass",()=>dG,"getTransform",()=>dq,"groupTransition",()=>dJ,"isBoundingRectAxisAligned",()=>ft,"lineLineIntersect",()=>d5,"linePolygonIntersect",()=>d2,"makeImage",()=>dW,"makePath",()=>dF,"mergePath",()=>dU,"registerShape",()=>dV,"resizePath",()=>dY,"retrieveZInfo",()=>fr,"setTooltipConfig",()=>d8,"subPixelOptimize",()=>dj,"subPixelOptimizeLine",()=>dX,"subPixelOptimizeRect",()=>dZ,"transformDirection",()=>d$,"traverseElements",()=>d9,"traverseUpdateZ",()=>fa],6612);var fs=oN(),fl=pA(),fu=function(){function t(){this.group=new rj,this.uid=ua("viewChart"),this.renderTask=cN({plan:fp,reset:fd}),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&&fc(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&fc(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){d9(this.group,t)},t.markUpdateMethod=function(t,e){fs(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function fh(t,e,n){t&&lI(t)&&("emphasis"===e?le:ln)(t,n)}function fc(t,e,n){var i=oR(t,e),r=e&&null!=e.highlightKey?lC(e.highlightKey):null;null!=i?tB(oM(i),function(e){fh(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){fh(t,n,r)})}function fp(t){return fl(t.model)}function fd(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&fs(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),ff[l]}oK(fu,["dispose"]),o1(fu);var ff={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)}}};t.s(["default",0,fu],23997),t.s(["Rect",0,s_],67323),t.s(["Image",0,sd],62157);var fg="\0__throttleOriginMethod",fy="\0__throttleRate",fv="\0__throttleType";function fm(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function fx(t,e,n,i){var r=t[e];if(r){var o=r[fg]||r,a=r[fv];if(r[fy]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=fm(o,n,"debounce"===i))[fg]=o,r[fv]=i,r[fy]=n}return r}}function f_(t,e){var n=t[e];n&&n[fg]&&(n.clear&&n.clear(),t[e]=n[fg])}t.s(["clear",()=>f_,"createOrUpdate",()=>fx,"throttle",()=>fm],80321);var fb=oN(),fw={itemStyle:o2(ue,!0),lineStyle:o2(l7,!0)},fS={lineStyle:"stroke",itemStyle:"fill"};function fM(t,e){var n=t.visualStyleMapper||fw[e];return n||(console.warn("Unknown style type '"+e+"'."),fw.itemStyle)}function fI(t,e){var n=t.visualDrawType||fS[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var fT=new ur;t.s(["Group",0,rj],94657),t.s(["Text",0,sM],5767),t.s(["Arc",0,dv],35763);var fC=Math.PI,fA=function(){function t(t,e,n,i){this._stageTaskMap=el(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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,o=i&&i.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},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,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=el();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;tB(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});et(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.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,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tB(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(d)}),h.perform(d)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||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,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=el(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||cN({plan:fO,reset:fR,count:fz}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||cN({reset:fD});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=el(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,cN({reset:fk,onDirty:fP})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}et(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,tB(n.getSeries(),p)),c&&o.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 tZ(t)&&(t={overallReset:t,seriesType:function(t){T=null;try{t(fB,fV)}catch(t){}return T}(t)}),t.uid=ua("stageHandler"),e&&(t.visualType=e),t},t}();function fD(t){t.overallReset(t.ecModel,t.api,t.payload)}function fk(t){return t.overallProgress&&fL}function fL(){this.agent.dirty(),this.getDownstream().dirty()}function fP(){this.agent&&this.agent.dirty()}function fO(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function fR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=oM(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tV(e,function(t,e){return fE(e)}):fN}var fN=fE(0);function fE(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.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}(),fZ=["symbol","symbolSize","symbolRotate","symbolOffset"],fj=fZ.concat(["symbolKeepAspect"]);function fq(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 fK(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 f$(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)}}function fJ(t,e){tB([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(e,i,r){var o,a;e=tL({},e),r.dispatchAction(tL(e,{type:n[1],seriesIndex:(o=e,a=[],i.eachComponent({mainType:"series",subType:t,query:o},function(t){a.push(t.seriesIndex)}),a)}))})})}function fQ(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s=0&&go(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,c=null==e.y?0:e.y,p=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,h=h*n.width+n.x,c=c*n.height+n.y,p=p*n.height+n.y),u=go(u)?u:0,h=go(h)?h:1,c=go(c)?c:0,p=go(p)?p:0,t.createLinearGradient(u,c,h,p)),f=e.colorStops,g=0;g0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:tK(e)?[e]:tX(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tV(r,function(t){return t/a}),o/=a)}return[r,o]}t.s(["createSymbol",()=>gn,"normalizeSymbolOffset",()=>gr,"normalizeSymbolSize",()=>gi,"symbolBuildProxies",()=>f9],84449);var gh=new a5(!0);function gc(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function gp(t){return"string"==typeof t&&"none"!==t}function gd(t){var e=t.fill;return null!=e&&"none"!==e}function gf(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 gg(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 gy(t,e,n){var i=o6(e.image,e.__image,n);if(o7(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ef),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var gv=["shadowBlur","shadowOffsetX","shadowOffsetY"],gm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function gx(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){gw(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?a_.opacity:a}(i||e.blend!==n.blend)&&(o||(gw(t,r),o=!0),t.globalCompositeOperation=e.blend||a_.blend);for(var s=0;sgI,"brushSingle",()=>gM,"createCanvasPattern",()=>gy],19506);var gT=new f5,gC=new ih(100),gA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gD(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&gT.delete(t);var o=gT.get(t);if(o)return o;var a=tP(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"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o,s=[n],l=!0,u=0;u0&&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[gE]){if(this._disposed)return void gK(this.id);if(t$(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[gE]=!0,Y(this),!this._model||e){var i,r,o,a=new h6(this._api),s=this._theme,l=this._model=new hQ;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},g1);var u={seriesTransition:o,optionChanged:!0};if(n)this[gB]={silent:i,updateParams:u},this[gE]=!1,this.getZr().wakeUp();else{try{C(this),k.update.call(this,null,u)}catch(t){throw this[gB]=null,this[gE]=!1,t}this._ssr||this._zr.flush(),this[gB]=null,this[gE]=!1,R.call(this,i),N.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[gE]){if(this._disposed)return void gK(this.id);var n=this._model;if(n){var i=e&&e.silent,r=null;this[gB]&&(null==i&&(i=this[gB].silent),r=this[gB].updateParams,this[gB]=null),this[gE]=!0,Y(this);try{this._updateTheme(t),n.setTheme(this._theme),C(this),k.update.call(this,{type:"setTheme"},r)}catch(t){throw this[gE]=!1,t}this[gE]=!1,R.call(this,i),N.call(this,i)}}},e.prototype._updateTheme=function(t){tj(t)&&(t=g5[t]),t&&((t=tA(t))&&cd(t,!0),this._theme=t)},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||tl.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(){var t=this._zr;return tB(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void gK(this.id);var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;tB(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 o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tB(i,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void gK(this.id);var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(!g6[n])return this.getDataURL(t);var a=o,s=o,l=-o,u=-o,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();tB(g4,function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(tA(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),h.push({dom:p,left:d.left,top:d.top})}}),a*=c,s*=c,l*=c,u*=c;var p=l-a,d=u-s,f=tp.createCanvas(),g=rJ(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),!e)return t.connectedBackgroundColor&&g.add(new s_({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),tB(h,function(t){var e=new sd({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"));var y="";return tB(h,function(t){var e=t.left-a,n=t.top-s;y+=''+t.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,n){return L(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return L(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return L(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void gK(this.id):(tB(oz(this._model,t),function(t,i){i.indexOf("Models")>=0&&tB(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=oz(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?fq(i,r,e):fK(i,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,e,n=this;tB(gq,function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&f0(o,function(t){var e=sz(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=tL({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)});var i=this._messageCenter;tB(gQ,function(t,e){i.on(e,function(t){n.trigger(e,t)})}),t=this,e=this._api,i.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(fQ("map","selectchanged",t,i,n),fQ("pie","selectchanged",t,i,n)):"select"===n.fromAction?(fQ("map","selected",t,i,n),fQ("pie","selected",t,i,n)):"unselect"===n.fromAction&&(fQ("map","unselected",t,i,n),fQ("pie","unselected",t,i,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?gK(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void gK(this.id);this._disposed=!0,this.getDom()&&oW(this.getDom(),g9,"");var t=this._api,e=this._model;tB(this._componentsViews,function(n){n.dispose(e,t)}),tB(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete g4[this.id]},e.prototype.resize=function(t){if(!this[gE]){if(this._disposed)return void gK(this.id);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[gB]&&(null==i&&(i=this[gB].silent),n=!0,this[gB]=null),this[gE]=!0,Y(this);try{n&&C(this),k.update.call(this,{type:"resize",animation:tL({duration:0},t&&t.animation)})}catch(t){throw this[gE]=!1,t}this[gE]=!1,R.call(this,i),N.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void gK(this.id);if(t$(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),g3[t]){var n=g3[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?gK(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=tL({},t);return e.type=gJ[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void gK(this.id);if((t$(e)||(e={silent:!!e}),g$[t.type])&&this._model){if(this[gE])return void this._pendingActions.push(t);var n=e.silent;O.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&tl.browser.weChat&&this._throttledZrFlush(),R.call(this,n),N.call(this,n)}},e.prototype.updateLabelLayout=function(){gL.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void gK(this.id);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;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!lE(t)){if(t instanceof sl&&lk(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}C=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),A(t,!0),A(t,!1),e.plan()},A=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;lh.get("hoverLayerThreshold"))||tl.node||tl.worker||h.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=u._chartsMap[t.__viewId];e.__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}}),gL.trigger("series:afterupdate",e,o,s)},H=function(t){t[gV]=!0,t.getZr().wakeUp()},Y=function(t){t[gz]=(t[gz]+1)%1e3},U=function(t){t[gV]&&(t.getZr().storage.traverse(function(t){lE(t)||e(t)}),t[gV]=!1)},F=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return tn(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){le(e,n),H(t)},n.prototype.leaveEmphasis=function(e,n){ln(e,n),H(t)},n.prototype.enterBlur=function(e){li(e),H(t)},n.prototype.leaveBlur=function(e){lr(e),H(t)},n.prototype.enterSelect=function(e){lo(e),H(t)},n.prototype.leaveSelect=function(e){la(e),H(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.prototype.getMainProcessVersion=function(){return t[gz]},n}(h3))(t)},W=function(t){function e(t,e){for(var n=0;ntR(g1,t)&&g1.push(t)}function yl(t,e){yx(g0,t,e,2e3)}function yu(t){yc("afterinit",t)}function yh(t){yc("afterupdate",t)}function yc(t,e){gL.on(t,e)}function yp(t,e,n){function i(t){return t.toLowerCase()}tZ(e)&&(n=e,e=""),t$(t)?(r=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(r=t,l=e);var r,o,a,s,l=i(l||r),u=o?i(r):l;g$[r]||(et(gG.test(r)&&gG.test(l)),o&&et(l!==r),g$[r]={actionType:r,refinedEventType:l,nonRefinedEventType:u,update:a,action:n,refineEvent:o},gQ[l]=1,o&&s&&(gQ[u]=1),gJ[u]=r)}function yd(t,e){u4.register(t,e)}function yf(t){var e=u4.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function yg(t,e){gO[t]=e}function yy(t,e){yx(g2,t,e,1e3,"layout")}function yv(t,e){yx(g2,t,e,3e3,"visual")}var ym=[];function yx(t,e,n,i,r){if((tZ(e)||t$(e))&&(n=e,e=i),!(tR(ym,n)>=0)){ym.push(n);var o=fA.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function y_(t,e){g3[t]=e}function yb(t){td({createCanvas:t})}function yw(t,e,n){var i=gP.registerMap;i&&i(t,e,n)}function yS(t){var e=gP.getMap;return e&&e(t)}var yM=function(t){var e=(t=tA(t)).type;e||h$("");var n=e.split(":");2!==n.length&&h$("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,cq.set(e,t)};function yI(t,e,n,i){return{eventContent:{selected:lv(n),isFromClick:e.isFromClick||!1}}}yv(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=fM(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=fI(t,i),l=o[s],u=tZ(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tZ(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||tZ(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=tL({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}}),yv(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=fM(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){fT.option=n[i];var a=r(fT);tL(t.ensureUniqueItemVisual(e,"style"),a),fT.option.decal&&(t.setItemVisual(e,"decal",fT.option.decal),fT.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),yv(4500,{performRawSeries:!0,overallReset:function(t){var e=el();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)),fb(t).scope=r}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),i={},r=e.getData(),o=fb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fI(e,a);r.each(function(t){i[r.getRawIndex(t)]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}}),yv(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a0?t[n-1].seriesModel:null)}),tB(e=t,function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,p,d=a.get(t.stackedDimension,h);if(isNaN(d))return r;s?p=a.getRawIndex(h):c=a.get(t.stackedByDimension,h);for(var f=NaN,g=n-1;g>=0;g--){var y=e[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&d>=0&&v>0||"samesign"===l&&d<=0&&v<0){d=ol(d,v),f=v;break}}}return i[0]=d,i[1]=f,i})}))})}),g3.default=function(t,e){tP(e=e||{},{text:"loading",textColor:hx.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:hx.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new rj,r=new s_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(r);var o=new sM({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new s_({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new dv({shape:{startAngle:-fC/2,endAngle:-fC/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*fC/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*fC/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},yp({type:sY,event:sY,update:sY},ed),yp({type:sX,event:sX,update:sX},ed),yp({type:sZ,event:sK,update:sZ,action:ed,refineEvent:yI,publishNonRefinedEvent:!0}),yp({type:sj,event:sK,update:sj,action:ed,refineEvent:yI,publishNonRefinedEvent:!0}),yp({type:sq,event:sK,update:sq,action:ed,refineEvent:yI,publishNonRefinedEvent:!0}),g5.default={},g5.dark=fY;var yT={};t.s(["PRIORITY",()=>gN,"connect",()=>ye,"dataTool",()=>yT,"dependencies",()=>gR,"disConnect",()=>yn,"disconnect",()=>yn,"dispose",()=>yi,"getCoordinateSystemDimensions",()=>yf,"getInstanceByDom",()=>yr,"getInstanceById",()=>yo,"getMap",()=>yS,"init",()=>yt,"registerAction",()=>yp,"registerCoordinateSystem",()=>yd,"registerCustomSeries",()=>yg,"registerLayout",()=>yy,"registerLoading",()=>y_,"registerMap",()=>yw,"registerPostInit",()=>yu,"registerPostUpdate",()=>yh,"registerPreprocessor",()=>ys,"registerProcessor",()=>yl,"registerTheme",()=>ya,"registerTransform",()=>yM,"registerUpdateLifecycle",()=>yc,"registerVisual",()=>yv,"setCanvasCreator",()=>yb,"version",()=>"6.0.0"],12908);var yC=[],yA={registerPreprocessor:ys,registerProcessor:yl,registerPostInit:yu,registerPostUpdate:yh,registerUpdateLifecycle:yc,registerAction:yp,registerCoordinateSystem:yd,registerLayout:yy,registerVisual:yv,registerTransform:yM,registerLoading:y_,registerMap:yw,registerImpl:function(t,e){gP[t]=e},PRIORITY:gN,ComponentModel:hy,ComponentView:pC,SeriesModel:px,ChartView:fu,registerComponentModel:function(t){hy.registerClass(t)},registerComponentView:function(t){pC.registerClass(t)},registerSeriesModel:function(t){px.registerClass(t)},registerChartView:function(t){fu.registerClass(t)},registerCustomSeries:function(t,e){gO[t]=e},registerSubTypeDefaulter:function(t,e){hy.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){rq[t]=e}};function yD(t){tX(t)?tB(t,function(t){yD(t)}):tR(yC,t)>=0||(yC.push(t),tZ(t)&&(t={install:t}),t.install(yA))}t.s(["use",()=>yD],24388);var yk=Math.sin,yL=Math.cos,yP=Math.PI,yO=2*Math.PI,yR=180/yP,yN=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,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=iV(h-yO)||(u?l>=yO:-l>=yO),p=l>0?l%yO:l%yO+yO,d=!1;d=!!c||!iV(h)&&p>=yP==!!u;var f=t+n*yL(o),g=e+i*yk(o);this._start&&this._add("M",f,g);var y=Math.round(r*yR);if(c){var v=1/this._p,m=(u?1:-1)*(yO-v);this._add("A",n,i,y,1,+u,t+n*yL(o+m),e+i*yk(o+m)),v>.01&&this._add("A",n,i,y,0,+u,f,g)}else{var x=t+n*yL(a),_=e+i*yk(a);this._add("A",n,i,y,+d,+u,x,_)}},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,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,o)+("style"!==r?e$(a):a||"")+(i?""+n+tV(i,function(e){return t(e)}).join(n)+n:"")+""}(t)}function yX(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yZ(t,e,n,i){return yU("svg","root",{width:t,height:e,xmlns:yG,"xmlns:xlink":yF,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var yj=0,yq={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"},yK="transform-origin",y$={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function yJ(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function yQ(t){return tj(t)?yq[t]?"cubic-bezier("+yq[t]+")":ia(t)?t:"":""}function y0(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof dm){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(tB(o,function(t){var e=yX(n.zrId);e.animation=!0,y0(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=tH(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=yJ(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length)return yJ(c,n)+" "+r[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+yj++;n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function y1(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+yj++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var y2=Math.round;function y5(t){return t&&tZ(t.toDataURL)}function y3(t,e,n,i){!function(t,e,n,i){var r,o,a=null==e.opacity?1:e.opacity;if(n instanceof sd)return t("opacity",a);if(null!=(r=e.fill)&&r!==yE){var s=iB(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;(i||l<1)&&t("fill-opacity",l)}else t("fill",yE);if(null!=(o=e.stroke)&&o!==yE){var u=iB(e.stroke);t("stroke",u.color);var h=e.strokeNoScale?n.getLineScale():1,c=h?(e.lineWidth||0)/h:0,p=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,d=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||d)&&t("paint-order",d?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var f=gu(n),g=f[0],y=f[1];g&&(y=yz(y||0),t("stroke-dasharray",g.join(",")),(y||i)&&t("stroke-dashoffset",y))}else i&&t("stroke-dasharray",yE);for(var v=0;v=0&&s||a;l&&(o=iN(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),y1(i,e,n,!0)}}(t,o,e),yU(s,t.id+"",o)}function vn(t,e){return t instanceof sl?ve(t,e):t instanceof sd?function(t,e){var n,i=t.style,r=i.image;if(r&&!tj(r)&&((n=r)&&tj(n.src)?r=r.src:y5(r)&&(r=r.toDataURL())),r){var o=i.x||0,a=i.y||0,s={href:r,width:i.width,height:i.height};return o&&(s.x=o),a&&(s.y=a),y8(s,t.transform),y3(s,i,t,e),y4(s,t),e.animation&&y0(t,s,e),yU("image",t.id+"",s)}}(t,e):t instanceof sh?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r,o,a,s=n.font||th,l=n.x||0,u=(r=n.y||0,o=rE(s),"top"===(a=n.textBaseline)?r+=o/2:"bottom"===a&&(r-=o/2),r),h={"dominant-baseline":"central","text-anchor":iW[n.textAlign]||n.textAlign};if(sk(n)){var c="",p=n.fontStyle,d=sA(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||tu,g=n.fontWeight;c+="font-size:"+d+";font-family:"+f+";",p&&"normal"!==p&&(c+="font-style:"+p+";"),g&&"normal"!==g&&(c+="font-weight:"+g+";"),h.style=c}else h.style="font: "+s;return i.match(/\s/)&&(h["xml:space"]="preserve"),l&&(h.x=l),u&&(h.y=u),y8(h,t.transform),y3(h,n,t,e),y4(h,t),e.animation&&y0(t,h,e),yU("text",t.id+"",h,void 0,i)}}(t,e):void 0}function vi(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(iY(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!iX(o))return;r="radialGradient",a.cx=t6(o.x,.5),a.cy=t6(o.y,.5),a.r=t6(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;uu?vv(e,null==i[p+1]?null:i[p+1].elm,i,l,p):vm(e,n,s,u))}(i,r,o):vf(o)?(vf(e.text)&&vc(i,""),vv(i,null,o,0,o.length-1)):vf(r)?vm(i,r,0,r.length-1):vf(e.text)&&vc(i,""):e.text!==n.text&&(vf(r)&&vm(i,r,0,r.length-1),vc(i,n.text)))}(t,e);else{var n=t.elm,i=vu(n);vy(e),null!==i&&(va(i,e.elm,vh(n)),vm(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return vn(t,yX(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=yX(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=yU("rect","bg",{width:t,height:e,x:"0",y:"0"}),iZ(n))vi({fill:n},r.attrs,"fill",i);else if(iU(n))vr({style:{fill:n},dirty:ed,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=iB(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=yU("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=tV(tH(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(yU("defs","defs",{},l)),t.animation){var u,h,c,p,d,f,g,y,v=(u=r.cssNodes,h=r.cssAnims,d=" {"+(p=(c={newline:!0}).newline?"\n":""),f=p+"}",g=tV(tH(u),function(t){return t+d+tV(tH(u[t]),function(e){return e+":"+u[t][e]+";"}).join(p)+f}).join(p),y=tV(tH(h),function(t){return"@keyframes "+t+d+tV(tH(h[t]),function(e){return e+d+tV(tH(h[t][e]),function(n){var i=h[t][e][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(p)+f}).join(p)+f}).join(p),g||y?[""].join(p):"");if(v){var m=yU("style","stl",{},[],v);o.push(m)}}return yZ(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},yY(this.renderToVNode({animation:t6(t.cssAnimation,!0),emphasis:t6(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:t6(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,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var y=f+1;y=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&p.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=c.dpr,b=0;b0&&t>i[0]){for(s=0;st));s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0),this._needsManuallyCompositing),u.__builtin__||tC("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),a=u),1&o.__dirty&&!o.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),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,tB(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tD(n[t],e,!0):n[t]=e;for(var i=0;i1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30),i="",r=[],o=0,a=0;othis._schema.getSourceDimensionIndex(t)))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,o,a,s,l,u,h,c,p,d,f,g,y=this;if(t instanceof c6&&(g=t),!g){var v=this.dimensions,m=cg(t)||tz(t)?new cw(t,v.length):t;g=new c6;var x=tV(v,function(t){return{type:y._dimInfos[t].type,property:t}});g.initData(m,x,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(i=this,r=this._schema,a=(o={}).encode={},s=el(),l=[],u=[],h={},tB(i.dimensions,function(t){var e=i.getDimensionInfo(t),n=e.coordDim;if(n){var r,o=e.coordDimIndex;vk(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),vk(h,n)[o]=i.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}hA.each(function(t,n){var i=vk(a,n),r=e.otherDims[n];null!=r&&!1!==r&&(i[r]=e.name)})}),c=[],p={},s.each(function(t,e){var n=a[e];p[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=tV(c,function(t){return i.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=p,(d=a.label)&&d.length&&(l=d.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new vD(h,r),o),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&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===hD&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(tX(r=this.getVisual(e))?r=r.slice():vV(r)&&(r=tL({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,vV(e)?tL(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){vV(t)?tL(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?tL(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){sB(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tB(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:tV(this.dimensions,this._getDimInfo,this),this.hostModel)),K(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];tZ(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(t7(arguments)))})},t.internalField=void(X=function(t){var e=t._invertedIndicesMap;tB(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new vG(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}),t}();function vU(t,e){return vY(t,e).dimensions}function vY(t,e){cg(t)||(t=cv(t));var n,i,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=el(),h=[],c=(n=t,i=s,r=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,o||0),tB(i,function(t){var e;t$(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),p=e.canOmitUnusedDimensions&&c>30,d=l===t.dimensionsDefine,f=d?vB(t):vz(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,c));for(var y=el(g),v=new c0(c),m=0;m0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(h),new vN({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:p})}t.s(["default",0,vH],43866),t.s(["createDimensions",()=>vU,"default",()=>vY],32571);var vX=function(t){this.coordSysDims=[],this.axisMap=el(),this.categoryAxisMap=el(),this.coordSysName=t},vZ={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",oV).models[0],o=t.getReferringComponents("yAxis",oV).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),vj(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),vj(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",oV).models[0];e.coordSysDims=["single"],n.set("single",r),vj(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",oV).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),vj(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),vj(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tB(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),vj(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",oV).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function vj(t){return"category"===t.get("type")}function vq(t,e,n){var i,r,o,a,s,l,u,h=(n=n||{}).byIndex,c=n.stackedCoordDimension;vE(e.schema)?(i=(r=e.schema).dimensions,o=e.store):i=e;var p=!!(t&&t.get("stack"));if(tB(i,function(t,e){tj(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(h||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(s=t))}),!s||h||a||(h=!0),s){l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var d=s.coordDim,f=s.type,g=0;tB(i,function(t){t.coordDim===d&&g++});var y={name:l,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:u,coordDim:u,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(u,f),v.storeDimIndex=o.ensureCalculationDimension(l,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:h,stackedOverDimension:u,stackResultDimension:l}}function vK(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function v$(t,e){return vK(t,e)?t.getCalculationInfo("stackResultDimension"):e}t.s(["enableDataStack",()=>vq,"getStackedDimension",()=>v$,"isDimensionStacked",()=>vK],80798);let vJ=function(t,e,n){n=n||{};var i,r,o,a,s,l,u,h,c=e.getSourceManager(),p=!1;t?(p=!0,h=cv(t)):p=(h=c.getSource()).sourceFormat===hD;var d=function(t){var e=t.get("coordinateSystem"),n=new vX(e),i=vZ[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(r=e.get("coordinateSystem"),o=u4.get(r),d&&d.coordSysDims&&(i=tV(d.coordSysDims,function(t){var e={name:t},n=d.axisMap.get(t);return n&&(e.type=vL(n.get("type"))),e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i),g=n.useEncodeDefaulter,y=tZ(g)?g:g?tY(hz,f,e):null,v=vY(h,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:y,canOmitUnusedDimensions:!p}),m=(a=v.dimensions,s=n.createInvertedIndices,d&&tB(a,function(t,e){var n=t.coordDim,i=d.categoryAxisMap.get(n);i&&(null==l&&(l=e),t.ordinalMeta=i.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),x=p?null:c.getSharedDataStore(v),_=vq(e,{schema:v,store:x}),b=new vH(v,e);b.setCalculationInfo(_);var w=null!=m&&function(t){if(t.sourceFormat===hD)return!tX(oC(function(t){for(var e=0;e-1&&(s.style.stroke=s.style.fill,s.style.fill=hx.color.neutral00,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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(px);function v0(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=cL(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var v2=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return tn(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=gn(t,-1,-1,2,2,null,o);a.attr({z2:t6(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=v5,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(){le(this.childAt(0))},e.prototype.downplay=function(){ln(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 o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,c)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};h?p.attr(d):lR(p,d,a,n),lG(p)}if(this._updateCommon(t,n,s,i,r),u){var p=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,lN(p,d,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=lX(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=gr(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof sd){var w=f.style;f.useStyle(tL({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(tL({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;lY(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):v0(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C,this.setSymbolScale(1),lx(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=sz(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&lz(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();lz(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return gi(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(rj);function v5(t,e){this.parent.drift(t,e)}function v3(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 v4(t){return null==t||t$(t)||(t={isIgnore:t}),t||{}}function v6(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:lX(e),cursorStyle:e.get("cursor")}}var v8=function(){function t(t){this.group=new rj,this._SymbolCtor=t||v2}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=v4(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=v6(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(v3(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!v3(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):lR(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}).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=v6(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=v4(n);for(var r=t.start;r0?o=a[0]:a[1]<0&&(o=a[1]),o),h=s.dim,c=l.dim,p=e.mapDimension(c),d=e.mapDimension(h),f=+("x"===c||"radius"===c),g=tV(t.dimensions,function(t){return e.mapDimension(t)}),y=!1,v=e.getCalculationInfo("stackResultDimension");return vK(e,g[0])&&(y=!0,g[0]=v),vK(e,g[1])&&(y=!0,g[1]=v),{dataDimsForPoint:g,valueStart:u,valueAxisDim:c,baseAxisDim:h,stacked:!!y,valueDim:p,baseDim:d,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function v9(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var mt="undefined"!=typeof Float32Array,me=mt?Float32Array:Array;function mn(t){return tX(t)?mt?new Float32Array(t):t:new me(t)}t.s(["LinearGradient",0,d_],34769);var mi=Math.min,mr=Math.max;function mo(t,e){return isNaN(t)||isNaN(e)}function ma(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y=r||g<0)break;if(mo(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y=i||mo(w,S))d=v,f=m;else{T=w-u,C=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if("x"===s){R=Math.abs(k),N=Math.abs(L);var E=T>0?1:-1;d=v-E*R*a,f=m,A=v+E*N*a,D=m}else if("y"===s){R=Math.abs(P),N=Math.abs(O);var z=C>0?1:-1;d=v,f=m-z*R*a,A=v,D=m+z*N*a}else R=Math.sqrt(k*k+P*P),d=v-T*a*(1-(I=(N=Math.sqrt(L*L+O*O))/(N+R))),f=m-C*a*(1-I),A=v+T*a*I,D=m+C*a*I,A=mi(A,mr(w,v)),D=mi(D,mr(S,m)),A=mr(A,mi(w,v)),D=mr(D,mi(S,m)),T=A-v,C=D-m,d=v-T*R/N,f=m-C*R/N,d=mi(d,mr(u,v)),f=mi(f,mr(h,m)),d=mr(d,mi(u,v)),f=mr(f,mi(h,m)),T=v-d,C=m-f,A=v+T*N/R,D=m+C*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=A,p=D}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}var ms=function(){this.smooth=0,this.smoothConstraint=!0},ml=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return tn(e,t),e.prototype.getDefaultStyle=function(){return{stroke:hx.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ms},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&mo(n[2*r-2],n[2*r-1]);r--);for(;i=0){var v=a?(c-i)*y+i:(h-n)*y+n;return a?[t,v]:[v,t]}n=h,i=c;break;case o.C:h=r[l++],c=r[l++],p=r[l++],d=r[l++],f=r[l++],g=r[l++];var m=a?n4(n,h,p,f,t,s):n4(i,c,d,g,t,s);if(m>0)for(var x=0;x=0){var v=a?n5(i,c,d,g,_):n5(n,h,p,f,_);return a?[t,v]:[v,t]}}n=f,i=g}}},e}(sl),mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e}(ms),mh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return tn(e,t),e.prototype.getDefaultShape=function(){return new mu},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&mo(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return tB(o.getViewLabels(),function(t){s[o.scale.getRawOrdinalNumber(t.tickValue)]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),M=this._data;M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))}),b||p.remove(),o.add(g);var I=!h&&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 T=function(t,e,n){var i,r,o=t.getVisual("visualMeta");if(o&&o.length&&t.count()){if("cartesian2d"!==e.type)return;for(var a=o.length-1;a>=0;a--){var s=t.getDimensionInfo(o[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){r=o[a];break}}if(!r)return;var l=e.getAxis(i),u=tV(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=iA((n-i)/(e.coord-i),[t.color,e.color]);return{coord:n,color:r}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}else n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}return r}(u,"x"===i?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";tB(p,function(t){t.offset=(t.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new d_(0,0,0,0,p,!0);return v[i]=f,v[i+"2"]=g,v}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&c.type===r.type&&I===this._step){v&&!f?f=this._newPolygon(u,_):f&&!v&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,u1(T));var C=g.getClipPath();C?lN(C,{shape:mw(this,r,!1,t).shape},t):g.setClipPath(mw(this,r,!0,t)),b&&p.updateData(a,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),mg(this._stackedOnPoints,_)&&mg(this._points,u)||(y?this._doUpdateAnimation(a,_,r,n,I,m,w):(I&&(_&&(_=mx(_,u,r,I,w)),u=mx(u,null,r,I,w)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&p.updateData(a,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,i),I&&(_&&(_=mx(_,u,r,I,w)),u=mx(u,null,r,I,w)),d=this._newPolyline(u),v?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,u1(T)),g.setClipPath(mw(this,r,!0,t));var A=t.getModel("emphasis"),D=A.get("focus"),k=A.get("blurScope"),L=A.get("disabled");d.useStyle(tP(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),lS(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),sz(d).seriesIndex=t.seriesIndex,lx(d,D,k,L);var P=mm(t.get("smooth")),O=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:O,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(tP(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(N=mm(R.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:N,smoothMonotone:O,connectNulls:w}),lS(f,t,"areaStyle"),sz(f).seriesIndex=t.seriesIndex,lx(f,D,k,L)}var E=this._changePolyState;a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=E)}),this._polyline.onHoverStateChange=E,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){sz(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(),o=oR(r,i);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))fu.prototype.highlight.call(this,t,e,n,i);else{var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new v2(r,o)).x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=oR(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else fu.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;s6(this._polyline,t),e&&s6(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ml({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 mh({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,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");tZ(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=tZ(u)?u(null):u;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],c=void 0,p=void 0,d=void 0;if(n)if(r){var f=e.pointToCoord(s);i?(c=n.startAngle,p=n.endAngle,d=-f[1]/180*Math.PI):(c=n.r0,p=n.r,d=f[0])}else i?(c=n.x,p=n.x+n.width,d=t.x):(c=n.y+n.height,p=n.y,d=t.y);var g=p===c?0:(d-c)/(p-c);a&&(g=1-g);var y=tZ(u)?u(o):l*g+h,v=t.getSymbolPath(),m=v.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),m&&m.animateFrom({style:{opacity:0}},{duration:300,delay:y}),v.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(mb(t)){var r,o,a,s=t.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var h=this._endLabel;h||((h=this._endLabel=new sM({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=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}(u);c>=0&&(lY(l,lX(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(t,e,n){return null!=n?v1(s,n):v0(s,t)},enableTextSetter:!0},(o=(r=e.getBaseAxis()).isHorizontal(),a=r.inverse,{normal:{align:i.get("align")||(o?a?"right":"left":"center"),verticalAlign:i.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){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"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a=+("x"!==n),s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=m_(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{var T=l.getPointOn(m,b);T&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),A=h.getRawValue(S[1]);r&&(I=oU(n,p,C,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0,T=m_(u,D);r&&(I=h.getRawValue(D)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var k=l0(s);"function"==typeof k.setLabelText&&k.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a,s){for(var l,u=(l=[],e.diff(t).add(function(t){l.push({cmd:"+",idx:t})}).update(function(t,e){l.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){l.push({cmd:"-",idx:t})}).execute(),l),h=[],c=[],p=[],d=[],f=[],g=[],y=[],v=v7(r,e,a),m=t.getLayout("points")||[],x=e.getLayout("points")||[],_=0;_3e3||l&&mv(p,f)>3e3){s.stopAnimation(),s.setShape({points:d}),l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f}));return}s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),lR(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),lR(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.round(a/(Math.abs(u[1]-u[0])*(h||1)));if(isFinite(c)&&c>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/c)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/c));var p=void 0;tj(r)?p=mI[r]:tZ(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,p,mT))}}}}}var mA="__ec_stack_";function mD(t){return t.get("stack")||mA+t.seriesIndex}function mk(t){return t.dim+t.index}function mL(t,e){var n=[];return e.eachSeriesByType(t,function(t){mE(t)&&n.push(t)}),n}function mP(t){var e=function(t){var e={};tB(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,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return tB(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=e[r.dim+"_"+r.index],s=Math.abs(o[1]-o[0]),l=r.scale.getExtent(),u=Math.abs(l[1]-l[0]);i=a?s/u*a:s}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var c=r9(t.get("barWidth"),i),p=r9(t.get("barMaxWidth"),i),d=r9(t.get("barMinWidth")||(mz(t)?.5:1),i),f=t.get("barGap"),g=t.get("barCategoryGap"),y=t.get("defaultBarGap");n.push({bandWidth:i,barWidth:c,barMaxWidth:p,barMinWidth:d,barGap:f,barCategoryGap:g,defaultBarGap:y,axisKey:mk(r),stackId:mD(t)})}),mO(n)}function mO(t){var e={};tB(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;!a[s]&&o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)});var n={};return tB(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap;null==a&&(a=Math.max(35-4*tH(r).length,15)+"%");var s=r9(a,o),l=r9(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),tB(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=Math.max(c=(u-s)/(h+(h-1)*l),0);var p=0;tB(r,function(t,e){t.width||(t.width=c),i=t,p+=t.width*(1+l)}),i&&(p-=i.width*l);var d=-p/2;tB(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function mR(t,e){var n=mL(t,e),i=mP(n);tB(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=mD(t),o=i[mk(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function mN(t){return{seriesType:t,plan:pA(),reset:function(t){if(mE(t)){var e,n,i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=r.getOtherAxis(o),s=i.getDimensionIndex(i.mapDimension(a.dim)),l=i.getDimensionIndex(i.mapDimension(o.dim)),u=t.get("showBackground",!0),h=i.mapDimension(a.dim),c=i.getCalculationInfo("stackResultDimension"),p=vK(i,h)&&!!i.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),f=((n=(e=a).model.get("startValue"))||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))),g=mz(t),y=t.get("barMinHeight")||0,v=c&&i.getDimensionIndex(c),m=i.getLayout("size"),x=i.getLayout("offset");return{progress:function(t,e){for(var n,i=t.count,o=g&&mn(3*i),a=g&&u&&mn(3*i),h=g&&mn(i),c=r.master.getRect(),_=d?c.width:c.height,b=e.getStore(),w=0;null!=(n=t.next());){var S=b.get(p?v:s,n),M=b.get(l,n),I=f,T=void 0;p&&(T=S-b.get(s,n));var C=void 0,A=void 0,D=void 0,k=void 0;if(d){var L=r.dataToPoint([S,M]);if(p){var P=r.dataToPoint([T,M]);I=P[0]}C=I,A=L[1]+x,D=L[0]-I,k=m,Math.abs(D)s){h=(d+u)/2;break}1===p&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!i.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}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",defaultBarGap:"10%"},e}(px);px.registerClass(mB);var mV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.getInitialData=function(){return vJ(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=us(mB.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:hx.color.primary,borderWidth:2}},realtimeSort:!1}),e}(mB),mG=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},mF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return tn(e,t),e.prototype.getDefaultShape=function(){return new mG},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-r)*.5,s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-lo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++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){lV(e,t,sz(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}(fu),mj={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,o=t.y+t.height,a=mY(e.x,t.x),s=mX(e.x+e.width,r),l=mY(e.y,t.y),u=mX(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},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=mX(e.r,t.r),o=mY(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},mq={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new s_({shape:tL({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u,h,c=!r&&l?mF:dt,p=new c({shape:i,z2:1});if(p.name="item",u=m2(r),h=c===mF,p.calculateTextPosition=function(t,e,n){var i=e.position;if(!i||i instanceof Array)return rB(t,e,n);var r=u(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,p=a.r0,d=(c+p)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=h?Math.abs(c-p)/2:0,m=Math.cos,x=Math.sin,_=s+c*m(f),b=l+c*x(f),w="left",S="top";switch(r){case"startArc":_=s+(p-o)*m(y),b=l+(p-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(p+o)*m(y),b=l+(p+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+mW(f,o+v,!1),b=l+d*x(f)+mH(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+mW(f,-o+v,!1),b=l+d*x(f)+mH(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(c+o)*m(y),b=l+(c+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(c-o)*m(y),b=l+(c-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+mW(g,o+v,!0),b=l+d*x(g)+mH(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+mW(g,-o+v,!0),b=l+d*x(g)+mH(g,-o+v,!0),w="right",S="middle";break;default:return rB(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t},o){var d=p.shape,f=r?"r":"endAngle",g={};d[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?lR:lN)(p,{shape:g},o)}return p}};function mK(t,e,n,i,r,o,a,s){var l,u;o?(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||(a?lR:lN)(n,{shape:l},e,r,null),(a?lR:lN)(n,{shape:u},e?t.baseAxis.model:null,r)}function m$(t,e){for(var n=0;n0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},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 m2(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function m5(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,h=mU(i.getModel("itemStyle"),u,!0);tL(u,h),t.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=lX(i);lY(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:v0(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,function(t,e,n,i){if(tK(i))return t.setTextConfig({rotation:i});if(tX(e))return t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=(a+s)/2;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-r;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===y?d:y,m2(a),i.get(["label","rotate"]))}l1(g,f,o.getRawValue(n),function(t){return v1(e,t)});var v=i.getModel(["emphasis"]);lx(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),lS(t,i),null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",tB(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var m3=function(){},m4=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return tn(e,t),e.prototype.getDefaultShape=function(){return new m3},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);sz(this).dataIndex=e>=0?e:null},30,!1);function m7(t,e,n){if(mf(n,"cartesian2d")){var i=n.getArea();return{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var m9=2*Math.PI,xt=Math.PI/180;function xe(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=hr(t,n),o=r.cx,a=r.cy,s=r.r,l=r.r0,u=r.viewRect,h=-t.get("startAngle")*xt,c=t.get("endAngle"),p=t.get("padAngle")*xt;c="auto"===c?h-m9:-c*xt;var d=t.get("minAngle")*xt+p,f=0;e.each(i,function(t){!isNaN(t)&&f++});var g=e.getSum(i),y=Math.PI/(g||f)*2,v=t.get("clockwise"),m=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=v?1:-1,w=[h,c],S=b*p/2;a2(w,!v),h=w[0],c=w[1];var M=xn(t);M.startAngle=h,M.endAngle=c,M.clockwise=v,M.cx=o,M.cy=a,M.r=s,M.r0=l;var I=Math.abs(c-h),T=I,C=0,A=h;if(e.setLayout({viewRect:u,r:s}),e.each(i,function(t,n){if(isNaN(t))return void e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:o,cy:a,r0:l,r:m?NaN:s});(i="area"!==m?0===g&&x?y:t*y:I/f)i?h=u=A+b*i/2:(u=A+S,h=r-S),e.setItemLayout(n,{angle:i,startAngle:u,endAngle:h,clockwise:v,cx:o,cy:a,r0:l,r:m?r7(t,_,[l,s]):s}),A=r}),Tr&&(r+=xr);var d=Math.atan2(s,a);if(d<0&&(d+=xr),d>=i&&d<=r||d+xr>=i&&d+xr<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,xh.fromArray(t[0]),xc.fromArray(t[1]),xp.fromArray(t[2]),nh.sub(xd,xh,xc),nh.sub(xf,xp,xc);var n=xd.len(),i=xf.len();if(!(n<.001)&&!(i<.001)&&(xd.scale(1/n),xf.scale(1/i),Math.cos(e)1&&nh.copy(xv,xp),xv.toArray(t[1])}}}function xx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function x_(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=ek(i[0],i[1]),o=ek(i[1],i[2]);if(!r||!o){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*n,s=eO([],i[1],i[0],a/r),l=eO([],i[1],i[2],a/o),u=eO([],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 h=1;h0&&r&&b(-d/l,0,l);var v=t[0],m=t[l-1];function x(){a=v.rect[u]-n,s=i-m.rect[u]-m.rect[h]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){b(i*n,0,l);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function b(e,n,i){0!==e&&(p=!0);for(var r=n;r0)for(var o=0;o0;o--){var p=i[o-1]*c;b(-p,o,l)}}}function S(t){for(var e=t<0?-1:1,n=Math.ceil((t=Math.abs(t))/(l-1)),i=0;i0?b(n,0,i+1):b(-n,l-i-1,l),(t-=n)<=0)return}return x(),a<0&&w(-a,.8),s<0&&w(s,.8),x(),_(a,s,1),_(s,a,-1),x(),a<0&&S(-a),s<0&&S(s),p}function xO(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return!!e.suggestIgnore-!!t.suggestIgnore||e.priority-t.priority});for(var i=0;in?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len;u.rB=Math.abs(c)t.unconstrainedWidth?null:p:null;i.setStyle("width",d)}xB(o,i)}}}function xB(t,e){xG.rect=t,xC(xG,e,xV)}var xV={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},xG={};function xF(t){return"center"===t.position}var xW=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new sM;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return tn(e,t),e.prototype.updateData=function(t,e,n,i){var r=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=tL(mU(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))return void this.setShape(l);if(i){this.setShape(l);var u=r.getShallow("animationType");r.ecModel.ssr?(lN(this,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===u?(this.shape.r=s.r0,lN(this,{shape:{r:s.r}},r,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),lN(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},r,e)):(this.shape.endAngle=s.startAngle,lR(this,{shape:{endAngle:s.endAngle}},r,e))}else lG(this),lR(this,{shape:l},r,e);this.useStyle(t.getItemVisual(e,"style")),lS(this,o);var h=(s.startAngle+s.endAngle)/2,c=r.get("selectedOffset"),p=Math.cos(h)*c,d=Math.sin(h)*c,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(r,t,e),this.ensureState("emphasis").shape=tL({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},mU(a.getModel("itemStyle"),s)),tL(this.ensureState("select"),{x:p,y:d,shape:mU(o.getModel(["select","itemStyle"]),s)}),tL(this.ensureState("blur"),{shape:mU(o.getModel(["blur","itemStyle"]),s)});var g=this.getTextGuideLine(),y=this.getTextContent();g&&tL(g.ensureState("select"),{x:p,y:d}),tL(y.ensureState("select"),{x:p,y:d}),lx(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),r=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;lY(this,lX(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new dl,this.setTextGuideLine(h)),xb(this,xw(i),{stroke:a,opacity:t8(r.get(["lineStyle","opacity"]),s,1)})}},e}(dt),xH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return tn(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u200?10:2);var C=_.getModel("labelLine"),A=C.get("length");A=r9(A,u);var D=C.get("length2");if(D=r9(D,u),Math.abs(v.endAngle-v.startAngle)0?"right":"left":L>0?"left":"right"}var V=Math.PI,G=0,F=b.get("rotate");if(tK(F))G=V/180*F;else if("center"===w)G=0;else if("radial"===F||!0===F)G=L<0?-k+V:-k;else if("tangential"===F&&"outside"!==w&&"outer"!==w){var W=Math.atan2(L,P);W<0&&(W=2*V+W),P>0&&(W=V+W),G=W-V}if(o=!!G,m.x=s,m.y=c,m.rotation=G,m.setStyle({verticalAlign:"middle"}),O){m.setStyle({align:g});var H=m.states.select;H&&(H.x+=m.x,H.y+=m.y)}else{var U=new nM(0,0,0,0);xB(U,m),r.push({label:m,labelLine:x,position:w,len:A,len2:D,minTurnAngle:C.get("minTurnAngle"),maxSurfaceAngle:C.get("maxSurfaceAngle"),surfaceNormal:new nh(L,P),linePoints:f,textAlign:g,labelDistance:S,labelAlignTo:M,edgeDistance:I,bleedMargin:T,rect:U,unconstrainedWidth:U.width,labelStyleWidth:m.style.width})}y.setTextConfig({inside:O})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p0){n=n/180*Math.PI,xh.fromArray(t[0]),xc.fromArray(t[1]),xp.fromArray(t[2]),nh.sub(xd,xc,xh),nh.sub(xf,xp,xc);var i=xd.len(),r=xf.len();if(!(i<.001)&&!(r<.001)&&(xd.scale(1/i),xf.scale(1/r),xd.dot(e)=a)nh.copy(xv,xp);else{xv.scaleAndAdd(xf,o/Math.tan(Math.PI/2-s));var l=xp.x!==xc.x?(xv.x-xc.x)/(xp.x-xc.x):(xv.y-xc.y)/(xp.y-xc.y);if(isNaN(l))return;l<0?nh.copy(xv,xc):l>1&&nh.copy(xv,xp)}xv.toArray(t[1])}}}(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new nh(_[0][0],_[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},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,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(fu);function xU(t,e,n){e=tX(e)&&{coordDimensions:e}||tL({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=new vH(vY(i,e).dimensions,t);return r.initData(i,n),r}var xY=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}(),xX=oN(),xZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xY(tU(this.getData,this),tU(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xU(this,{coordDimensions:["value"],encodeDefaulter:tY(hB,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=xX(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),r=i.seats=os(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){oI(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,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(px);h={fullType:xZ.type,getCoord2:function(t){return t.getShallow("center")}},u6.set(h.fullType,{getCoord2:void 0}).getCoord2=h.getCoord2;var xj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tn(e,t),e.prototype.getInitialData=function(t,e){return vJ(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","matrix"],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:hx.color.primary}},universalTransition:{divideShape:"clone"}},e}(px);t.s(["BoundingRect",0,nM],47566);var xq=function(){},xK=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tn(e,t),e.prototype.getDefaultShape=function(){return new xq},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)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],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),xJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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=mM("").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 x$:new v8,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}(fu),xQ={left:0,right:0,top:0,bottom:0},x0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=hd(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&hp(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&hp(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:xQ,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:hx.color.transparent,borderWidth:1,borderColor:hx.color.neutral30},e}(hy),x1=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();t.s(["AxisModelCommonMixin",()=>x1],51213);var x2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oV).models[0]},e.type="cartesian2dAxis",e}(hy);tE(x2,x1);var x5={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:hx.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:hx.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:hx.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[hx.color.backgroundTint,hx.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:hx.color.neutral00,borderColor:hx.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},x3=tD({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},x5),x4=tD({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:hx.color.axisMinorSplitLine,width:1}}},x5),x6=tD({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},x4),x8=tP({logBase:10},x4);let x7={category:x3,value:x4,time:x6,log:x8};var x9=0,_t=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++x9,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&tV(i,_e);return new t({categories:r,needCollect:!r,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(!tj(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=el(this.categories))},t}();function _e(t){return t$(t)&&null!=t.value?t.value:t+""}var _n={value:1,category:1,time:1,log:1},_i=null;function _r(t,e,n,i){tB(_n,function(r,o){var a=tD(tD({},x7[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return tn(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=hc(this),i=n?hd(t):{};tD(t,e.getTheme().get(o+"Axis")),tD(t,this.getDefaultOption()),t.type=_o(t),n&&hp(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=_t.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.prototype.updateAxisBreaks=function(t){var e=_i;return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",_o)}function _o(t){return t.type||(t.data?"category":"value")}function _a(t){return"interval"===t.type||"log"===t.type}function _s(t){var e=Math.pow(10,of(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,oe(n*e)}function _l(t){return oi(t)+2}function _u(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function _h(t,e){return t>=e[0]&&t<=e[1]}var _c=function(){function t(){this.normalize=_p,this.scale=_d}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=tU(t.normalize,t),this.scale=tU(t.scale,t)):(this.normalize=_p,this.scale=_d)},t}();function _p(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]}function _f(t,e,n){var i=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/i,Math.log(n?e[1]:Math.max(0,e[1]))/i]}var _g=function(){function t(t){this._calculator=new _c,this._setting=t||{},this._extent=[1/0,-1/0];var e=ug;e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){var e=ug;e&&this._innerSetBreak(e.parseAxisBreakOption(t,tU(this.parse,this)))},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},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}();o1(_g);var _y=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new _t({})),tX(i)&&(i=new _t({categories:tV(i,function(t){return t$(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return tn(e,t),e.prototype.parse=function(t){return null==t?NaN:tj(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return _h(t,this._extent)&&t>=0&&t=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(_g);_g.registerClass(_y);var _v=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 tn(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return _h(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=_l(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=ug,a=[];if(!e)return a;if("only_break"===t.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]=0&&(l=oe(l+u*e,r))}if(a.length>0&&l===a[a.length-1].value)break;if(a.length>1e4)return[]}var h=a.length?a[a.length-1].value:i[1];return n[1]>h&&(t.expandToNicedExtent?a.push({value:oe(h+e,r)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(t.pruneByBreak,a,this._brkCtx.breaks,function(t){return t.value},this._interval,this._extent),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;ri[0]&&cn&&(c=h.interval=n),p=h.intervalPrecision=_l(c),o=h.niceTickExtent=[oe(Math.ceil(s[0]/c)*c,p),oe(Math.floor(s[1]/c)*c,p)],a=s,isFinite(o[0])||(o[0]=a[0]),isFinite(o[1])||(o[1]=a[1]),_u(o,0,a),_u(o,1,a),o[0]>o[1]&&(o[0]=o[1]),h);this._intervalPrecision=d.intervalPrecision,this._interval=d.interval,this._niceExtent=d.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();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;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval,r=this._intervalPrecision;t.fixMin||(e[0]=oe(Math.floor(e[0]/i)*i,r)),t.fixMax||(e[1]=oe(Math.ceil(e[1]/i)*i,r)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(_g);_g.registerClass(_v);var _m=function(t,e,n,i){for(;n>>1;t[r][1]6?6:g>3?3:g>2?2:1,x=uP(n),_=uV(n);break;case"week":case"half-week":case"day":m=(y=e/864e5)>16?16:y>7.5?7:y>3.5?4:y>1.5?2:1,x=uO(n),_=uG(n);break;case"half-day":case"quarter-day":case"hour":m=(v=e/36e5)>12?12:v>6?6:v>3.5?4:v>2?2:1,x=uR(n),_=uF(n);break;case"minute":m=_w(e,!0),x=uN(n),_=uW(n);break;case"second":m=_w(e,!1),x=uE(n),_=uH(n);break;case"millisecond":m=og(e,!0),x=uz(n),_=uU(n)}p>=i[0]&&c<=i[1]&&function(t,e,n,r,s,l,u){for(var h,c,p,d=((h=new Date(0))[s](1),c=h.getTime(),h[s](1+t),p=h.getTime()-c,function(t,e){return Math.max(0,Math.round((e-t)/p))}),f=e,g=new Date(f);f1e4));)if(g[s](g[r]()+t),f=g.getTime(),o){var y=o.calcNiceTickMultiple(f,d);y>0&&(g[s](g[r]()+y*t),f=g.getTime())}u.push({value:f,notAdd:!0})}(m,c,p,x,_,0,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-m})}}for(var h=0;h=i[0]&&g<=i[1]&&u++)}var y=r/e;if(u>1.5*y&&h>y/1.5||(s.push(d),u>y||t===ub[c]))break}l=[]}}for(var v=tF(tV(s,function(t){return tF(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),m=[],x=v.length-1,c=0;cn&&(this._approxInterval=n);var r=__.length,o=Math.min(_m(__,this._approxInterval,0,r),r-1);this._interval=__[o][1],this._intervalPrecision=_l(this._interval),this._minLevelUnit=__[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return tK(t)?t:+op(t)},e.prototype.contain=function(t){return _h(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(_v),__=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function _b(t,e,n,i){return uk(new Date(e),t,i).getTime()===uk(new Date(n),t,i).getTime()}function _w(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}_g.registerClass(_x);var _S=Math.floor,_M=Math.ceil,_I=Math.pow,_T=Math.log,_C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new _v,e}return tn(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),r=t.prototype.getTicks.call(this,e),o=this.base,a=this._originalScale._innerGetBreaks(),s=ug;return tV(r,function(t){var e,r=t.value,l=null,u=_I(o,r);if(r===n[0]&&this._fixMin?l=i[0]:r===n[1]&&this._fixMax&&(l=i[1]),s){var h=s.getTicksLogTransformBreak(t,o,a,_A);e=h.vBreak,null==l&&(l=h.brkRoundingCriterion)}return null!=l&&(u=_A(u,l)),{value:u,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var i=_f(this.base,[e,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var e=this.base,n=t.prototype.getExtent.call(this);n[0]=_I(e,n[0]),n[1]=_I(e,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=_A(n[0],i[0])),this._fixMax&&(n[1]=_A(n[1],i[1])),n},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=_f(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i=od(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&1>Math.abs(i)&&Math.abs(i)>0;)i*=10;var r=[oe(_M(e[0]/i)*i),oe(_S(e[1]/i)*i)];this._interval=i,this._intervalPrecision=_l(i),this._niceExtent=r}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=_T(e)/_T(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=_T(e)/_T(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),_I(this.base,e)},e.prototype.setBreaksFromOption=function(t){var e=ug;if(e){var n=e.logarithmicParseBreaksFromOption(t,this.base,tU(this.parse,this)),i=n.parsedOriginal,r=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(r)}},e.type="log",e}(_v);function _A(t,e){return oe(t,oi(e))}_g.registerClass(_C);var _D=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!h&&(l=0),l<0&&u<0&&!c&&(u=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(l=d,h=!0),null!=f&&(u=f,c=!0),{min:l,max:u,minFixed:h,maxFixed:c,isBlank:p}},t.prototype.modifyDataMinMax=function(t,e){this[_L[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[_k[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),_k={min:"_determinedMin",max:"_determinedMax"},_L={min:"_dataMin",max:"_dataMax"};function _P(t,e,n){var i=t.rawExtentInfo;return i||(i=new _D(t,e,n),t.rawExtentInfo=i),i}function _O(t,e){return null==e?null:e!=e?NaN:t.parse(e)}function _R(t,e){var n=t.type,i=_P(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=mL("bar",a),l=!1;if(tB(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e,n){if(t&&e)return t[mk(e)]}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;tB(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;tB(a,function(t){l=Math.max(t.offset+t.width,l)});var u=(s=Math.abs(s))+(l=Math.abs(l)),h=e-t,c=h/(1-(s+l)/o)-h;return e+=l/u*c,{min:t-=s/u*c,max:e}}(r,o,e,mP(s));r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function _N(t,e){var n=_R(t,e),i=n.extent,r=e.get("splitNumber");t instanceof _C&&(t.base=e.get("logBase"));var o=t.type,a=e.get("interval"),s="interval"===o||"time"===o;t.setBreaksFromOption(_X(e)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function _E(t,e){if(e=e||t.get("type"))switch(e){case"category":return new _y({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new _x({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(_g.getClass(e)||_v)}}function _z(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function _B(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n=uw(e);return function(e,i){return t.scale.getFormattedLabel(e,i,n)}}if(tj(e))return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")};if(!tZ(e))return function(e){return t.scale.getLabel(e)};if("category"===t.type)return function(n,i){return e(_V(t,n),n.value-t.scale.getExtent()[0],null)};var i=ug;return function(n,r){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(_V(t,n),r,o)}}function _V(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function _G(t){var e=t.get("interval");return null==e?"auto":e}function _F(t){return"category"===t.type&&0===_G(t.getLabelModel())}function _W(t,e){var n={};return tB(t.mapDimensionsAll(e),function(e){n[v$(t,e)]=!0}),tH(n)}function _H(t,e,n){e&&tB(_W(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}function _U(t){return"middle"===t||"center"===t}function _Y(t){return t.getShallow("show")}function _X(t){var e,n=t.get("breaks",!0);if(null!=n){return ug&&("x"===(e=t.axis).dim||"y"===e.dim||"z"===e.dim||"single"===e.dim)&&"category"!==e.type?n:void 0}}t.s(["createScaleByModel",()=>_E,"getAxisRawValue",()=>_V,"getDataDimensionsOnAxis",()=>_W,"getOptionCategoryInterval",()=>_G,"getScaleExtent",()=>_R,"ifAxisCrossZero",()=>_z,"isNameLocationCenter",()=>_U,"makeLabelFormatter",()=>_B,"niceScaleExtent",()=>_N,"retrieveAxisBreaksOption",()=>_X,"shouldAxisShow",()=>_Y,"shouldShowAllLabels",()=>_F,"unionAxisExtentFromData",()=>_H],51718);var _Z=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 tV(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tF(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}(),_j=["x","y"];function _q(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var _K=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=_j,e}return tn(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(_q(t)&&_q(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=nl([],p)}}},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(),o=new nM(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},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 eR(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return eR(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,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new nM(i,r,o,a)},e}(_Z),_$=oN(),_J=oN();function _Q(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function _0(t,e){var n=tV(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function _1(t,e,n){var i,r,o=_5(t),a=_G(e),s=1===n.kind;if(!s){var l=_4(o,a);if(l)return l}tZ(a)?i=bt(t,a):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return _J(t).autoInterval=n,!0}),n}var i=_J(t).autoInterval;return null!=i?i:_J(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=_9(t,r));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push(function(){return _6(o,a,u),!0}):_6(o,a,u),u}var _2=_3("axisTick"),_5=_3("axisLabel");function _3(t){return function(e){return _J(e)[t]||(_J(e)[t]={list:[]})}}function _4(t,e){for(var n=0;n=Math.abs(o-e)&&1>=Math.abs(a-n)&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function _9(t,e,n){var i=_B(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],h=r.count();0!==u&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=_F(t),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return d&&f-l!==o[1]&&g(o[1]),s}function bt(t,e,n){var i=t.scale,r=_B(t),o=[];return tB(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var be=[0,1],bn=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(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return oo(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(i.parse(t)),this.onBand&&"ordinal"===i.type&&bi(n=n.slice(),i.count()),r7(t,be,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&bi(n=n.slice(),i.count());var r=r7(t,n,be,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=function(t,e,n){var i=t.getTickModel().get("customValues");if(i){var r=t.scale.getExtent();return{ticks:tF(_0(t,i),function(t){return t>=r[0]&&t<=r[1]})}}return"category"===t.type?function(t,e){var n,i,r=_2(t),o=_G(e),a=_4(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),tZ(o))n=bt(t,o,!0);else if("auto"===o){var s=_1(t,t.getLabelModel(),_Q(2));i=s.labelCategoryInterval,n=tV(s.labels,function(t){return t.tickValue})}else n=_9(t,i=o,!0);return _6(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:tV(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,i=tV(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r,o,a=e.length;if(t.onBand&&!n&&a){var s=t.getExtent();if(1===a)e[0].coord=s[0],e[0].onBand=!0,r=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;tB(e,function(t){t.coord-=u/2,t.onBand=!0});var h=t.scale.getExtent();o=1+h[1]-e[a-1].tickValue,r={coord:e[a-1].coord+u*o,tickValue:h[1]+1,onBand:!0},e.push(r)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&p(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),p(s[1],r.coord)&&(i?r.coord=s[1]:e.pop()),i&&p(r.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function p(t,e){return t=oe(t),e=oe(e),c?t>e:t0&&t<100||(t=5),tV(this.scale.getMinorTicks(t),function(t){return tV(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n,i,r,o,a,s,l,u=t.getLabelModel().get("customValues");if(u){var h=_B(t),c=t.scale.getExtent();return{labels:tV(tF(_0(t,u),function(t){return t>=c[0]&&t<=c[1]}),function(e){var n={value:e};return{formattedLabel:h(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?(n=t,i=e,r=n.getLabelModel(),o=_1(n,r,i),!r.get("show")||n.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=_B(a),{labels:tV(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}(this,t=t||_Q(2)).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;return 0===n&&(n=1),Math.abs(Math.abs(t[1]-t[0]))/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n,i,r=e.kind,o=(i=(n=t).getLabelModel(),{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}),a=_B(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,u=l.getExtent(),h=l.count();if(u[1]-u[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var p=u[0],d=t.dataToCoord(p+1)-t.dataToCoord(p),f=Math.abs(d*Math.cos(s)),g=Math.abs(d*Math.sin(s)),y=0,v=0;p<=u[1];p+=c){var m=0,x=0,_=rO(a({value:p}),o.font,"center","top");m=1.3*_.width,x=1.3*_.height,y=Math.max(y,m,7),v=Math.max(v,x,7)}var b=y/f,w=v/g;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));if(1===r)return e.out.noPxChangeTryDetermine.push(tU(_8,null,t,S,h)),S;var M=_7(t,S,h);return null!=M?M:S}(this,t=t||_Q(2))},t}();function bi(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}t.s(["default",0,bn],95159);var br=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return tn(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)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(bn),bo="expandAxisBreak",ba="collapseAxisBreak",bs="toggleAxisBreak",bl="axisbreakchanged",bu={type:bo,event:bl,update:"update",refineEvent:bp},bh={type:ba,event:bl,update:"update",refineEvent:bp},bc={type:bs,event:bl,update:"update",refineEvent:bp};function bp(t,e,n,i){var r=[];return tB(t,function(t){r=r.concat(t.eventBreaks)}),{eventContent:{breaks:r}}}var bd=Math.PI,bf=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],bg=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],by=oN(),bv=oN(),bm=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),bx=ne(),b_=new nM(0,0,0,0),bb=function(t,e,n,i,r,o){if(_U(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&bw((a={},s=o.transGroup.transform,a.transform=fi(a.transform,s),a.localRect=fn(a.localRect,l),a.rect=fn(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=ft(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r)}else bS(o.labelInfoList,o.dirVec,i,r)};function bw(t,e,n){var i=new nh;xR(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&xD(e,i)}function bS(t,e,n,i){for(var r=nh.dot(i,e)>=0,o=0,a=t.length;o0?"top":"bottom",i="center"):oh(o-bd)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,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}(),bI=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],bT={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,h=[l[0],0],c=[l[1],0],p=h[0]>c[0];u&&(eR(h,h,u),eR(c,c,u));var d=tL({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())_i.buildAxisBreakLine(i,r,o,f);else{var g=new dc(tL({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},f));dX(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var y=i.get(["axisLine","symbol"]);if(null!=y){var v=i.get(["axisLine","symbolSize"]);tj(y)&&(y=[y,y]),(tj(v)||tK(v))&&(v=[v,v]);var m=gr(i.get(["axisLine","symbolOffset"])||0,v),x=v[0],_=v[1];tB([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(e,n){if("none"!==y[n]&&null!=y[n]){var i=gn(y[n],-x/2,-_/2,x,_,d.stroke,!0),o=e.r+e.offset,a=p?c:h;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}})}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){bk(e,r,s)&&bC(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){bk(e,r,s)&&bC(t,e,n,i,r,o,a,2);var l,u,h,c=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=bD(r.getTicksCoords(),n.transform,l,tP(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hg[1],_="start"===d&&!x||"start"!==d&&x,oh(m-bd/2)?(v=_?"bottom":"top",y="center"):oh(m-1.5*bd)?(v=_?"top":"bottom",y="center"):(v="middle",y=m<1.5*bd&&m>bd/2?_?"left":"right":_?"right":"left"),l={rotation:m,textAlign:y,textVerticalAlign:v},null!=(u=t.raw.axisNameAvailableWidth)&&(isFinite(u=Math.abs(u/Math.sin(l.rotation)))||(u=null)));var L=S.getFont(),P=i.get("nameTruncate",!0)||{},O=P.ellipsis,R=t4(t.raw.nameTruncateMaxWidth,P.maxWidth,u),N=s.nameMarginLevel||0,E=new sM({x:C.x,y:C.y,rotation:l.rotation,silent:bM.isLabelSilent(i),style:lZ(S,{text:c,font:L,overflow:"truncate",width:R,ellipsis:O,fill:S.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:S.get("align")||l.textAlign,verticalAlign:S.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(d8({el:E,componentModel:i,itemName:c}),E.__fullText=c,E.anid="name",i.get("triggerEvent")){var z=bM.makeAxisEventDataBase(i);z.targetType="axisName",z.name=c,sz(E).eventData=z}o.add(E),E.updateTransform(),e.nameEl=E;var B=h.nameLayout=xT({label:E,priority:E.z2,defaultAttr:{ignore:E.ignore},marginDefault:_U(b)?bf[N]:bg[N]});if(h.nameLocation=b,r.add(E),E.decomposeTransform(),t.shouldNameMoveOverlap&&B){var V=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,B,A,V)}}}};function bC(t,e,n,i,r,o,a,s){bL(e)||function(t,e,n,i,r,o){var a=r.axis,s=t4(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new rj;n.add(l);var u=_Q(i);if(!s||a.scale.isBlank())return bP(e,[],l,u);var h=r.getModel("axisLabel"),c=a.getViewLabels(u),p=(t4(t.raw.labelRotate,h.get("rotate"))||0)*bd/180,d=bM.innerTextLayout(t.rotation,p,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],y=r.get("triggerEvent"),v=1/0,m=-1/0;tB(c,function(t,e){var n,i="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,s=t.formattedLabel,u=t.rawLabel,p=h;if(f&&f[i]){var x=f[i];t$(x)&&x.textStyle&&(p=new ur(x.textStyle,h,r.ecModel))}var _=p.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=p.getShallow("align",!0)||d.textAlign,w=t6(p.getShallow("alignMinLabel",!0),b),S=t6(p.getShallow("alignMaxLabel",!0),b),M=p.getShallow("verticalAlign",!0)||p.getShallow("baseline",!0)||d.textVerticalAlign,I=t6(p.getShallow("verticalAlignMinLabel",!0),M),T=t6(p.getShallow("verticalAlignMaxLabel",!0),M),C=10+((null==(n=t.time)?void 0:n.level)||0);v=Math.min(v,C),m=Math.max(m,C);var A=new sM({x:0,y:0,rotation:0,silent:bM.isLabelSilent(r),z2:C,style:lZ(p,{text:s,align:0===e?w:e===c.length-1?S:b,verticalAlign:0===e?I:e===c.length-1?T:M,fill:tZ(_)?_("category"===a.type?u:"value"===a.type?i+"":i,e):_})});A.anid="label_"+i;var D=by(A);if(D.break=t.break,D.tickValue=i,D.layoutRotation=d.rotation,d8({el:A,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return A.isTruncated},value:u,tickIndex:e}}),y){var k,L,P,O,R=bM.makeAxisEventDataBase(r);R.targetType="axisLabel",R.value=u,R.tickIndex=e,t.break&&(R.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(R.dataIndex=i),sz(A).eventData=R,t.break&&(k=r,L=o,P=A,O=t.break,P.on("click",function(t){var e={type:bo,breaks:[{start:O.parsedBreak.breakOption.start,end:O.parsedBreak.breakOption.end}]};e[k.axis.dim+"AxisIndex"]=k.componentIndex,L.dispatchAction(e)}))}g.push(A),l.add(A)}),bP(e,tV(g,function(t){return{label:t,priority:by(t).break?t.z2+(m-v+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}(t,e,r,s,i,a);var l,u,h,c,p,d=e.labelLayoutList;l=t,u=i,h=d,c=o,p=u.get(["axisLabel","margin"]),tB(h,function(t,e){var n=xT(t);if(n){var i=n.label,r=by(i);n.suggestIgnore=i.ignore,i.ignore=!1,rC(bO,bR),bO.x=u.axis.dataToCoord(r.tickValue),bO.y=l.labelOffset+l.labelDirection*p,bO.rotation=r.layoutRotation,c.add(bO),bO.updateTransform(),c.remove(bO),bO.decomposeTransform(),rC(i,bO),i.markRedraw(),xM(n,!0),xT(n)}}),function(t,e,n){var i=ug;if(i){var r=i.retrieveAxisBreakPairs(n,function(t){return t&&by(t.label).break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===o||"auto"===o)&&tB(r,function(i){_i.adjustBreakLabelPair(t.axis.inverse,e,[xT(n[i[0]]),xT(n[i[1]])])})}}(i,t.rotation,d);var f=t.optionHideOverlap;(function(t,e,n){if(!_F(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(i,0,1),a(r,o-1,o-2)}function a(t,i,r){var o=xT(e[i]),a=xT(e[r]);if(o&&a){if(!1===t||o.suggestIgnore)return void bA(o.label);if(a.suggestIgnore)return void bA(a.label);if(!n){var s=[0,0,0,0];o=xk({marginForce:s},o),a=xk({marginForce:s},a)}xR(o,a,null,{touchThreshold:.1})&&(t?bA(a.label):bA(o.label))}}})(i,d,f),f&&xO(tF(d,function(t){return t&&!t.label.ignore})),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=!!t.axisName&&_U(t.nameLocation);tB(i,function(t){var e=xT(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?nl(bx,n.transform):nn(bx),e.transform&&nr(bx,bx,e.transform),nM.copy(b_,e.localRect),b_.applyTransform(bx),r?r.union(b_):nM.copy(r=new nM(0,0,0,0),b_))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",h=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-h)-Math.abs(e.label[u]-h)}),l&&r){var c=o.getExtent(),p=Math.min(c[0],c[1]),d=Math.max(c[0],c[1])-p;r.union(new nM(p,0,d,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,d)}function bA(t){t&&(t.ignore=!0)}function bD(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;lu[0]&&isFinite(f)&&isFinite(u[0]);)d=_s(d),f=u[1]-d*a;else{t.getTicks().length-1>a&&(d=_s(d));var y=d*a;(f=oe((g=Math.ceil(u[1]/d)*d)-y))<0&&u[0]>=0?(f=0,g=oe(y)):g>0&&u[1]<=0&&(g=0,f=-oe(y))}var v=(r[0].value-o[0].value)/s,m=(r[a].value-o[a].value)/s;i.setExtent.call(t,f+d*v,g+d*m),i.setInterval.call(t,d),(v||m)&&i.setNiceExtent.call(t,f+d,g-d)}var bB=[[3,1],[0,2]],bV=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_j,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=tH(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;_a(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(_N(l,s),_a(l)&&(e=a))}r.length&&(e||_N((e=r.pop()).scale,e.model),tB(r,function(t){bz(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};tB(n.x,function(t){bF(n,"y",t,r)}),tB(n.y,function(t){bF(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=hl(t,e),r=this._rect=ho(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(bH(o,r),!n){var l=(h=r,c=a,p=o,d=s,f=e,g=new bm(bZ),tB(p,function(t){return tB(t,function(t){_Y(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var a=bN(t,n),s=!1,l=!1,u=0;utR(["all","axisLabel"],b)?"all":b,outerBoundsClamp:[ot(t6(y.get("outerBoundsClampWidth",!0),"25%"),v.width),ot(t6(y.get("outerBoundsClampHeight",!0),"25%"),v.height)]}),S=w.outerBoundsRect,M=w.parsedOuterBoundsContain,I=w.outerBoundsClamp;S&&(u=bY(S,M,I,r,o,l,i))}bX(r,o,2,null,u,i)}tB(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]}t$(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;itR(s,e=i.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.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,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,i){if(bG(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new br(e,_E(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,tB(a.x,function(e,n){tB(a.y,function(r,o){var a="x"+n+"y"+o,s=new _K(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){tB(_W(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}tB(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(t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type){var i=bE(t),r=i.xAxisModel,o=i.yAxisModel;if(bG(r,e)&&bG(o,e)){var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return tB(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);0>tR(e,r)&&e.push(r),0>tR(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){u7({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=bE(t),n=e.xAxisModel,i=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}})}),i},t.dimensions=_j,t}();function bG(t,e){return t.getCoordSysModel()===e}function bF(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)bW(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&bW(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function bW(t){return t&&"category"!==t.type&&"time"!==t.type&&_z(t)}function bH(t,e){tB(t.x,function(t){return bU(t,e.x,e.width)}),tB(t.y,function(t){return bU(t,e.y,e.height)})}function bU(t,e,n){var i,r,o=[0,n],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),r=(i=t.getExtent())[0]+i[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function bY(t,e,n,i,r,o,a){bX(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),h(i,0,NaN),h(i,1,NaN);var l=null==tW(s,function(t){return t>0});return d3(i,s,!0,!0,n),bH(r,i),l;function u(t){tB(r[dR[t]],function(e){if(_Y(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r0&&e==e&&e>1e-4&&(t/=e),t}}function bX(t,e,n,i,r,o){var a=2===n;tB(e,function(e){return tB(e,function(e){if(_Y(e.model)){var n,i;n=e.axisBuilder,i=bN(t,e.model),n.updateCfg(i),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r})}})});var s={x:0,y:0};function l(e){s[dR[1-e]]=t[dN[e]]<=.5*o.refContainer[dN[e]]?0:1-e==1?2:1}l(0),l(1),tB(e,function(t,e){return tB(t,function(t){_Y(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var bZ=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";bb(t,e,n,i,r,o),_U(t.nameLocation)||tB(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&bS(t.labelInfoList,t.dirVec,i,r)})};function bj(t,e){return"all"===t||tX(t)&&tR(t,e)>=0||t===e}function bq(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[b$(t)]}function bK(t){return!!t.get(["handle","show"])}function b$(t){return t.type+"||"+t.id}var bJ={},bQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=bq(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=bK(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0)if(_)return wi(n,x,w,i);else{return r=t,o=e,a=n,s=i,l=x,u=b,(h=we(r)).items||(h.items=[]),p=wr(c=h.items,o,a,s,l,u,1),d=wr(c,o,a,s,l,u,-1),f=Math.abs(p-a)l/2||g&&y>g/2-s?wi(a,l,g,s):(c.push({fixedCoord:o,floatCoord:f,r:s}),f)}return n}function wi(t,e,n,i){return null===n?t+(Math.random()-.5)*e:t+(Math.random()-.5)*Math.min(Math.max(0,e),n-2*i)}function wr(t,e,n,i,r,o,a){for(var s=n,l=0;lr/2)return Number.MAX_VALUE;if(1===a&&f>s||-1===a&&f0,("cartesian2d"===i&&"ordinal"===o||"single"===i)&&a)){var l=t.getData();l.each(function(t){var e=s.dim,n=s.orient,i="horizontal"===n&&"category"!==s.type||"vertical"===n&&"category"===s.type,r=l.getItemLayout(t),o=l.getItemVisual(t,"symbolSize"),a=o instanceof Array?(o[1]+o[0])/2:o;if("y"===e||"single"===e&&i){var u=wn(s,r[0],r[1],a/2);l.setItemLayout(t,[r[0],u])}else if("x"===e||"single"===e&&!i){var u=wn(s,r[1],r[0],a/2);l.setItemLayout(t,[u,r[1]])}})}}})}function wa(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();tB(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r,a=i.dataToPoint(t,o);n[e][o]=ws(a)?a:[(r=i).cx,r.cy]})}),e.each(function(t){var r,o=tW(n[t],function(t){return ws(t)})||[(r=i).cx,r.cy];n[t].push(o.slice()),e.setItemLayout(t,n[t])})}})}function ws(t){return!isNaN(t[0])&&!isNaN(t[1])}function wl(t){var e=t.polar;if(e){tX(e)||(e=[e]);var n=[];tB(e,function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],tX(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}tB(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}t.i(6612),t.s(["Arc",0,dv,"BezierCurve",0,dg,"BoundingRect",0,nM,"Circle",0,pq,"CompoundPath",0,dm,"Ellipse",0,p$,"Group",0,rj,"Image",0,sd,"IncrementalDisplayable",0,dP,"Line",0,dc,"LinearGradient",0,d_,"OrientedBoundingRect",0,dk,"Path",0,sl,"Point",0,nh,"Polygon",0,da,"Polyline",0,dl,"RadialGradient",0,db,"Rect",0,s_,"Ring",0,dn,"Sector",0,dt,"Text",0,sM,"WH",()=>dN,"XY",()=>dR,"applyTransform",()=>dK,"calcZ2Range",()=>fo,"clipPointsByRect",()=>dQ,"clipRectByRect",()=>d0,"createIcon",()=>d1,"ensureCopyRect",()=>fn,"ensureCopyTransform",()=>fi,"expandOrShrinkRect",()=>d3,"extendPath",()=>dB,"extendShape",()=>dE,"getShapeClass",()=>dG,"getTransform",()=>dq,"groupTransition",()=>dJ,"initProps",()=>lN,"isBoundingRectAxisAligned",()=>ft,"isElementRemoved",()=>lE,"lineLineIntersect",()=>d5,"linePolygonIntersect",()=>d2,"makeImage",()=>dW,"makePath",()=>dF,"mergePath",()=>dU,"registerShape",()=>dV,"removeElement",()=>lz,"removeElementWithFadeOut",()=>lV,"resizePath",()=>dY,"retrieveZInfo",()=>fr,"setTooltipConfig",()=>d8,"subPixelOptimize",()=>dj,"subPixelOptimizeLine",()=>dX,"subPixelOptimizeRect",()=>dZ,"transformDirection",()=>d$,"traverseElements",()=>d9,"traverseUpdateZ",()=>fa,"updateProps",()=>lR],1009);var wu=t.i(1009),wh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(e,n,i,r,o,a){i.removeAll();for(var s=0;s0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var p=a;null!=c.color&&(p=tP({color:c.color},a));var d=tD(tA(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(tj(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else tZ(l)&&(d.name=l(d.name,d));var g=new ur(d,null,this.ecModel);return tE(g,x1.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:hx.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:tD({lineStyle:{color:hx.color.neutral20}},wp.axisLine),axisLabel:wd(wp.axisLabel,!1),axisTick:wd(wp.axisTick,!1),splitLine:wd(wp.splitLine,!0),splitArea:wd(wp.splitArea,!0),indicator:[]},e}(hy);t.s(["Polygon",0,da],86905),t.s(["Ring",0,dn],33846);var wg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,e){var n=t.coordinateSystem;tB(tV(n.getIndicatorAxes(),function(t){var i=t.model.get("showName")?t.name:"";return new bM(t.model,e,{axisName:i,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){t.build(),this.group.add(t.group)},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"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),p=tX(h)?h:[h],d=tX(c)?c:[c],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x=(o.zlevel-a.zlevel||o.z-a.z))}var wS=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=tU(n._mousedownHandler,n),r=tU(n._mousemoveHandler,n),o=tU(n._mouseupHandler,n),a=tU(n._mousewheelHandler,n),s=tU(n._pinchHandler,n);return n.enable=function(t,n){var l=n.zInfo,u=fr(l.component),h=u.z,c=u.zlevel,p={component:l.component,z:h,zlevel:c,z2:t6(l.z2,-1/0)},d=tL({},n.triggerInfo);this._opt=tP(tL({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:d}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this._enabled=!0,this.disable(),(!0===t||"move"===t||"pan"===t)&&(wC(e,"mousedown",i,p),wC(e,"mousemove",r,p),wC(e,"mouseup",o,p)),(!0===t||"scale"===t||"zoom"===t)&&(wC(e,"mousewheel",a,p),wC(e,"pinch",s,p)))},n.disable=function(){this._enabled=!1,wA(e,"mousedown",i),wA(e,"mousemove",r),wA(e,"mouseup",o),wA(e,"mousewheel",a),wA(e,"pinch",s)},n}return tn(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,n){var i=this._opt,r=i.zInfoParsed;if(ww(t,i.api,r.component))return!1;var o=i.triggerInfo,a=o.roamTrigger,s=!1;return"global"===a&&(s=!0),s||(s=o.isInSelf(t,e,n)),s&&o.isInClip&&!o.isInClip(t,e,n)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,n,i){var r=t.target;return!r&&this._checkPointer(t,e,n)?"grab":i?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(e8(t)||wM(t))){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if(!("pinch"===t.gestureEvent||w_(e).globalPan||wM(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!wk("moveOnMouseMove",t,this._opt)){var r=this._decideCursorStyle(t,n,i,!1);r&&e.setCursorStyle(r);return}e.setCursorStyle("grabbing");var o=this._x,a=this._y,s=n-o,l=i-a;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&e6(t.event),t.__ecRoamConsumed=!0,wD(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!wM(t)){var e=this._zr;if(!e8(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&e.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!wM(t)){var e=wk("zoomOnMouseWheel",t,this._opt),n=wk("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(w_(this._zr).globalPan||wM(t))){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(e6(i.event),i.__ecRoamConsumed=!0,wD(t,e,n,i,r))},e}(eV);function wM(t){return t.__ecRoamConsumed}var wI=oN();function wT(t){var e=wI(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function wC(t,e,n,i){for(var r,o,a,s=wT(t).roam,l=s[e]=s[e]||[],u=0;u=(h.zlevel-i.zlevel||h.z-i.z||h.z2-i.z2))break}l.splice(u,0,{listener:n,zInfoParsed:i}),r=t,o=e,(a=wT(r)).uniform[o]||r.on(o,a.uniform[o]=function(t){var e=a.roam[o];if(e)for(var n=0;n=4&&(n={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(n&&null!=l&&null!=u&&(i=w3(n,{x:0,y:0,width:l,height:u}),!e.ignoreViewBox)){var p=o;(o=new rj).add(p),p.scaleX=p.scaleY=i.scale,p.x=i.x,p.y=i.y}return e.ignoreRootClip||null==l||null==u||o.setClipPath(new s_({shape:{x:0,y:0,width:l,height:u}})),{root:o,width:l,height:u,viewBoxRect:n,viewBoxTransform:i,named:a}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=tt[s];if(u&&ep(tt,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=wU[s];if(p&&ep(wU,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new sh({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wZ(e,n),wq(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 o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(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 o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(tt={g:function(t,e){var n=new rj;return wZ(e,n),wq(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new s_;return wZ(e,n),wq(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 pq;return wZ(e,n),wq(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 dc;return wZ(e,n),wq(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 p$;return wZ(e,n),wq(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=wj(i));var r=new da({shape:{points:n||[]},silent:!0});return wZ(e,r),wq(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=wj(i));var r=new dl({shape:{points:n||[]},silent:!0});return wZ(e,r),wq(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new sd;return wZ(e,n),wq(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",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new rj;return wZ(e,a),wq(t,a,this._defsUsePending,!1,!0),a},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",o=t.getAttribute("dy")||"0",a=new rj;return wZ(e,a),wq(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=new pU(pX(t.getAttribute("d")||"",void 0));return wZ(e,n),wq(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),wU={lineargradient:function(t){var e=new d_(parseInt(t.getAttribute("x1")||"0",10),parseInt(t.getAttribute("y1")||"0",10),parseInt(t.getAttribute("x2")||"10",10),parseInt(t.getAttribute("y2")||"0",10));return wY(t,e),wX(t,e),e},radialgradient:function(t){var e=new db(parseInt(t.getAttribute("cx")||"0",10),parseInt(t.getAttribute("cy")||"0",10),parseInt(t.getAttribute("r")||"0",10));return wY(t,e),wX(t,e),e}};function wY(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function wX(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};w5(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000",s=o.stopOpacity||n.getAttribute("stop-opacity");if(s){var l=iS(a);l&&l[3]&&(l[3]*=iy(s),a=iL(l,"rgba"))}e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function wZ(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),tP(e.__inheritedStyle,t.__inheritedStyle))}function wj(t){for(var e=wQ(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=wQ(a);switch(r=r||ne(),s){case"translate":no(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ns(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":na(r,r,-parseFloat(l[0])*w1,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":nr(r,[1,0,Math.tan(parseFloat(l[0])*w1),1,0,0],r);break;case"skewY":nr(r,[1,Math.tan(parseFloat(l[0])*w1),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),w5(t,o,a),i||function(t,e,n){for(var i=0;iMath.abs(t-e)}function w6(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;on&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&l),s=(s>>1^-(1&s))+r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function Su(t,e){return tV(tF((t=function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;return null==e&&(e=1024),tB(t.features,function(t){var n=t.geometry,i=n.encodeOffsets,r=n.coordinates;if(i)switch(n.type){case"LineString":n.coordinates=Sl(r,i,e);break;case"Polygon":case"MultiLineString":Ss(r,i,e);break;case"MultiPolygon":tB(r,function(t,n){return Ss(t,i[n],e)})}}),t.UTF8Encoding=!1,t}(t)).features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new Se(o[0],o.slice(1)));break;case"MultiPolygon":tB(i.coordinates,function(t){t[0]&&r.push(new Se(t[0],t.slice(1)))});break;case"LineString":r.push(new Sn([i.coordinates]));break;case"MultiLineString":r.push(new Sn(i.coordinates))}var a=new Si(n[e||"name"],r,n.cp);return a.properties=n,a})}t.s(["default",()=>Su],1860);for(var Sh=[126,25],Sc="南海诸岛",Sp=[[[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]]],Sd=0;Sd0,y={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:p};"geoJSON"===l.resourceType?this._buildGeoJSON(y):"geoSVG"===l.resourceType&&this._buildSVG(y),this._updateController(t,o,e,n),this._updateMapSelectHandler(t,u,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=el(),n=el(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=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 h(t){return{shape:{points:function(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;lY(e,lX(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(SC(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function SO(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):sz(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function SR(t,e,n,i,r){t.data||d8({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function SN(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return lx(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&lT(e,r,n),a}function SE(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),tB(t,function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill=hx.color.neutral00,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:hx.color.tertiary},itemStyle:{borderWidth:.5,borderColor:hx.color.border,areaColor:hx.color.background},emphasis:{label:{show:!0,color:hx.color.primary},itemStyle:{areaColor:hx.color.highlight}},select:{label:{show:!0,color:hx.color.primary},itemStyle:{color:hx.color.highlight}},nameProperty:"name"},e}(px);function SV(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)}),tB(e,function(t,e){for(var n,i,r,o=(n=tV(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},tB(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 o,a="ec-"+n[0].getName(e),s=0,l=1/0,u=-1/0,h=r[a].length,c=0;c1?(r.width=i,r.height=i/m):(r.height=i,r.width=i*m),r.y=n[1]-r.height/2,r.x=n[0]-r.width/2;else{var _=t.getBoxLayoutParams();_.aspect=m,r=ha(t,r=ho(_,v),m)}this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}tE(SY,SF);var Sj=new(function(){function t(){this.dimensions=SU}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(r,o){var a=r.get("map"),s=new SY(a+o,a,tL({nameMap:r.get("nameMap"),api:e,ecModel:t},i(r)));s.zoomLimit=r.get("scaleLimit"),n.push(s),r.coordinateSystem=s,s.model=r,s.resize=SZ,s.resize(r,e)}),t.eachSeries(function(t){u7({targetModel:t,coordSysType:"geo",coordSysProvider:function(){var e="map"===t.subType?t.getHostGeoModel():t.getReferringComponents("geo",oV).models[0];return e&&e.coordinateSystem},allowNotFound:!0})});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),tB(r,function(r,o){var a=new SY(o,o,tL({nameMap:tk(tV(r,function(t){return t.get("nameMap")})),api:e,ecModel:t},i(r[0])));a.zoomLimit=t4.apply(null,tV(r,function(t){return t.get("scaleLimit")})),n.push(a),a.resize=SZ,a.resize(r[0],e),tB(r,function(t){t.coordinateSystem=a,tB(t.get("geoCoord"),function(t,e){a.addGeoCoord(e,t)})})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=el(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(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-o):t.hierNode.prelim=o}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,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=S5(s),o=S3(o),s&&o;){r=S5(r),a=S3(a),r.hierNode.ancestor=t;var p,d,f,g=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);g>0&&(function(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}((p=s,d=t,f=n,p.hierNode.ancestor.parentNode===d.parentNode?p.hierNode.ancestor:f),t,g),u+=g,l+=g),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!S5(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!S3(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function S0(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function S1(t){return arguments.length?t:S4}function S2(t,e){return{x:e*Math.cos(t-=Math.PI/2),y:e*Math.sin(t)}}function S5(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function S3(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function S4(t,e){return t.parentNode===e.parentNode?1:2}t.s(["BezierCurve",0,dg],49565);var S6=function(){this.parentPoint=[],this.childPoints=[]},S8=function(t){function e(e){return t.call(this,e)||this}return tn(e,t),e.prototype.getDefaultStyle=function(){return{stroke:hx.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new S6},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i){t.moveTo(r[0],r[1]),t.lineTo(o[0],o[1]);return}var s=e.orient,l=+("TB"!==s&&"BT"!==s),u=1-l,h=r9(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;pm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=Math.PI/180*I,C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?eu(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(sz(n).focus=D),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new dg({shape:Mr(h,c,p,r,r)})),lR(g,{shape:Mr(h,c,p,o,a)},t));else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(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=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=0){var i=n.getData().tree.root,r=t.targetNode;if(tj(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function Mv(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function Mm(t,e){return tR(Mv(t),e)>=0}function Mx(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}var M_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return tn(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new ur(t.leaves||{},this,this.ecModel),i=Mg.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var r=i.getNodeByDataIndex(e);return r&&r.children.length&&r.isExpand||(t.parentModel=n),t})}),r=0;i.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),i.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],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return po("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Mx(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:hx.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(px);function Mb(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function Mw(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=hl(t,e).refContainer,i=ho(t.getBoxLayoutParams(),n);t.layoutInfo=i;var r=t.get("layout"),o=0,a=0,s=null;"radial"===r?(o=2*Math.PI,a=Math.min(i.height,i.width)/2,s=S1(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=i.width,a=i.height,s=S1());var l=t.getData().tree.root,u=l.children[0];if(u){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(l),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>p.depth&&(p=t)});var d=h===c?1:s(h,c)/2,f=d-h.getLayout().x,g=0,y=0,v=0,m=0;if("radial"===r)g=o/(c.getLayout().x+d+f),y=a/(p.depth-1||1),Mb(u,function(t){v=(t.getLayout().x+f)*g,m=(t.depth-1)*y;var e=S2(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)});else{var x=t.getOrient();"RL"===x||"LR"===x?(y=a/(c.getLayout().x+d+f),g=o/(p.depth-1||1),Mb(u,function(t){m=(t.getLayout().x+f)*y,v="LR"===x?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)})):("TB"===x||"BT"===x)&&(g=o/(c.getLayout().x+d+f),y=a/(p.depth-1||1),Mb(u,function(t){v=(t.getLayout().x+f)*g,m="TB"===x?(t.depth-1)*y:a-(t.depth-1)*y,t.setLayout({x:v,y:m},!0)}))}}}(t,e)})}function MS(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();tL(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var MM=["treemapZoomToNode","treemapRender","treemapMove"];function MI(t){var e=t.getData().tree,n={};e.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=hX(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}var MT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return tn(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;tB(e.children,function(e){t(e);var i=e.value;tX(i)&&(i=i[0]),n+=i});var i=e.value;tX(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),tX(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[],r=new ur({itemStyle:this.designatedVisualItemStyle={}},this,e),o=tV((i=t.levels=function(t,e){var n,i,r=oM(e.get("color")),o=oM(e.get(["aria","decal","decals"]));if(r){tB(t=t||[],function(t){var e=new ur(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e))||[],function(t){return new ur(t,r,e)},this),a=Mg.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=a.getNodeByDataIndex(e);return t.parentModel=(n?o[n.depth]:null)||r,t})});return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return po("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=Mx(this.getData().tree.getNodeByDataIndex(e),this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},tL(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=el(),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(){MI(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:hx.size.l,top:hx.size.xxxl,right:hx.size.l,bottom:hx.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:hx.size.m,emptyItemWidth:25,itemStyle:{color:hx.color.backgroundShade,textStyle:{color:hx.color.secondary}},emphasis:{itemStyle:{color:hx.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:hx.color.neutral00,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:hx.color.neutral00,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}(px),MC=function(){function t(t){this.group=new rj,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),h=hl(t,e).refContainer,c={left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},p={emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=ho(c,h);this._prepare(n,p,l),this._renderContent(t,p,d,a,s,l,u,i),hu(o,c,h)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=oL(i.getModel().get("name"),""),o=Math.max(n.getTextRect(r).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,o,a,s){for(var l=0,u=e.emptyItemWidth,h=t.get(["breadcrumb","height"]),c=e.totalWidth,p=e.renderList,d=r.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var g,y,v,m=p[f],x=m.node,_=m.width,b=m.text;c>n.width&&(c-=_-u,_=u,b=null);var w=new da({shape:{points:function(t,e,n,i,r,o){var a=[[r?t:t-5,0],[t+n,0],[t+n,0+i],[r?t:t-5,0+i]];return o||a.splice(2,0,[t+n+5,0+i/2]),r||a.push([t,0+i/2]),a}(l,0,_,h,f===p.length-1,0===f)},style:tP(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new sM({style:lZ(o,{text:b})}),textConfig:{position:"inside"},z2:1e5,onclick:tY(s,x)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=lZ(a,{text:b}),w.ensureState("emphasis").style=d,lx(w,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(w),g=w,y=t,v=x,sz(g).eventData={componentType:"series",componentSubType:"treemap",componentIndex:y.componentIndex,seriesIndex:y.seriesIndex,seriesName:y.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:v&&v.dataIndex,name:v&&v.name},treePathInfo:v&&Mx(v,y)},l+=_+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),MA=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;itR(e.findComponents({mainType:"series",subType:"treemap",query:i}),t))){this.seriesModel=t,this.api=n,this.ecModel=e;var r=My(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=t.get("animation"),p=this._doRender(h,t,u);!c||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(h,p,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new rj,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,r,o=e.getData().tree,a=this._oldTree,s=MN(),l=MN(),u=this._storage,h=[];!function t(i,r,o,a,c){function p(t){return t.getId()}function d(p,d){var f=null!=p?i[p]:null,g=null!=d?r[d]:null,y=function(t,e,n,i,r,o,a,s,l,u){if(a){var h=a.getLayout(),c=t.getData(),p=a.getModel();if(c.setItemGraphicEl(a.dataIndex,null),h&&h.isInView){var d=h.width,f=h.height,g=h.borderWidth,y=h.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=h.upperHeight,b=x&&x.length,w=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,C=V("nodeGroup",rj);if(C){if(l.add(C),C.x=h.x||0,C.y=h.y||0,C.markRedraw(),MO(C).nodeWidth=d,MO(C).nodeHeight=f,h.isAboveViewRoot)return C;var A=V("background",s_,u,20);A&&function(e,n,i){var r=sz(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:f,r:T}),y)E(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=MP(w);l.fill=s;var u=ML(S);u.fill=S.get("borderColor");var h=ML(M);h.fill=M.get("borderColor");var c=ML(I);if(c.fill=I.get("borderColor"),i){var p=d-2*g;z(n,s,o.opacity,{x:g,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=c,s7(n)}e.add(n)}(C,A,b&&h.upperLabelHeight);var D=p.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled"),O="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(b)lI(C)&&lM(C,!1),A&&(lM(A,!P),c.setItemGraphicEl(a.dataIndex,A),l_(A,O,L));else{var R=V("content",s_,u,30);R&&function(e,n){var i=sz(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(d-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:T}),y)E(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=MP(w);u.fill=l,u.decal=s.decal;var h=ML(S),c=ML(M),p=ML(I);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=h,n.ensureState("blur").style=c,n.ensureState("select").style=p,s7(n)}e.add(n)}(C,R),A.disableMorphing=!0,A&&lI(A)&&lM(A,!1),lM(C,!P),c.setItemGraphicEl(a.dataIndex,C);var N=p.getShallow("cursor");N&&R.attr("cursor",N),l_(C,O,L)}return C}}}function E(t){t.invisible||o.push(t)}function z(e,n,i,r){var o=p.getModel(r?Mk:MD),s=oL(p.get("name"),null),l=o.getShallow("show");lY(e,lX(p,r?Mk:MD),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var c=u.style,d=t9(c.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-d[1]-d[3],0),n=Math.max((r?r.height:e.shape.height)-d[0]-d[2],0);(c.width!==t||c.height!==n)&&u.setStyle({width:t,height:n})},c.truncateMinChar=2,c.lineOverflow="truncate",B(c,r,h);var f=u.getState("emphasis");B(f?f.style:null,r,h)}}function B(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,o,s,l){var u,h,c,p=null!=m&&n[t][m],d=r[t];return p?(n[t][m]=null,u=d,h=p,c=u[v]={},h instanceof rj?(c.oldX=h.x,c.oldY=h.y):c.oldShape=tL({},h.shape)):y||((p=new o)instanceof aM&&(p.z2=100*s+l),function(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof rj;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,h=r.background[o.getRawIndex()];!i&&h&&h.oldShape&&(l=h.oldShape.width,u=h.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(d,p)),e[t][v]=p}}(e,l,u,n,s,h,f,g,o,c);y&&t(f&&f.viewChildren||[],g&&g.viewChildren||[],y,a,c+1)}a?(r=i,tB(i,function(t,e){t.isRemoved()||d(e,e)})):new vA(r,i,p,p).add(d).update(d).remove(tY(d,null)).execute()}(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0);var c=(i=u,r=MN(),i&&tB(i,function(t,e){var n=r[e];tB(t,function(t){t&&(n.push(t),MO(t).willDelete=!0)})}),r);if(this._oldTree=o,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,d=o.root.getLayout();d.width===p.width&&d.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:c,renderFinally:function(){tB(c,function(t){tB(t,function(t){t.parent&&t.parent.remove(t)})}),tB(h,function(t){t.invisible=!0,t.dirty()})}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(tZ(r)?0:r)||0,s=(tZ(o)?null:o)||"cubicOut",l=new MA;tB(e.willDeleteEls,function(t,e){tB(t,function(t,n){if(!t.invisible){var r,o=t.parent,u=MO(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var h=0,c=0;u.willDelete||(h=u.nodeWidth/2,c=u.nodeHeight/2),r="nodeGroup"===e?{x:h,y:c,style:{opacity:0}}:{shape:{x:h,y:c,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}})}),tB(this._storage,function(t,n){tB(t,function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof rj?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=tL({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state="animating",l.finished(tU(function(){this._state="ready",e.renderFinally()},this)).start()},e.prototype._resetController=function(t){var e=this,n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var r=this.seriesModel;n||((n=this._controller=new wS(t.getZr())).on("pan",tU(this._onPan,this)),n.on("zoom",tU(this._onZoom,this))),n.enable(r.get("roam"),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(t,n,i){var r=e._containerGroup;return!!r&&r.getBoundingRect().contain(n-r.x,i-r.y)}}}),i.zoomLimit=r.get("scaleLimit"),i.zoom=r.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,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){var n=e.getLayout();n&&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,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a=new nM(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,s){var h=s.min||0;u=Math.max(Math.min(s.max||1/0,u),h)}var c=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var d=ne();no(d,d,[-e,-n]),ns(d,d,[c,c]),no(d,d,[e,n]),a.applyTransform(d),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 o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&u2(a,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 MC(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(Mm(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=MN(),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 o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0])||!(o[0]<=a.x+a.width)||!(a.y<=o[1])||!(o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(fu);function MN(){return{nodeGroup:[],background:[],content:[]}}var ME=function(){function t(e){var n,i,r=e.mappingMethod,o=e.type,a=this.option=tA(e);this.type=o,this.mappingMethod=r,this._normalizeData=MX[r];var s=t.visualHandlers[o];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[r],"piecewise"===r?(Mz(a),i=(n=a).pieceList,n.hasSpecialVisual=!1,tB(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)})):"category"===r?a.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(tB(e,function(t,e){n[t]=e}),!tX(i)){var r=[];t$(i)?tB(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=MY(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(a):Mz(a,!0):(et("linear"!==r||a.dataExtent),Mz(a))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return tU(this._normalizeData,this)},t.listVisualTypes=function(){return tH(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){t$(t)?tB(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=tX(e)?[]:t$(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&tB(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(tX(t))t=t.slice();else{if(!t$(t))return[];var e=[];tB(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,o=0,a=e.length;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"===c.type&&("index"===h||"id"===h)?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var p=new ME(c);return MZ(p).drColorMappingBy=h,p}}}(0,o,a,0,y,_);tB(_,function(e,n){if(e.depth>=i.length||e===i[e.depth]){var a=function(t,e,n,i,r,o){var a=tL({},e);if(r){var s=r.type,l="color"===s&&MZ(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(o,y,e,n,b,r);t(e,a,i,r)}})}else v.fill=Mq(y)}}(e,{},t.getViewRoot().getAncestors(),t)}};function Mq(t){var e=MK(t,"color");if(e){var n=MK(t,"colorAlpha"),i=MK(t,"colorSaturation");return i&&(e=iD(e,null,null,i)),n&&(e=ik(e,n)),e}}function MK(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function M$(t,e){var n=t.get(e);return tX(n)&&n.length?{name:e,range:n}:null}var MJ=Math.max,MQ=Math.min,M0=["itemStyle","borderWidth"],M1=["itemStyle","gapWidth"],M2=["upperLabel","show"],M5=["upperLabel","height"];let M3={seriesType:"treemap",reset:function(t,e,n,i){var r=t.option,o=hl(t,n).refContainer,a=ho(t.getBoxLayoutParams(),o),s=r.size||[],l=r9(t4(a.width,s[0]),o.width),u=r9(t4(a.height,s[1]),o.height),h=i&&i.type,c=My(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,d=t.getViewRoot(),f=Mv(d);if("treemapMove"!==h){var g="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,p=0,d=c.length;p0x1fffffffffffff&&(u=0x1fffffffffffff),a=o}ui[1]&&(i[1]=e)})):i=[NaN,NaN],{sum:r,dataExtent:i}}(e,l,u);if(0===c.sum||(c.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?MJ(u*i/l,l/(u*r)):1/0}(_,m,n.squareRatio);M<=x?(b++,x=M):(_.area-=_.pop().getLayout().area,M4(_,m,v,h,!1),m=MQ(v.width,v.height),_.length=_.area=0,x=1/0)}if(_.length&&M4(_,m,v,h,!0),!i){var I=l.get("childrenVisibleMin");null!=I&&gn[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;ci&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a")},Ir=function(t){var e=t.split("-->");return[e[0],e[2],e[1]].join("-->")},Io=function(t,e){var n=Ii(t.node1,t.node2,e);return e.__edgeMap[n]},Ia=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Is(t,e,n,i){var r=Ie(e),o=tX(r);if(!r)return null;var a=Io(t,e);if(!a)return null;for(var s=-1,l=0;l0&&(v[0]=-v[0],v[1]=-v[1]);var x=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var _=-Math.atan2(y[1],y[0]);l[0].8?"left":u[0]<-.8?"right":"center",c=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*d+s[0],n.y=-u[1]*f+s[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",c=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=d*x+s[0],n.y=s[1]+b,h=y[0]<0?"right":"left",n.originX=-d*x,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=m[0],n.y=m[1]+b,h="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-d*x+l[0],n.y=l[1]+b,h=y[0]>=0?"right":"left",n.originX=d*x,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function w(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}(rj),IP=function(){function t(t){this.group=new rj,this._LineCtor=t||IL}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=IO(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.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=IO(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&e.animators.length>0||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;iIV(c))break;var f=eL(IB,e)-l;u/=2,c<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function IF(t,e){var n=[],i=[[],[],[]],r=[[],[]],o=[];e/=2,t.eachEdge(function(t,a){var s=t.getLayout(),l=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");!s.__original&&(s.__original=[em(s[0]),em(s[1])],s[2]&&s.__original.push(em(s[2])));var h=s.__original;if(null!=s[2]){if(ev(i[0],h[0]),ev(i[1],h[2]),ev(i[2],h[1]),l&&"none"!==l){var c=Ip(t.node1),p=IG(i,h[0],c*e);ii(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],ii(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&"none"!==u){var c=Ip(t.node2),p=IG(i,h[1],c*e);ii(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],ii(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}ev(s[0],i[0]),ev(s[1],i[2]),ev(s[2],i[1])}else{if(ev(r[0],h[0]),ev(r[1],h[1]),ew(o,r[1],r[0]),eD(o,o),l&&"none"!==l){var c=Ip(t.node1);eb(r[0],r[0],o,c*e)}if(u&&"none"!==u){var c=Ip(t.node2);eb(r[1],r[1],o,-c*e)}ev(s[0],r[0]),ev(s[1],r[1])}})}var IW=oN();function IH(t,e){t&&(IW(t).bridge=e)}function IU(t){return"view"===t.type}var IY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(t,e){var n=new v8,i=new IP,r=this.group,o=new rj;this._controller=new wS(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),r.add(o),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=o,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=!1;this._model=t,this._api=n,this._active=!0;var a=this._getThumbnailInfo();a&&a.bridge.reset(n);var s=this._symbolDraw,l=this._lineDraw;if(IU(r)){var u={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?this._mainGroup.attr(u):lR(this._mainGroup,u,t)}IF(t.getGraph(),Ic(t));var h=t.getData();s.updateData(h);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(null,t,n),clearTimeout(this._layoutTimeout);var p=t.forceLayout,d=t.get(["force","layoutAnimation"]);p&&(o=!0,this._startForceLayoutIteration(p,n,d));var f=t.get("layout");h.graph.eachNode(function(e){var r=e.dataIndex,o=e.getGraphicEl(),a=e.getModel();if(o){o.off("drag").off("dragend");var s=a.get("draggable");s&&o.on("drag",function(a){switch(f){case"force":p.warmUp(),i._layouting||i._startForceLayoutIteration(p,n,d),p.setFixed(r),h.setItemLayout(r,[o.x,o.y]);break;case"circular":h.setItemLayout(r,[o.x,o.y]),e.setLayout({fixed:!0},!0),Ig(t,"symbolSize",e,[a.offsetX,a.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(r,[o.x,o.y]),Iu(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){p&&p.setUnfixed(r)}),o.setDraggable(s,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"])&&(sz(o).focus=e.getAdjacentDataIndices())}}),h.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(sz(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),v=h.getLayout("cy");h.graph.eachNode(function(t){Iv(t,g,y,v)}),this._firstRender=!1,o||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e,n){var i=this,r=!1;!function o(){t.step(function(t){i.updateLayout(i._model),(t||!r)&&(r=!0,i._renderThumbnail(i._model,e,i._symbolDraw,i._lineDraw)),(i._layouting=!t)&&(n?i._layoutTimeout=setTimeout(o,16):o())})}()},e.prototype._updateController=function(t,e,n){var i=this._controller,r=this._controllerHost,o=e.coordinateSystem;IU(o)?(i.enable(e.get("roam"),{api:n,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(t,e,n){return o.containPoint([e,n])},isInClip:function(e,n,i){return!t||t.contain(n,i)}}}),r.zoomLimit=e.get("scaleLimit"),r.zoom=o.getZoom(),i.off("pan").off("zoom").on("pan",function(t){n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY})})):i.disable()},e.prototype.updateViewOnPan=function(t,e,n){this._active&&(wL(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,e,n){this._active&&(wP(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),IF(t.getGraph(),Ic(t)),this._lineDraw.updateLayout(),e.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Ic(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},e.prototype.updateLayout=function(t){this._active&&(IF(t.getGraph(),Ic(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,e=t.coordinateSystem;if("view"===e.type){var n=function(t){if(t)return IW(t).bridge}(t);if(n)return{bridge:n,coordSys:e}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,e,n,i){var r=this._getThumbnailInfo();if(r){var o=new rj,a=n.group.children(),s=i.group.children(),l=new rj,u=new rj;o.add(u),o.add(l);for(var h=0;h=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=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 Ij||(e=this._nodesMap[IX(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;r=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(p.node1))}for(s=0;s=0&&!t.hasKey(m)&&(t.set(m,!0),a.push(v.node2))}}}return{edge:t.keys(),node:e.keys()}},t}(),Iq=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=el(),e=el();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r=0&&!t.hasKey(h)&&(t.set(h,!0),n.push(u.node1))}for(r=0;r=0&&!t.hasKey(f)&&(t.set(f,!0),i.push(d.node2))}return{edge:t.keys(),node:e.keys()}},t}();function IK(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)}}}function I$(t,e,n,i,r){for(var o,a=new IZ(i),s=0;s "+d)),h++)}var f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f||"matrix"===f)o=vJ(t,n);else{var g=u4.get(f),y=g&&g.dimensions||[];0>tR(y,"value")&&y.concat(["value"]),(o=new vH(vY(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions,n)).initData(t)}var v=new vH(["value"],n);return v.initData(u,l),r&&r(o,v),Md({mainData:o,struct:a,structAttr:"graph",datas:{node:o,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}tE(Ij,IK("hostGraph","data")),tE(Iq,IK("hostGraph","edgeData"));var IJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tn(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new xY(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),oI(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;Ie(this)&&(this.__curvenessList=[],this.__edgeMap={},In(this));var o=I$(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=ur.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(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=o,t.getModel=i,t})});return tB(o.edges,function(t){!function(t,e,n,i){if(Ie(n)){var r=Ii(t,e,n),o=n.__edgeMap,a=o[Ir(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(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),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),po("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return pg({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=tV(this.option.categories||[],function(t){return null!=t.value?t:tL({value:0},t)}),e=new vH(["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:hx.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:hx.color.primary}}},e}(px),IQ=function(t){function e(e,n,i){var r=t.call(this)||this;sz(r).dataType="node",r.z2=2;var o=new sM;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return tn(e,t),e.prototype.updateData=function(t,e,n,i){var r=t.graph.getNodeByIndex(e),o=t.hostModel,a=r.getModel(),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=tL(mU(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))return void this.setShape(u);i?this.setShape(u):lR(this,{shape:u},o,e);var h=tL(mU(a.getModel("itemStyle"),l,!0),l);this.setShape(h),this.useStyle(t.getItemVisual(e,"style")),lS(this,a),this._updateLabel(o,a,r),t.setItemGraphicEl(e,this),lS(this,a,"itemStyle");var c=s.get("focus");lx(this,"adjacency"===c?r.getAdjacentDataIndices():c,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var i,r=this.getTextContent(),o=n.getLayout(),a=(o.startAngle+o.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=e.getModel("label");r.ignore=!u.get("show");var h=lX(e),c=n.getVisual("style");lY(r,h,{labelFetcher:{getFormattedLabel:function(n,i,r,o,a,s){return t.getFormattedLabel(n,i,"node",o,t8(a,h.normal&&h.normal.get("formatter"),e.get("name")),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var p=u.get("position")||"outside",d=u.get("distance")||0;i="outside"===p?o.r+d:(o.r+o.r0)/2,this.textConfig={inside:"outside"!==p};var f="outside"!==p?u.get("align")||"center":s>0?"left":"right",g="outside"!==p?u.get("verticalAlign")||"middle":l>0?"top":"bottom";r.attr({x:s*i+o.cx,y:l*i+o.cy,rotation:0,style:{align:f,verticalAlign:g}})},e}(dt),I0=function(t){function e(e,n,i,r){var o=t.call(this)||this;return sz(o).dataType="edge",o.updateData(e,n,i,r,!0),o}return tn(e,t),e.prototype.buildPath=function(t,e){t.moveTo(e.s1[0],e.s1[1]);var n=e.clockwise;t.arc(e.cx,e.cy,e.r,e.sStartAngle,e.sEndAngle,!n),t.bezierCurveTo((e.cx-e.s2[0])*.7+e.s2[0],(e.cy-e.s2[1])*.7+e.s2[1],(e.cx-e.t1[0])*.7+e.t1[0],(e.cy-e.t1[1])*.7+e.t1[1],e.t1[0],e.t1[1]),t.arc(e.cx,e.cy,e.r,e.tStartAngle,e.tEndAngle,!n),t.bezierCurveTo((e.cx-e.t2[0])*.7+e.t2[0],(e.cy-e.t2[1])*.7+e.t2[1],(e.cx-e.s1[0])*.7+e.s1[0],(e.cy-e.s1[1])*.7+e.s1[1],e.s1[0],e.s1[1]),t.closePath()},e.prototype.updateData=function(t,e,n,i,r){var o=t.hostModel,a=e.graph.getEdgeByIndex(n),s=a.getLayout(),l=a.node1.getModel(),u=e.getItemModel(a.dataIndex),h=u.getModel("lineStyle"),c=u.getModel("emphasis"),p=c.get("focus"),d=tL(mU(l.getModel("itemStyle"),s,!0),s);isNaN(d.sStartAngle)||isNaN(d.tStartAngle)?this.setShape(d):(r?(this.setShape(d),I1(this,a,t,h)):(lG(this),I1(this,a,t,h),lR(this,{shape:d},o,n)),lx(this,"adjacency"===p?a.getAdjacentDataIndices():p,c.get("blurScope"),c.get("disabled")),lS(this,u,"lineStyle"),e.setItemGraphicEl(a.dataIndex,this))},e}(sl);function I1(t,e,n,i){var r=e.node1,o=e.node2,a=t.style;switch(t.setStyle(i.getLineStyle()),i.get("color")){case"source":a.fill=n.getItemVisual(r.dataIndex,"style").fill,a.decal=r.getVisual("style").decal;break;case"target":a.fill=n.getItemVisual(o.dataIndex,"style").fill,a.decal=o.getVisual("style").decal;break;case"gradient":var s=n.getItemVisual(r.dataIndex,"style").fill,l=n.getItemVisual(o.dataIndex,"style").fill;if(tj(s)&&tj(l)){var u=t.shape;a.fill=new d_((u.s1[0]+u.s2[0])/2,(u.s1[1]+u.s2[1])/2,(u.t1[0]+u.t2[0])/2,(u.t1[1]+u.t2[1])/2,[{offset:0,color:s},{offset:1,color:l}],!0)}}}var I2=Math.PI/180,I5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(t,e){},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group,a=-t.get("startAngle")*I2;if(i.diff(r).add(function(t){if(i.getItemLayout(t)){var e=new IQ(i,t,a);sz(e).dataIndex=t,o.add(e)}}).update(function(e,n){var s=r.getItemGraphicEl(n);if(!i.getItemLayout(e)){s&&lV(s,t,n);return}s?s.updateData(i,e,a):s=new IQ(i,e,a),o.add(s)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&lV(n,t,e)}).execute(),!r){var s=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=r9(s[0],n.getWidth()),this.group.originY=r9(s[1],n.getHeight()),lN(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,a)},e.prototype.renderEdges=function(t,e){var n=t.getData(),i=t.getEdgeData(),r=this._edgeData,o=this.group;i.diff(r).add(function(t){var r=new I0(n,i,t,e);sz(r).dataIndex=t,o.add(r)}).update(function(t,a){var s=r.getItemGraphicEl(a);s.updateData(n,i,t,e),o.add(s)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&lV(n,t,e)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type="chord",e}(fu),I3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new xY(tU(this.getData,this),tU(this.getRawData,this))},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[];return I$(t.data||t.nodes||[],n,this,!0,function(t,e){var n=ur.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})}).data},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){var i=this.getDataParams(t,n);if("edge"===n){var r=this.getData(),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),po("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return po("nameValue",{name:i.name,value:i.value,noValue:null==i.value})},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if("node"===n){var r=this.getData(),o=this.getGraph().getNodeByIndex(e);null==i.name&&(i.name=r.getName(e)),null==i.value&&(i.value=o.getLayout().value)}return i},e.type="series.chord",e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(px),I4=Math.PI/180;function I6(t,e){t.eachSeriesByType("chord",function(t){!function(t,e){var n=t.getData(),i=n.graph,r=t.getEdgeData();if(r.count()){var o=hr(t,e),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=Math.max((t.get("padAngle")||0)*I4,0),c=Math.max((t.get("minAngle")||0)*I4,0),p=-t.get("startAngle")*I4,d=p+2*Math.PI,f=t.get("clockwise"),g=f?1:-1,y=[p,d];a2(y,!f);var v=y[0],m=y[1]-v,x=0===n.getSum("value")&&0===r.getSum("value"),_=[],b=0;i.eachEdge(function(t){var e=x?1:t.getValue("value");x&&(e>0||c)&&(b+=2);var n=t.node1.dataIndex,i=t.node2.dataIndex;_[n]=(_[n]||0)+e,_[i]=(_[i]||0)+e});var w=0;if(i.eachNode(function(t){var e=t.getValue("value");isNaN(e)||(_[t.dataIndex]=Math.max(e,_[t.dataIndex]||0)),!x&&(_[t.dataIndex]>0||c)&&b++,w+=_[t.dataIndex]||0}),0!==b&&0!==w){h*b>=Math.abs(m)&&(h=Math.max(0,(Math.abs(m)-c*b)/b)),(h+c)*b>=Math.abs(m)&&(c=(Math.abs(m)-h*b)/b);var S=(m-h*b*g)/w,M=0,I=0,T=0,C=1/0;i.eachNode(function(t){var e=_[t.dataIndex]||0,n=S*(w?e:1)*g;Math.abs(n)I){var D=M/I;i.eachNode(function(t){var e=t.getLayout().angle;Math.abs(e)>=c?t.setLayout({angle:e*D,ratio:D},!0):t.setLayout({angle:c,ratio:0===c?1:e/c},!0)})}else i.eachNode(function(t){if(!A){var e=t.getLayout().angle,n=Math.min(e/T,1)*M;e-nc&&c>0){var n=A?1:Math.min(e/T,1),i=Math.min(e-c,Math.min(k,M*n));k-=i,t.setLayout({angle:e-i,ratio:(e-i)/e},!0)}else c>0&&t.setLayout({angle:c,ratio:0===e?1:c/e},!0)}});var L=v,P=[];i.eachNode(function(t){var e=Math.max(t.getLayout().angle,c);t.setLayout({cx:a,cy:s,r0:u,r:l,startAngle:L,endAngle:L+e*g,clockwise:f},!0),P[t.dataIndex]=L,L+=(e+h)*g}),i.eachEdge(function(t){var e=x?1:t.getValue("value"),n=S*(w?e:1)*g,i=t.node1.dataIndex,r=P[i]||0,o=r+Math.abs((t.node1.getLayout().ratio||1)*n)*g,l=[a+u*Math.cos(r),s+u*Math.sin(r)],h=[a+u*Math.cos(o),s+u*Math.sin(o)],c=t.node2.dataIndex,p=P[c]||0,d=p+Math.abs((t.node2.getLayout().ratio||1)*n)*g,y=[a+u*Math.cos(p),s+u*Math.sin(p)],v=[a+u*Math.cos(d),s+u*Math.sin(d)];t.setLayout({s1:l,s2:h,sStartAngle:r,sEndAngle:o,t1:y,t2:v,tStartAngle:p,tEndAngle:d,cx:a,cy:s,r:u,value:e,clockwise:f}),P[i]=o,P[c]=d})}}}(t,e)})}var I8=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},I7=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return tn(e,t),e.prototype.getDefaultShape=function(){return new I8},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(sl);function I9(t,e){var n=null==t?"":t+"";return e&&(tj(e)?n=e.replace("{value}",n):tZ(e)&&(n=e(t))),n}var Tt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i,r,o=t.get(["axisLine","lineStyle","color"]),a=(i=t.get("center"),r=Math.min(n.getWidth(),n.getHeight()),{cx:r9(i[0],n.getWidth()),cy:r9(i[1],n.getHeight()),r:r9(t.get("radius"),r/2)});this._renderMain(t,e,n,o,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?mF:dt,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];a2(f,!a),s=f[0];for(var g=(l=f[1])-s,y=s,v=[],m=0;c&&m=t&&(0===e?0:i[e-1][0])Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:tK(z)&&(B=z*Math.PI/180),0===B?c.add(new sM({style:lZ(x,{text:O,x:N,y:E,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):c.add(new sM({style:lZ(x,{text:O,x:N,y:E,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:E,rotation:B}))}if(m.get("show")&&k!==_){var L=m.get("distance");L=L?L+l:l;for(var V=0;V<=b;V++){var G=new dc({shape:{x1:(u=Math.cos(M))*(f-L)+p,y1:(h=Math.sin(M))*(f-L)+d,x2:u*(f-S-L)+p,y2:h*(f-S-L)+d},silent:!0,style:A});"auto"===A.stroke&&G.setStyle({stroke:i((k+V/b)/_)}),c.add(G),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var i,o=y.getItemModel(e).getModel("pointer"),a=r9(o.get("width"),r.r),s=r9(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=r9(u[0],r.r),c=r9(u[1],r.r),p=o.get("keepAspect");return(i=l?gn(l,h-a/2,c-s,a,s,null,p):new I7({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?mF:dt,i=f.get("overlap"),a=i?f.get("width"):l/y.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=r7(y.get(v,t),[m,x],[100,0],!0)),c}(g||d)&&(y.diff(h).add(function(e){var n=y.get(v,e);if(d){var i=w(e,o);lN(i,{rotation:-((isNaN(+n)?b[0]:r7(n,_,b,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=S(e,o);lN(r,{shape:{endAngle:r7(n,_,b,f.get("clip"))}},t),u.add(r),sB(t.seriesIndex,y.dataType,e,r),p[e]=r}}).update(function(e,n){var i=y.get(v,e);if(d){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,lR(s,{rotation:-((isNaN(+i)?b[0]:r7(i,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=c[n],m=S(e,l?l.shape.endAngle:o);lR(m,{shape:{endAngle:r7(i,_,b,f.get("clip"))}},t),u.add(m),sB(t.seriesIndex,y.dataType,e,m),p[e]=m}}).execute(),y.each(function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof sd){var h=s.style;s.useStyle(tL({image:h.image,x:h.x,y:h.y,width:h.width,height:h.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(r7(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,lS(s,e),lx(s,r,o,a)}if(g){var c=p[t];c.useStyle(y.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,lS(c,e),lx(c,r,o,a)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=gn(r,e.cx-i/2+r9(o[0],e.r),e.cy-i/2+r9(o[1],e.r),i,i,null,a);s.z2=+!!n.get("showAbove"),s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new rj,c=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){c[t]=new sM({silent:!0}),p[t]=new sM({silent:!0})}).update(function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new rj,y=i(r7(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=r.cx+r9(m[0],r.r),_=r.cy+r9(m[1],r.r),b=c[e];b.attr({z2:2*!f,style:lZ(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+r9(S[0],r.r),I=r.cy+r9(S[1],r.r),T=r9(w.get("width"),r.r),C=r9(w.get("height"),r.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,b=p[e],D=w.get("formatter");b.attr({z2:2*!f,style:lZ(w,{x:M,y:I,text:I9(o,D),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:A})}),l1(b,{normal:w},o,function(t){return I9(t,D)}),d&&l2(b,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return I9(a?a.interpolatedValue:o,D)}}),g.add(b)}h.add(g)}),this.group.add(h),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(fu),Te=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return tn(e,t),e.prototype.getInitialData=function(t,e){return xU(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,hx.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:hx.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:hx.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:hx.color.axisLabel,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:hx.color.neutral00,borderWidth:0,borderColor:hx.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:hx.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:hx.color.transparent,borderWidth:0,borderColor:hx.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:hx.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(px),Tn=["itemStyle","opacity"],Ti=function(t){function e(e,n){var i=t.call(this)||this,r=new dl,o=new sM;return i.setTextContent(o),i.setTextGuideLine(r),i.updateData(e,n,!0),i}return tn(e,t),e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),a=r.getModel("emphasis"),s=r.get(Tn);s=null==s?1:s,n||lG(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,lN(this,{style:{opacity:s}},i,e)):lR(this,{style:{opacity:s},shape:{points:o.points}},i,e),lS(this,r),this._updateLabel(t,e),lx(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;lY(i,lX(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}});var u="inherit"===o.getModel("label").get("color")?l:null;this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:u,outsideFill:u});var h=a.linePoints;n.setShape({points:h}),this.textGuideLineConfig={anchor:h?new nh(h[0][0],h[0][1]):null},lR(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),xb(this,xw(o),{stroke:l})},e}(da),Tr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return tn(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new Ti(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){lV(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(fu),To=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xY(tU(this.getData,this),tU(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return xU(this,{coordDimensions:["value"],encodeDefaulter:tY(hB,this)})},e.prototype._defaultLabelLine=function(t){oI(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"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:hx.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:hx.color.primary}}},e}(px);function Ta(t,e){t.eachSeriesByType("funnel",function(t){var n,i=t.getData(),r=i.mapDimension("value"),o=t.get("sort"),a=hl(t,e),s=ho(t.getBoxLayoutParams(),a.refContainer),l=t.get("orient"),u=s.width,h=s.height,c=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a5)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&&Tx(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 Tx(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var T_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&tD(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){tB(["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=[];tB(tF(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),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}(hy),Tb=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return tn(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(bn);function Tw(t,e,n,i,r,o){t=t||0;var a,s=n[1]-n[0];if(null!=r&&(r=TM(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var l=Math.abs(e[1]-e[0]);l=TM(l,[0,s]),r=o=TM(l,[r,o]),i=0}e[0]=TM(e[0],n),e[1]=TM(e[1],n);var u=TS(e,i);e[i]+=t;var h=r||0,c=n.slice();return u.sign<0?c[0]+=h:c[1]-=h,e[i]=TM(e[i],c),a=TS(e,i),null!=r&&(a.sign!==u.sign||a.spano&&(e[1-i]=e[i]+a.sign*o),e}function TS(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 TM(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var TI=Math.min,TT=Math.max,TC=Math.floor,TA=Math.ceil,TD=Math.PI,Tk=function(){function t(t,e,n){this.type="parallel",this._axesMap=el(),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;tB(i,function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new Tb(t,_E(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.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,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=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();tB(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),_N(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){var n=hl(t,e).refContainer;this._rect=ho(t.getBoxLayoutParams(),n),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"],o=e.get("layout"),a=+("horizontal"!==o),s=n[r[a]],l=[0,s],u=this.dimensions.length,h=TL(e.get("axisExpandWidth"),l),c=TL(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get("axisExpandWindow");d?(t=TL(d[1]-d[0],l),d[1]=d[0]+t):(t=TL(h*(c-1),l),(d=[h*(e.get("axisExpandCenter")||TC(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-c);f<3&&(f=0);var g=[TC(oe(d[0]/h,1))+1,TA(oe(d[1]/h,1))-1],y=f/h*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:f,axisExpandWindow:d,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;t.setExtent(e[n],e[1-n])}),tB(n,function(e,n){var o=(i.axisExpandable?function(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return to*(1-h[0])?(l="jump",e=s-o*(1-h[2])):(e=s-o*h[1])>=0&&(e=s-o*(1-h[1]))<=0&&(e=0),(e*=n.axisExpandWidth/u)?Tw(e,r,a,"all"):l="none";else{var p=r[1]-r[0];(r=[TT(0,a[1]*s/p-p/2)])[1]=TI(a[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();function TL(t,e){return TI(TT(t,e[0]),e[1])}let TP={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new Tk(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",oV).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var TO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return tn(e,t),e.prototype.getAreaSelectStyle=function(){return o2([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=tA(t);if(e)for(var n=e.length-1;n>=0;n--)on(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;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&T$(t);var l=tA(s);l.brushType=Cr(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=TH(t,l),t._covers.push(o)}if(o){var u=Cs[Cr(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(Ct(t,o,t._track)),i&&(TU(t,o),u.updateCommon(t,o)),TY(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Tq(t,e,n)&&T$(t)&&(r={isEnd:i,removeOnClick:!0});return r}function Cr(t,e){return"auto"===t?e.defaultBrushType:t}var Co={mousedown:function(t){if(this._dragging)Ca(this,t);else if(!t.target||!t.target.draggable){Ce(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Tq(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||(i=t,r=e.offsetX,o=e.offsetY,a=i._zr,r<0||r>a.getWidth()||o<0||o>a.getHeight()))){var i,r,o,a,s=t._zr,l=t._covers,u=Tq(t,e,n);if(!t._dragging)for(var h=0;h=0&&(o[r[a].depth]=new ur(r[a],this,e));return I$(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,o=n.levelModels[r];o&&(t.parentModel=o)}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,o=n.levelModels[r];o&&(t.parentModel=o)}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.setCenter=function(t){this.option.center=t},e.prototype.setZoom=function(t){this.option.zoom=t},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),o=r.data,a=r.value;return po("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return po("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);return null==i.value&&"node"===n&&(i.value=this.getGraph().getNodeByIndex(e).getLayout().value),i},e.type="series.sankey",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:hx.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:hx.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(px);function Cw(t,e){t.eachSeriesByType("sankey",function(t){var n,i,r,o,a,s,l,u,h,c,p=t.get("nodeWidth"),d=t.get("nodeGap"),f=hl(t,e).refContainer,g=ho(t.getBoxLayoutParams(),f);t.layoutInfo=g;var y=g.width,v=g.height,m=t.getGraph(),x=m.nodes,_=m.edges;tB(x,function(t){var e=Math.max(CL(t.outEdges,Ck),CL(t.inEdges,Ck),t.getValue()||0);t.setLayout({value:e},!0)});var b=0!==tF(x,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations");n=x,i=_,r=p,o=d,a=y,s=v,l=b,u=t.get("orient"),function(t,e,n,i,r,o,a){for(var s,l,u,h=[],c=[],p=[],d=[],f=0,g=0;g=0;_&&x.depth>y&&(y=x.depth),m.setLayout({depth:_?x.depth:f},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var b=0;bd.indexOf(S)&&d.push(S)}}++f,p=d,d=[]}for(var g=0;gf-1?y:f-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r,o,a=[],s=t,l=0;s.length;){for(var u=0;ua.indexOf(p.node1)&&a.push(p.node1)}}s=a,a=[],++l}tB(t,function(t){CS(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)})}else{"justify"===e&&(r=t,o=i,tB(r,function(t){CS(t)||t.outEdges.length||t.setLayout({depth:o},!0)}))}}(t,a,0,I),s=t,l="vertical"===o?(r-n)/I:(i-n)/I,u=o,tB(s,function(t){var e=t.getLayout().depth*l;"vertical"===u?t.setLayout({y:e},!0):t.setLayout({x:e},!0)})}(n,i,r,a,s,u,t.get("nodeAlign")),function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,v,m=(s=t,l=[],u="vertical"===a?"y":"x",(h=oH(s,function(t){return t.getLayout()[u]})).keys.sort(function(t,e){return t-e}),tB(h.keys,function(t){l.push(h.buckets.get(t))}),l);c=m,p=e,d=n,f=i,g=r,y=a,v=1/0,tB(c,function(t){var e=t.length,n=0;tB(t,function(t){n+=t.getLayout().value});var i="vertical"===y?(f-(e-1)*g)/n:(d-(e-1)*g)/n;i0;o--)(function(t,e,n){tB(t.slice().reverse(),function(t){tB(t,function(t){if(t.outEdges.length){var i=CL(t.outEdges,CI,n)/CL(t.outEdges,Ck);if(isNaN(i)){var r=t.outEdges.length;i=r?CL(t.outEdges,CT,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-CD(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-CD(t,n))*e;t.setLayout({y:a},!0)}}})})})(m,x*=.99,a),CM(m,r,n,i,a),function(t,e,n){tB(t,function(t){tB(t,function(t){if(t.inEdges.length){var i=CL(t.inEdges,CC,n)/CL(t.inEdges,Ck);if(isNaN(i)){var r=t.inEdges.length;i=r?CL(t.inEdges,CA,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-CD(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-CD(t,n))*e;t.setLayout({y:a},!0)}}})})}(m,x,a),CM(m,r,n,i,a)}(n,i,s,a,o,l,u),h=n,c="vertical"===u?"x":"y",tB(h,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[c]-e.node2.getLayout()[c]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[c]-e.node1.getLayout()[c]})}),tB(h,function(t){var e=0,n=0;tB(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),tB(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}function CS(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function CM(t,e,n,i,r){var o="vertical"===r?"x":"y";tB(t,function(t){t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var a,s,l,u=0,h=t.length,c="vertical"===r?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(var p=h-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function CI(t,e){return CD(t.node2,e)*t.getValue()}function CT(t,e){return CD(t.node2,e)}function CC(t,e){return CD(t.node1,e)*t.getValue()}function CA(t,e){return CD(t.node1,e)}function CD(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ck(t){return t.getValue()}function CL(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)}),tB(n,function(e){var n=new ME({type:"color",mappingMethod:"linear",dataExtent:[r,o],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&&tB(i,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}var CO=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u=+("horizontal"!==t.layout),h=this._baseAxisDim=l[u],c=l[1-u],p=[r,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&i){var y=[];tB(g,function(t,e){var n;tX(t)?(n=t.slice(),t.unshift(e)):tX(t.value)?((n=tL({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)}),t.data=y}var v=this.defaultValueDimensions,m=[{name:h,type:vL(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:vL(f),dimsDef:v.slice()}];return xU(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:tY(hz,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),CR=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 tn(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:hx.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:hx.color.shadow}},animationDuration:800},e}(px);tE(CR,CO,!0);var CN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=+("horizontal"===t.get("layout"));i.diff(o).add(function(t){if(i.hasValue(t)){var e=CB(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!i.hasValue(t))return void r.remove(n);var s=i.getItemLayout(t);n?(lG(n),CV(s,n,i,t)):n=CB(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=o.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}(fu),CE=function(){},Cz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return tn(e,t),e.prototype.getDefaultShape=function(){return new CE},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();ig){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},CW=["itemStyle","borderColor"],CH=["itemStyle","borderColor0"],CU=["itemStyle","borderColorDoji"],CY=["itemStyle","color"],CX=["itemStyle","color0"];function CZ(t,e){return e.get(t>0?CY:CX)}function Cj(t,e){return e.get(0===t?CU:t>0?CW:CH)}var Cq={seriesType:"candlestick",plan:pA(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=CZ(r,i),o.stroke=Cj(r,i)||o.fill,tL(e.ensureUniqueItemVisual(n,"style"),o)}}}}},CK=["color","borderColor"],C$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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){d9(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"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(!(o&&C1(s,a))){var l=C0(a,n,!0);lN(l,{shape:{points:a.ends}},t,n),C2(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(!e.hasValue(a))return void i.remove(u);var h=e.getItemLayout(a);o&&C1(s,h)?i.remove(u):(u?(lR(u,{shape:{points:h.ends}},t,a),lG(u)):u=C0(h,a),C2(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),C4(t,this.group);var e=t.get("clip",!0)?md(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 o=C0(i.getItemLayout(n),n);C2(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){C4(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}(fu),CJ=function(){},CQ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return tn(e,t),e.prototype.getDefaultShape=function(){return new CJ},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}(sl);function C0(t,e,n){var i,r,o=t.ends;return new CQ({shape:{points:n?(i=o,r=t,tV(i,function(t){return(t=t.slice())[1]=r.initBaseline,t})):o},z2:100})}function C1(t,e){for(var n=!0,i=0;ia?x[1]:m[1],ends:w,brushRect:function(t,e,n){var i=M(t,n),r=M(e,n);return i[0]-=c/2,r[0]-=c/2,{x:i[0],y:i[1],width:c,height:r[1]-i[1]}}(s,l,r)})}function M(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:u.dataToPoint(n)}function I(t,e,n){var i=e.slice(),r=e.slice();i[0]=dj(i[0]+c/2,1,!1),r[0]=dj(r[0]-c/2,1,!0),n?t.push(i,r):t.push(r,i)}function T(t){return t[0]=dj(t[0],1),t}}}}};function At(t,e,n,i,r,o){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function Ae(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}})})}var An=function(t){function e(e,n){var i=t.call(this)||this,r=new v2(e,n),o=new rj;return i.add(r),i.add(o),i.updateData(e,n),i}return tn(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),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=tZ(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},e.prototype._getLineLength=function(t){return ek(t.__p1,t.__cp1)+ek(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,o=[t.x,t.y],a=o.slice();o[0]=n9(e[0],i[0],n[0],r),o[1]=n9(e[1],i[1],n[1],r);var s=t.__t<1?it(e[0],i[0],n[0],r):it(n[0],i[0],e[0],1-r),l=t.__t<1?it(e[1],i[1],n[1],r):it(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(l,s)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(r[e]<=n);e--);e=Math.min(e,o-2)}else{for(e=a;en);e++);e=Math.min(e-1,o-2)}var s=(n-r[e])/(r[e+1]-r[e]),l=i[e],u=i[e+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=t.__t<1?u[0]-l[0]:l[0]-u[0],c=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=e,this._lastFramePercent=n,t.ignore=!1}},e}(Ao),Al=function(){this.polyline=!1,this.curveness=0,this.segs=[]},Au=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tn(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:hx.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Al},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;c0){var f=(u+p)/2-(h-d)*r,g=(h+d)/2-(p-u)*r;if(a4(u,h,f,g,p,d,o,t,e))return a}else if(a3(u,h,p,d,o,t,e))return a;a++}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,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Ac={seriesType:"lines",plan:pA(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&md(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,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 o=Ac.reset(t,e,n);o.progress&&o.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"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new Ah:new IP(r?i?As:Aa:i?Ao:IL),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),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}(fu),Ad="undefined"==typeof Uint32Array?Array:Uint32Array,Af="undefined"==typeof Float64Array?Array:Float64Array;function Ag(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=tV(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),tk([e,t[0],t[1]])}))}var Ay=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 tn(e,t),e.prototype.init=function(e){e.data=e.data||[],Ag(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(Ag(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=eu(this._flatCoords,e.flatCoords),this._flatCoordsOffset=eu(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 ")})},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}(px);function Av(t){return t instanceof Array||(t=[t,t]),t}let Am={seriesType:"lines",reset:function(t){var e=Av(t.get("symbol")),n=Av(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=Av(n.getShallow("symbol",!0)),r=Av(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}}};var Ax=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=tp.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),p=t.length;h.width=e,h.height=n;for(var d=0;d0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(m,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=tp.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=hx.color.neutral99,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],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function A_(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var Ab=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type||"matrix"===r.type?this._renderOnGridLike(t,n,0,t.getData().count()):A_(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&&(A_(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnGridLike(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){d9(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=mf(u,"cartesian2d"),c=mf(u,"matrix");if(h){var p=u.getAxis("x"),d=u.getAxis("y");o=p.getBandWidth()+.5,a=d.getBandWidth()+.5,s=p.scale.getExtent(),l=d.scale.getExtent()}for(var f=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),_=lX(t),b=t.getModel("emphasis"),w=b.get("focus"),S=b.get("blurScope"),M=b.get("disabled"),I=h||c?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],T=n;Ts[1]||kl[1])continue;var L=u.dataToPoint([D,k]);C=new s_({shape:{x:L[0]-o/2,y:L[1]-a/2,width:o,height:a},style:A})}else if(c){var P,O=u.dataToLayout([g.get(I[0],T),g.get(I[1],T)]).rect;if((P=O.x)!=P)continue;C=new s_({z2:1,shape:O,style:A})}else{if(isNaN(g.get(I[1],T)))continue;var R,N,E=u.dataToLayout([g.get(I[0],T)]),O=E.contentRect||E.rect;if((R=O.x)!=R||(N=O.y)!=N)continue;C=new s_({z2:1,shape:O,style:A})}if(g.hasItemOption){var z=g.getItemModel(T),B=z.getModel("emphasis");y=B.getModel("itemStyle").getItemStyle(),v=z.getModel(["blur","itemStyle"]).getItemStyle(),m=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),w=B.get("focus"),S=B.get("blurScope"),M=B.get("disabled"),_=lX(z)}C.shape.r=x;var V=t.getRawValue(T),G="-";V&&null!=V[2]&&(G=V[2]+""),lY(C,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:A.opacity,defaultText:G}),C.ensureState("emphasis").style=y,C.ensureState("blur").style=v,C.ensureState("select").style=m,lx(C,w,S,M),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),f.add(C),g.setItemGraphicEl(T,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r,o,a,s,l,u,h,c=n.targetVisuals.inRange,p=n.targetVisuals.outOfRange,d=e.getData(),f=this._hmLayer||this._hmLayer||new Ax;f.blurSize=e.get("blurSize"),f.pointSize=e.get("pointSize"),f.minOpacity=e.get("minOpacity"),f.maxOpacity=e.get("maxOpacity");var g=t.getViewRect().clone(),y=t.getRoamTransform();g.applyTransform(y);var v=Math.max(g.x,0),m=Math.max(g.y,0),x=Math.min(g.width+g.x,i.getWidth()),_=Math.min(g.height+g.y,i.getHeight()),b=x-v,w=_-m,S=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],M=d.mapArray(S,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=v,r[1]-=m,r.push(i),r}),I=n.getExtent(),T="visualMap.continuous"===n.type?(r=n.option.range,o=I[1]-I[0],r=[(r[0]-I[0])/o,(r[1]-I[0])/o],function(t){return t>=r[0]&&t<=r[1]}):(a=n.getPieceList(),s=n.option.selected,l=I[1]-I[0],u=(a=tV(a,function(t){return{interval:[(t.interval[0]-I[0])/l,(t.interval[1]-I[0])/l]}})).length,h=0,function(t){var e;for(e=h;e=0;e--){var n=a[e].interval;if(n[0]<=t&&t<=n[1]){h=e;break}}return e>=0&&e=0?1:-1:o>0?1:-1})(n,T,I,i,P),r=t,o=e,a=I,s=T,l=P.boundingLength,u=P.pxSign,h=k,c=i,p=P,f=c.valueDim,y=Math.abs(a[(g=c.categoryDim).wh]),(d=tX(v=r.getItemVisual(o,"symbolSize"))?v.slice():null==v?["100%","100%"]:[v,v])[g.index]=r9(d[g.index],y),d[f.index]=r9(d[f.index],s?y:Math.abs(l)),p.symbolSize=d,m=p.symbolScale=[d[0]/h,d[1]/h],m[f.index]*=(c.isHorizontal?-1:1)*u,x=n,_=P.symbolScale,b=D,w=i,S=P,(M=x.get(AS)||0)&&(AI.attr({scaleX:_[0],scaleY:_[1],rotation:b}),AI.updateTransform(),M/=AI.getLineScale(),M*=_[w.valueDim.index]),S.valueLineWidth=M||0;var O=P.symbolSize,R=gr(n.get("symbolOffset"),O);return function(t,e,n,i,r,o,a,s,l,u,h,c){var p=h.categoryDim,d=h.valueDim,f=c.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(i){var v=Math.abs(l),m=t4(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=r9(m,e[d.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=ox(i),M=S?i:AH((v+w)/b);_=(v-M*g)/2/(x?M:Math.max(M-1,1)),b=g+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?AH((Math.abs(u)+w)/b):0),y=M*b-w,c.repeatTimes=M,c.symbolMargin=_}var I=y/2*f,T=c.pathPosition=[];T[p.index]=n[p.wh]/2,T[d.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var C=c.bundlePosition=[];C[p.index]=n[p.xy],C[d.index]=n[d.xy];var A=c.barRectShape=tL({},n);A[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(T[d.index]+I)),A[p.wh]=n[p.wh];var D=c.clipShape={};D[p.xy]=-n[p.xy],D[p.wh]=h.ecSize[p.wh],D[d.xy]=0,D[d.wh]=n[d.wh]}(n,O,I,T,0,R,A,P.valueLineWidth,P.boundingLength,P.repeatCutLength,i,P),P}function AA(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function AD(t){var e=t.symbolPatternSize,n=gn(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Ak(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(AG(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(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 AL(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?AF(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=AD(n),r.add(o),AF(o,{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 AP(t,e,n){var i=tL({},e.barRectShape),r=t.__pictorialBarRect;r?AF(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new wu.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function AO(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=tL({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)wu.updateProps(r,{shape:o},s,l);else{o[a.wh]=0,r=new wu.Rect({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],wu[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function AR(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=AN,n.isAnimationEnabled=AE,n}function AN(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function AE(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Az(t,e,n,i){var r=new wu.Group,o=new wu.Group;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Ak(r,e,n):AL(r,e,n),AP(r,n,i),AO(r,e,n,i),r.__pictorialShapeStr=AV(t,n),r.__pictorialSymbolMeta=n,r}function AB(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];AG(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),tB(o,function(t){wu.removeElement(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function AV(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function AG(t,e,n){tB(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function AF(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&wu[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function AW(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");AG(t,function(t){if(t instanceof sd){var e=t.style;t.useStyle(tL({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=a,p&&(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 d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,lY(f,lX(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:v0(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),lx(t,h,c,o.get("disabled"))}function AH(t){var e=Math.round(t);return 1e-4>Math.abs(t-e)?e:Math.ceil(t)}var AU=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 tn(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=us(mB.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:hx.color.primary}}}),e}(mB),AY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return tn(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new vA(this._layersSeries||[],a,h,h),p=[];function d(e,n,s){var l,u,h=r._layers;if("remove"===e)return void o.remove(h[n]);for(var c=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;fI&&!oh(C-I)&&C0?(a.virtualPiece?a.virtualPiece.updateData(!1,r,t,e,n):(a.virtualPiece=new Aq(r,t,e,n),h.add(a.virtualPiece)),o.piece.off("click"),a.virtualPiece.on("click",function(t){a._rootToNode(o.parentNode)})):a.virtualPiece&&(h.remove(a.virtualPiece),a.virtualPiece=null),this._initEvents(),this._oldChildren=p},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 o=i.getModel(),a=o.get("link");a&&u2(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AK,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,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(fu),AQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return tn(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;tB(e.children,function(e){t(e);var i=e.value;tX(i)&&(i=i[0]),n+=i});var i=e.value;tX(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),tX(e.value)?e.value[0]=i:e.value=i}(n);var i=this._levelModels=tV(t.levels||[],function(t){return new ur(t,this,e)},this),r=Mg.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=i[r.getNodeByDataIndex(e).depth];return n&&(t.parentModel=n),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=Mx(this.getData().tree.getNodeByDataIndex(e),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(){MI(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}(px),A0=Math.PI/180;function A1(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");tX(i)||(i=[0,i]),tX(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=r9(e[0],r),l=r9(e[1],o),u=r9(i[0],a/2),h=r9(i[1],a/2),c=-t.get("startAngle")*A0,p=t.get("minAngle")*A0,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&function t(e,n){var i=e.children||[];e.children=function(t,e){if(tZ(e)){var n=tV(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)}),tV(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})}(i,n),i.length&&tB(e.children,function(e){t(e,n)})}(f,y);var v=0;tB(f.children,function(t){!isNaN(t.getValue())&&v++});var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=(h-u)/(f.height-(_?-1:1)||1),w=t.get("clockwise"),S=t.get("stillShowZeroSum"),M=w?1:-1,I=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===m&&S?x:r*x;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&tj(o)&&(o=iI(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),tL(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}var A5={color:"fill",borderColor:"stroke"},A3={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},A4=oN(),A6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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 vJ(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=A4(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(px);function A8(t,e){return e=e||[0,0],tV(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function A7(t,e){return e=e||[0,0],tV([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function A9(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 Dt(t,e){return e=e||[0,0],tV(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function De(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||ep(t,"text")))}function Dn(t,e,n){var i,r,o;if("text"===e)o=t;else{o={},ep(t,"text")&&(o.text=t.text),ep(t,"rich")&&(o.rich=t.rich),ep(t,"textFill")&&(o.fill=t.textFill),ep(t,"textStroke")&&(o.stroke=t.textStroke),ep(t,"fontFamily")&&(o.fontFamily=t.fontFamily),ep(t,"fontSize")&&(o.fontSize=t.fontSize),ep(t,"fontStyle")&&(o.fontStyle=t.fontStyle),ep(t,"fontWeight")&&(o.fontWeight=t.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=ep(t,"textPosition");n?i.position=a?t.textPosition:"inside":a&&(i.position=t.textPosition),ep(t,"textPosition")&&(i.position=t.textPosition),ep(t,"textOffset")&&(i.offset=t.textOffset),ep(t,"textRotation")&&(i.rotation=t.textRotation),ep(t,"textDistance")&&(i.distance=t.textDistance)}return Di(o,t),tB(o.rich,function(t){Di(t,t)}),{textConfig:i,textContent:r}}function Di(t,e){e&&(e.font=e.textFont||e.font,ep(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ep(e,"textAlign")&&(t.align=e.textAlign),ep(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ep(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ep(e,"textWidth")&&(t.width=e.textWidth),ep(e,"textHeight")&&(t.height=e.textHeight),ep(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ep(e,"textPadding")&&(t.padding=e.textPadding),ep(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ep(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ep(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ep(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ep(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ep(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ep(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Dr(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var i=t.textPosition.indexOf("inside")>=0,r=t.fill||hx.color.neutral99;Do(t,e);var o=null==t.textFill;return i?o&&(t.textFill=n.insideFill||hx.color.neutral00,!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=r),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(o&&(t.textFill=t.fill||n.outsideFill||hx.color.neutral00),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,tB(e.rich,function(t){Do(t,t)}),t}function Do(t,e){e&&(ep(e,"fill")&&(t.textFill=e.fill),ep(e,"stroke")&&(t.textStroke=e.fill),ep(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ep(e,"font")&&(t.font=e.font),ep(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ep(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ep(e,"fontSize")&&(t.fontSize=e.fontSize),ep(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ep(e,"align")&&(t.textAlign=e.align),ep(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ep(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ep(e,"width")&&(t.textWidth=e.width),ep(e,"height")&&(t.textHeight=e.height),ep(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ep(e,"padding")&&(t.textPadding=e.padding),ep(e,"borderColor")&&(t.textBorderColor=e.borderColor),ep(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ep(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ep(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ep(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ep(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ep(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ep(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ep(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ep(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ep(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Da={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ds=tH(Da);tG(rT,function(t,e){return t[e]=1,t},{}),rT.join(", ");var Dl=["","style","shape","extra"],Du=oN();function Dh(t,e,n,i,r){var o=t+"Animation",a=lP(t,i,r)||{},s=Du(e).userDuring;return a.duration>0&&(a.during=s?tU(Dv,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),tL(a,n[o]),a}function Dc(t,e,n,i){var r,o,a=(i=i||{}).dataIndex,s=i.isInit,l=i.clearStyle,u=n.isAnimationEnabled(),h=Du(t),c=e.style;h.userDuring=e.during;var p={},d={};if(function(t,e,n){for(var i=0;i=0)){var p=t.getAnimationStyleProps(),d=p?p.style:null;if(d){r||(r=i.style={});for(var f=tH(n),u=0;u0&&t.animateFrom(v,m)}else{var x=t,_=e,b=a||0,w=n,S=p;if(S){var M=Dh("update",x,_,w,b);M.duration>0&&x.animateFrom(S,M)}}Dp(t,e),c?t.dirty():t.markRedraw()}function Dp(t,e){for(var n=Du(t).leaveToProps,i=0;i=0){r||(r=i[t]={});for(var d=tH(a),h=0;htR(Db,t)})),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;hi[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]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:tU(Dt,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)},layout:function(e,n){return t.dataToLayout(e,n)}}}},matrix:function(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}};function DR(t){return t instanceof sl}function DN(t){return t instanceof aM}var DE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=DG(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){DF(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&Dd(n,A4(n).option,t)}).update(function(e,l){DF(n,r.getItemGraphicEl(l),e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?md(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=DG(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=a);var r=b(i,DM).getItemStyle(),o=w(i,DM),s=lZ(o,null,null,!0,!0);s.text=o.getShallow("show")?t8(t.getFormattedLabel(i,DM),t.getFormattedLabel(i,DI),v0(e,i)):null;var l=lj(o,null,!0);return M(n,r),r=Dr(r,s,l),n&&S(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=a),ep(A5,t)){var i=e.getItemVisual(n,"style");return i?i[A5[t]]:null}if(ep(A3,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===h.type)return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=h;d--){var f,g,y,v,m=e.childAt(d);g=e,y=m,v=r,y&&Dd(y,A4(g).option,v)}}}(t,h,n,i,r),s>=0?o.replaceAt(h,s):o.add(h),h}function DH(t,e,n){var i,r=A4(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(ep(i,"pathData")||ep(i,"d"))&&DK(a)!==r.customPathData||"image"===o&&ep(s,"image")&&s.image!==r.customImagePath}function DU(t,e,n){var i=e?DY(t,e):t,r=e?DX(t,i,DM):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?DY(s,e):s:null;if(r&&(n.isLegacy||De(r,o,!!a,!!l))){n.isLegacy=!0;var u=Dn(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;h.type||(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function DY(t,e){return e?t?t[e]:null:t}function DX(t,e,n){var i=e&&e.style;return null==i&&n===DM&&t&&(i=t.styleEmphasis),i}function DZ(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function Dj(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;DW(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Dq(t){var e=this.context,n=e.oldChildren[t];n&&Dd(n,A4(n).option,e.seriesModel)}function DK(t){return t&&(t.pathData||t.d)}var D$=oN(),DJ=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.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 h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=tY(DQ,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new wu.Group,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);D2(a,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,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=bq(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}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 o=D$(t).pointerEl=new wu[r.type](tA(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=D$(t).labelEl=new wu.Text(tA(e.label));t.add(r),D0(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=D$(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=D$(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),D0(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){r&&i.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=wu.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){e6(t.event)},onmousedown:tU(this._onHandleDragMove,this,0,0),drift:tU(this._onHandleDragMove,this),ondragend:tU(this._onHandleDragEnd,this)}),i.add(r)),D2(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tX(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,fx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){DQ(this._axisPointerModel,!e&&this._moveAnimation,this._handle,D1(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(D1(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(D1(i)),D$(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),f_(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 DQ(t,e,n,i){!function t(e,n){if(!(t$(e)&&t$(n)))return e===n;var i=!0;return tB(n,function(n,r){i=i&&t(e[r],n)}),!!i}(D$(n).lastProp,i)&&(D$(n).lastProp=i,e?wu.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function D0(t,e){t[e.get(["label","show"])?"show":"hide"]()}function D1(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function D2(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)})}function D5(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 D3(t,e,n,i,r){var o,a,s,l,u,h,c=D4(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),p=n.getModel("label"),d=t9(p.get("padding")||0),f=p.getFont(),g=rO(c,f),y=r.position,v=g.width+d[1]+d[3],m=g.height+d[0]+d[2],x=r.align;"right"===x&&(y[0]-=v),"center"===x&&(y[0]-=v/2);var _=r.verticalAlign;"bottom"===_&&(y[1]-=m),"middle"===_&&(y[1]-=m/2),o=y,a=v,s=m,u=(l=i).getWidth(),h=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,h)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0);var b=p.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:y[0],y:y[1],style:lZ(p,{text:c,font:f,fill:p.getTextColor(),padding:d,backgroundColor:b}),z2:10}}function D4(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:_V(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tB(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),tj(a)?o=a.replace("{value}",o):tZ(a)&&(o=a(s))}return o}function D6(t,e,n){var i=ne();return na(i,i,n.rotation),no(i,i,n.position),dK([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function D8(t,e,n,i,r,o){var a=bM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),D3(e,i,r,o,{position:D6(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function D7(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function D9(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function kt(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=kn(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=D5(i),c=ki[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}D8(e,t,bN(a.getRect(),n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=bN(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=D6(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,o=r.grid,a=r.getGlobalExtent(!0),s=kn(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(DJ);function kn(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var ki={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:D7([e,n[0]],[e,n[1]],kr(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:D9([e-i/2,n[0]],[i,r],kr(t))}}};function kr(t){return+("x"!==t.dim)}var ko=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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:hx.color.border,width:1,type:"dashed"},shadowStyle:{color:hx.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:hx.color.neutral00,padding:[5,7,5,7],backgroundColor:hx.color.accent60,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:hx.color.accent40,throttle:40}},e}(hy),ka=oN();function ks(t,e,n){if(!tl.node){var i=e.getZr();ka(i).records||(ka(i).records={}),function(t,e){ka(t).initialized||(ka(t).initialized=!0,n("click",tY(ku,"click")),n("mousemove",tY(ku,"mousemove")),n("globalout",kl));function n(n,i){t.on(n,function(n){var r,o,a,s,l,u,h,c,p=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tB(ka(t).records,function(t){t&&i(t,n,p.dispatchAction)}),s=p.pendings,l=e,h=s.showTip.length,c=s.hideTip.length,h?u=s.showTip[h-1]:c&&(u=s.hideTip[c-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(i,e),(ka(i).records[t]||(ka(i).records[t]={})).handler=n}}function kl(t,e,n){t.handler("leave",null,n)}function ku(t,e,n,i){e.handler(t,n,i)}function kh(t,e){if(!tl.node){var n=e.getZr();(ka(n).records||{})[t]&&(ka(n).records[t]=null)}}var kc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";ks("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){kh("axisPointer",e)},e.prototype.dispose=function(t,e){kh("axisPointer",e)},e.type="axisPointer",e}(pC);function kp(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=oR(o,t);if(null==a||a<0||tX(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=+("x"===h||"radius"===h),d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(tV(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var kd=oN();function kf(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tU(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){kx(r)&&(r=kp({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h,c,p,d,f,g,y,v,m=kx(r),x=t.axesInfo,_=a.axesInfo,b="leave"===i||kx(r),w={},S={},M={list:[],map:{}},I={showPointer:tY(ky,S),showTooltip:tY(kv,M)};tB(a.coordSysMap,function(t,e){var n=m||t.containPoint(r);tB(a.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=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}}(x,t);if(!b&&n&&(!x||o)){var a=o&&o.value;null!=a||m||(a=i.pointToData(r)),null!=a&&kg(t,a,I,!1,w)}})});var T={};return tB(_,function(t,e){var n=t.linkGroup;n&&!S[e]&&tB(n.axesInfo,function(e,i){var r=S[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,km(e),km(t)))),T[t.key]=o}})}),tB(T,function(t,e){kg(_[e],t,I,!0,w)}),s=S,l=_,u=w.axesInfo=[],tB(l,function(t,e){var n=t.axisPointerModel.option,i=s[e];i?(t.useHandle||(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){if(kx(e)||!t.list.length)return i({type:"hideTip"});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})}(M,r,t,o),h=_,p=(c=n).getZr(),d="axisPointerLastHighlights",f=kd(p)[d]||{},g=kd(p)[d]={},tB(h,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&tB(n.seriesDataIndices,function(t){g[t.seriesIndex+" | "+t.dataIndex]=t})}),y=[],v=[],tB(f,function(t,e){g[e]||v.push(t)}),tB(g,function(t,e){f[e]||y.push(t)}),v.length&&c.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),y.length&&c.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),w}}function kg(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,p,d,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,tB(s.seriesModels,function(t,e){var n,i,r=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);i=o.dataIndices,n=o.nestestValue}else{if(!(i=t.indicesOfNearest(u,r[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(r[0],i[0])}if(null!=n&&isFinite(n)){var s=a-n,f=Math.abs(s);f<=p&&((f=0&&d<0)&&(p=f,d=s,h=n,c.length=0),tB(i,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),g=f.payloadBatch,y=f.snapToValue;g[0]&&null==r.seriesIndex&&tL(r,g[0]),!i&&t.snap&&o.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,f,y)}}function ky(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function kv(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=b$(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function km(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 kx(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function k_(t){bQ.registerAxisPointerClass("CartesianAxisPointer",ke),t.registerComponentModel(ko),t.registerComponentView(kc),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tX(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){var n,i,r,o,a,s,l,u,h;t.getComponent("axisPointer").coordSysAxesInfo=(i=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],u=[],tB(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=b$(t.model),n=i.coordSysAxesInfo[e]={};i.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tB(t.getAxes(),tY(d,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var h="axis"===o.get("trigger"),c="cross"===o.get(["axisPointer","type"]),p=t.getTooltipAxes(o.get(["axisPointer","axis"]));(h||c)&&tB(p.baseAxes,tY(d,!c||"cross",h)),c&&tB(p.otherAxes,tY(d,"cross",!1))}}function d(e,a,h){var c=h.model.getModel("axisPointer",s),p=c.get("show");if(p&&("auto"!==p||e||bK(c))){null==a&&(a=c.get("triggerTooltip"));var d=(c=e?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};tB(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=tA(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&tP(l,h.textStyle)}}return t.model.getModel("axisPointer",new ur(s,n,i))}(h,o,s,r,e,a):c).get("snap"),f=c.get("triggerEmphasis"),g=b$(h.model),y=a||d||"category"===h.type,v=i.axesInfo[g]={key:g,axis:h,coordSys:t,axisPointerModel:c,triggerTooltip:a,triggerEmphasis:f,involveSeries:y,snap:d,useHandle:bK(c),seriesModels:[],linkGroup:null};n[g]=v,i.seriesInvolved=i.seriesInvolved||y;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;ry?"left":"right",s=Math.abs(o[1]-v)/g<.3?"middle":o[1]>v?"top":"bottom"}return{position:o,align:a,verticalAlign:s}}(e,n,0,a,i.get(["label","margin"]));D3(t,n,i,r,p)},e}(DJ),kw={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:D7(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()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:kt(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:"Sector",shape:kt(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},kS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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}(hy),kM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",oV).models[0]},e.type="polarAxis",e}(hy);tE(kM,x1);var kI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="angleAxis",e}(kM),kT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="radiusAxis",e}(kM),kC=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return tn(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[+("radius"!==this.dim)]},e}(bn);kC.prototype.dataToRadius=bn.prototype.dataToCoord,kC.prototype.radiusToData=bn.prototype.coordToData;var kA=oN(),kD=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return tn(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[+("radius"!==this.dim)]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var r=n[0],o=Math.abs(this.dataToCoord(r+1)-this.dataToCoord(r)),a=Math.max(rO(null==r?"":r+"",t.getFont(),"center","top").height,7)/o;isNaN(a)&&(a=1/0);var s=Math.max(0,Math.floor(a)),l=kA(this.model),u=l.lastAutoInterval,h=l.lastTickCount;return null!=u&&null!=h&&1>=Math.abs(u-s)&&1>=Math.abs(h-i)&&u>s?s=u:(l.lastTickCount=i,l.lastAutoInterval=s),s},e}(bn);kD.prototype.dataToAngle=bn.prototype.dataToCoord,kD.prototype.angleToData=bn.prototype.coordToData;var kk=["radius","angle"],kL=function(){function t(t){this.dimensions=kk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new kC,this._angleAxis=new kD,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,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],n)},t.prototype.pointToData=function(t,e,n){n=n||[];var i=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(i[0],e),n[1]=this._angleAxis.angleToData(i[1],e),n},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s;for(var l=Math.atan2(-(n/=s),e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t,e){e=e||[];var n=t[0],i=t[1]/180*Math.PI;return e[0]=Math.cos(i)*n+this.cx,e[1]=-Math.sin(i)*n+this.cy,e},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,o=this.r,a=this.r0;return o!==a&&r-1e-4<=o*o&&r+1e-4>=a*a},x:this.cx-e[1],y:this.cy-e[1],width:2*e[1],height:2*e[1]}},t.prototype.convertToPixel=function(t,e,n){return kP(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return kP(e)===this?this.pointToData(n):null},t}();function kP(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function kO(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();tB(_W(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),tB(_W(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),_N(i.scale,i.model),_N(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function kR(t,e){var n;if(t.type=e.get("type"),t.scale=_E(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!=(n=e.get("endAngle"))?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}let kN={dimensions:kk,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r,o,a,s,l,u,h=new kL(i+"");h.update=kO;var c=h.getRadiusAxis(),p=h.getAngleAxis(),d=t.findAxisModel("radiusAxis"),f=t.findAxisModel("angleAxis");kR(c,d),kR(p,f),r=t.get("center"),o=hl(t,e).refContainer,h.cx=r9(r[0],o.width)+o.x,h.cy=r9(r[1],o.height)+o.y,a=h.getRadiusAxis(),s=Math.min(o.width,o.height)/2,null==(l=t.get("radius"))?l=[0,"100%"]:tX(l)||(l=[0,l]),u=[r9(l[0],s),r9(l[1],s)],a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1]),n.push(h),t.coordinateSystem=h,h.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",oV).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var kE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function kz(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 kB(t){return+!t.getRadiusAxis().inverse}function kV(t){var e=t[0],n=t[t.length-1];e&&n&&1e-4>Math.abs(Math.abs(e.coord-n.coord)-360)&&t.pop()}var kG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return tn(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(),o=n.getTicksCoords({breakTicks:"none"}),a=n.getMinorTicksCoords(),s=tV(n.getViewLabels(),function(t){t=tA(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});kV(s),kV(o),tB(kE,function(e){t.get([e,"show"])&&(!n.scale.isBlank()||"axisLine"===e)&&kF[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(bQ),kF={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,h=l.getExtent(),c=kB(n),p=+!c,d=360===Math.abs(h[1]-h[0])?"Circle":"Arc";(a=0===o[p]?new wu[d]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-h[0]*u,endAngle:-h[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new wu.Ring({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[kB(n)],u=tV(i,function(t){return new wu.Line({shape:kz(n,[l,l+s],t.coord)})});t.add(wu.mergePath(u,{style:tP(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[kB(n)],h=[],c=0;cf?"left":"right",v=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[c]){var m=s[c];t$(m)&&m.textStyle&&(a=new ur(m.textStyle,l,l.ecModel))}var x=new wu.Text({silent:bM.isLabelSilent(e),style:lZ(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),wu.setTooltipConfig({el:x,componentModel:e,itemName:i.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:i.rawLabel,tickIndex:r}}),h){var _=bM.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,sz(x).eventData=_}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h=0?"p":"n",C=b;m&&(a[o][I]||(a[o][I]={p:b,n:b}),C=a[o][I][T]);var A=void 0,D=void 0,k=void 0,L=void 0;if("radius"===c.dim){var P=c.dataToCoord(M)-b,O=i.dataToCoord(I);Math.abs(P)=L})}}})};var kj={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},kq={splitNumber:5},kK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="polar",e}(pC);function k$(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=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"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*({horizontal:0,vertical:1})[a],r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,right:1,left:-1})[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),t4(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=t.get(["axisLabel","rotate"]);return r.labelRotate="top"===o?-h:h,r.z2=1,r}var kJ=["splitArea","splitLine","breakArea"],kQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return tn(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new rj;var s=k$(e),l=new bM(e,i,s);l.build(),o.add(this._axisGroup),o.add(l.group),tB(kJ,function(t){e.get([t,"show"])&&k0[t](this,this.group,this._axisGroup,e,i)},this),dJ(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){b2(this)},e.type="singleAxis",e}(bQ),k0={splitLine:function(t,e,n,i,r){var o=i.axis;if(!o.scale.isBlank()){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),h=i.coordinateSystem.getRect(),c=o.isHorizontal(),p=[],d=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],v=0;v=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,e,n){n=n||[];var i=this.getAxis();return n[0]=i.coordToData(i.toLocalCoord(t[+("horizontal"!==i.orient)])),n},t.prototype.dataToPoint=function(t,e,n){var i=this.getAxis(),r=this.getRect();n=n||[];var o=+("horizontal"!==i.orient);return t instanceof Array&&(t=t[0]),n[o]=i.toGlobalCoord(i.dataToCoord(+t)),n[1-o]=0===o?r.y+r.height/2:r.x+r.width/2,n},t.prototype.convertToPixel=function(t,e,n){return k4(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return k4(e)===this?this.pointToData(n):null},t}();function k4(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}let k6={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new k3(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",oV).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:k5};var k8=["x","y"],k7=["width","height"],k9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Ln(a,1-Le(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=D5(i),c=Lt[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}D8(e,t,k$(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=k$(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=D6(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,o=r.coordinateSystem,a=Le(r),s=Ln(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Ln(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(DJ),Lt={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:D7([e,n[0]],[e,n[1]],Le(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:D9([e-i/2,n[0]],[i,r],Le(t))}}};function Le(t){return+!t.isHorizontal()}function Ln(t,e){var n=t.getRect();return[n[k8[e]],n[k8[e]]+n[k7[e]]]}var Li=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="single",e}(pC),Lr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(e,n,i){var r=hd(e);t.prototype.init.apply(this,arguments),Lo(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Lo(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:hx.color.axisLine,width:1,type:"solid"}},itemStyle:{color:hx.color.neutral00,borderWidth:1,borderColor:hx.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:hx.size.s,color:hx.color.secondary},monthLabel:{show:!0,position:"start",margin:hx.size.s,align:"center",formatter:null,color:hx.color.secondary},yearLabel:{show:!0,position:null,margin:hx.size.xl,formatter:null,color:hx.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(hy);function Lo(t,e){var n,i=t.cellSize;1===(n=tX(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=tV([0,1],function(t){return hh(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});hp(t,e,{type:"box",ignoreSize:r})}var La=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToCalendarLayout([s],!1).tl,u=new s_({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){p(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToCalendarLayout([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,a,i)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=+("horizontal"!==n);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 dl({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),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToCalendarLayout([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return tj(t)&&t?u$(t,e):tZ(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return("left"===i||"right"===i)&&(l=Math.PI/2),{rotation:l,x:o,y:a,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 o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h=+("horizontal"!==n),c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=new sM({z2:30,style:lZ(r,{text:this._formatterLabel(d,f)}),silent:r.get("silent")});g.attr(this._yearTextPositionControl(g,c[a],n,a,o)),i.add(g)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];(!o||tj(o))&&(o&&(e=uu[o]||e),o=e.get(["time","monthAbbr"])||[]);var h=+("start"!==s),c=+("horizontal"!==n);a="start"===s?-a:a;for(var p="center"===l,d=r.get("silent"),f=0;f=r.start.time&&i.timea.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),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?-u+1:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,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&&ei.lweek)return null;var r=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachComponent(function(t,e){u7({targetModel:e,coordSysType:"calendar",coordSysProvider:u9})}),i},t.dimensions=["time","value"],t}();function Ll(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var Lu={none:0,all:1,body:2,corner:3};function Lh(t,e,n){var i=e[dR[n]].getCell(t);return!i&&tK(t)&&t<0&&(i=e[dR[1-n]].getUnitLayoutInfo(n,Math.round(t))),i}function Lc(t){var e=t||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function Lp(t,e,n,i,r){Ld(t[0],e,r,n,i,0),Ld(t[1],e,r,n,i,1)}function Ld(t,e,n,i,r,o){t[0]=1/0,t[1]=-1/0;var a=i[o],s=tX(a)?a:[a],l=s.length,u=!!n;if(l>=1?(Lf(t,e,s,u,r,o,0),l>1&&Lf(t,e,s,u,r,o,l-1)):t[0]=t[1]=NaN,u){var h,c,p=-r[dR[1-o]].getLocatorCount(o),d=r[dR[o]].getLocatorCount(o)-1;n===Lu.body?p=r6(0,p):n===Lu.corner&&(d=r4(-1,d)),d=e[0]&&t[0]<=e[1]}function Lx(t,e){t.id.set(e[0][0],e[1][0]),t.span.set(e[0][1]-t.id.x+1,e[1][1]-t.id.y+1)}function L_(t,e,n,i){var r=Lh(e[i][0],n,i),o=Lh(e[i][1],n,i);t[dR[i]]=t[dN[i]]=NaN,r&&o&&(t[dR[i]]=r.xy,t[dN[i]]=o.xy+o.wh-r.xy)}function Lb(t,e,n,i){return t[dR[e]]=n,t[dR[1-e]]=i,t}function Lw(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var LS=function(){function t(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=+("x"!==t),this._model=e,this._uniqueValueGen=(i=RegExp("^"+(n=t.toUpperCase())+"([0-9]+)$"),r=0,{calcDupBase:function(t){var e;null!=t&&(e=t.match(i))&&(r=r6(r,+e[1]+1))},ensureValueUnique:function(t,e){for(var i=el(),o=0;o=1,x=n[dR[i]],_=o.getLocatorCount(i)-1,b=new oY;for(a.resetLayoutIterator(b,i);b.next();)w(b.item);for(o.resetLayoutIterator(b,i);b.next();)w(b.item);function w(t){var e;(e=t.wh)!=e&&(t.wh=v),t.xy=x,t.id[dR[i]]!==_||m||(t.wh=n[dR[i]]+n[dN[i]]-t.xy),x+=t.wh}}function Lj(t,e){for(var n=e[dR[t]].resetCellIterator();n.next();){var i=n.item;LK(i.rect,t,i.id,i.span,e),LK(i.rect,1-t,i.id,i.span,e),3===i.type&&(i.xy=i.rect[dR[t]],i.wh=i.rect[dN[t]])}}function Lq(t,e){t.travelExistingCells(function(t){var n=t.span;if(n){var i=t.spanRect,r=t.id;LK(i,0,r,n,e),LK(i,1,r,n,e)}})}function LK(t,e,n,i,r){t[dN[e]]=0;var o=n[dR[e]]<0?r[dR[1-e]]:r[dR[e]],a=o.getUnitLayoutInfo(e,n[dR[e]]);if(t[dR[e]]=a.xy,t[dN[e]]=a.wh,i[dR[e]]>1){var s=o.getUnitLayoutInfo(e,n[dR[e]]+i[dR[e]]-1);t[dN[e]]=s.xy+s.wh-a.xy}}function L$(t,e){return Math.max(Math.min(t,t6(e,1/0)),0)}function LJ(t){var e=t.matrixModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var LQ={inBody:1,inCorner:2,outside:3},L0={x:null,y:null,point:[]};function L1(t,e,n,i,r){var o=n[dR[e]],a=n[dR[1-e]],s=o.getUnitLayoutInfo(e,o.getLocatorCount(e)-1),l=o.getUnitLayoutInfo(e,0),u=a.getUnitLayoutInfo(e,-a.getLocatorCount(e)),h=a.shouldShow()?a.getUnitLayoutInfo(e,-1):null,c=t.point[e]=i[e];if(!l&&!h){t[dR[e]]=LQ.outside;return}if(r===Lu.body)return void(l?(t[dR[e]]=LQ.inBody,c=r4(s.xy+s.wh,r6(l.xy,c)),t.point[e]=c):t[dR[e]]=LQ.outside);if(r===Lu.corner)return void(h?(t[dR[e]]=LQ.inCorner,c=r4(h.xy+h.wh,r6(u.xy,c)),t.point[e]=c):t[dR[e]]=LQ.outside);var p=l?l.xy:h?h.xy+h.wh:NaN,d=u?u.xy:p,f=s?s.xy+s.wh:p;if(cf){if(!r){t[dR[e]]=LQ.outside;return}c=f}t.point[e]=c,t[dR[e]]=p<=c&&c<=f?LQ.inBody:d<=c&&c<=p?LQ.inCorner:LQ.outside}function L2(t,e,n,i){var r=1-n;if(t[dR[n]]!==LQ.outside)for(i[dR[n]].resetCellIterator(LX);LX.next();){var o=LX.item;if(L3(t.point[n],o.rect,n)&&L3(t.point[r],o.rect,r)){e[n]=o.ordinal,e[r]=o.id[dR[r]];return}}}function L5(t,e,n,i){if(t[dR[n]]!==LQ.outside)for((t[dR[n]]===LQ.inCorner?i[dR[1-n]]:i[dR[n]]).resetLayoutIterator(LY,n);LY.next();){var r,o;if(r=t.point[n],(o=LY.item).xy<=r&&r<=o.xy+o.wh){e[n]=LY.item.id[dR[n]];return}}}function L3(t,e,n){return e[dR[n]]<=t&&t<=e[dR[n]]+e[dN[n]]}function L4(t,e){var n;return tB(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var L6=["transition","enterFrom","leaveTo"],L8=L6.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function L7(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?L6:L8,r=0;r=0;l--){var u=n[l],h=oL(u.id,null),c=null!=h?r.get(h):null;if(c){var p=c.parent,g=Pe(p),y=p===i?{width:o,height:a}:{width:g.width,height:g.height},v={},m=hu(c,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!Pe(c).isNew&&m){for(var x=u.transition,_={},b=0;b=0)?_[w]=S:c[w]=S}lR(c,_,t,0)}else c.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){Po(n,Pe(n).option,e,t._lastGraphicModel)}),this._elMap=el()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(pC);function Pi(t){var e=new(ep(Pt,t)?Pt[t]:dG(t))({});return Pe(e).type=t,e}function Pr(t,e,n,i){var r=Pi(n);return e.add(r),i.set(t,r),Pe(r).id=t,Pe(r).isNew=!0,r}function Po(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){Po(t,e,n,i)}),Dd(t,e,i),n.removeKey(Pe(t).id))}function Pa(t,e,n,i){t.isGroup||tB([["cursor",aM.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];ep(e,i)?t[i]=t6(e[i],n[1]):null==t[i]&&(t[i]=n[1])}),tB(tH(e),function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=tZ(i)?i:null}}),ep(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var Ps=["x","y","radius","angle","single"],Pl=["cartesian2d","polar","singleAxis"];function Pu(t){return t+"Axis"}function Ph(t){var e=t.ecModel,n={infoList:[],infoMap:el()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(Pu(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var Pc=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}(),Pp=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 tn(e,t),e.prototype.init=function(t,e,n){var i=Pd(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=Pd(t);tD(this.option,t,!0),tD(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;tB([["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=el();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 tB(Ps,function(n){var i=this.getReferringComponents(Pu(n),oG);if(i.specified){e=!0;var r=new Pc;tB(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,r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});if(a(o,r),i){var o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new Pc;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",oV).models[0];a&&tB(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",oV).models[0]&&o.add(t.componentIndex)})}}}i&&tB(Ps,function(e){if(i){var r=n.findComponents({mainType:Pu(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new Pc;o.add(r[0].componentIndex),t.set(e,o),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");tB([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(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(Pu(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){tB(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(Pu(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;tB([["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;tB(["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();if(n)return n.getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0){var n=Pu(this._dimName),i=e.getReferringComponents(n,oV).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 tA(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];tB(["start","end"],function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(r7(h,o,n))):(e=!0,h=r7(c=null==c?n[u]:i.parse(c),n,o)),s[u]=null==c||isNaN(c)?n[u]:c,a[u]=null==h||isNaN(h)?o[u]:h}),on(s),on(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";Tw(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=r7(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e,n,i,r,o,a=this.getTargetSeriesModels();this._dataExtent=(e=this,n=this._dimName,i=[1/0,-1/0],tB(a,function(t){_H(i,t.getData(),n)}),[(o=_P((r=e.getAxisModel()).axis.scale,r,i).calculate()).min,o.max]),this._updateMinMaxSpan();var s=this.calculateDataWindow(t.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&tB(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=tV(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;lo[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n})}else tB(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}});tB(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;tB(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=r7(n[0]+o,n,[0,100],!0):null!=r&&(o=r7(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=oo(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}();let Pm={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(Pu(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Pv(e,i,o,t),n.push(r.__dzAxisProxy))});var i=el();return tB(n,function(t){tB(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]})}})}};var Px=!1;function P_(t){Px||(Px=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Pm),t.registerAction("dataZoom",function(t,e){tB(function(t,e){var n,i=el(),r=[],o=el();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do n=!1,t.eachComponent("dataZoom",a);while(n)function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Pb(t){t.registerComponentModel(Pf),t.registerComponentView(Py),P_(t)}var Pw=function(){},PS={},PM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;tB(this.option.feature,function(t,n){var i=PS[n];i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),tD(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:hx.color.border,borderRadius:0,borderWidth:0,padding:hx.size.m,itemSize:15,itemGap:hx.size.s,showTitle:!0,iconStyle:{borderColor:hx.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:hx.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(hy);function PI(t,e){var n=t9(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new s_({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})}var PT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];tB(s,function(t,e){u.push(e)}),new vA(this._featureNames||[],u).add(f).update(f).remove(tY(f,null)).execute(),this._featureNames=u;var h=hl(t,n).refContainer,c=t.getBoxLayoutParams(),p=t.get("padding"),d=ho(c,h,p);hn(t.get("orient"),r,t.get("itemGap"),d.width,d.height),hu(r,c,h,p),r.add(PI(r.getBoundingRect(),t)),a||r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!tZ(l)&&e){var u=l.style||(l.style={}),h=rO(e,sM.makeFont(u)),c=t.x+r.x,p=t.y+r.y+o,d=!1;p+h.height>n.getHeight()&&(a.position="top",d=!0);var f=d?-5-h.height:o+10;c+h.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):c-h.width/2<0&&(a.position=[0,f],u.align="left")}})}function f(h,c){var p,d,f,g,y,v,m,x,_,b,w,S=u[h],M=u[c],I=s[S],T=new ur(I,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===S&&(I.title=i.newTitle),S&&!M){if(0===S.indexOf("my"))w={onclick:T.option.onclick,featureName:S};else{var C=PS[S];if(!C)return;w=new C}l[S]=w}else if(!(w=l[M]))return;w.uid=ua("toolbox-feature"),w.model=T,w.ecModel=e,w.api=n;var A=w instanceof Pw;if(!S&&M){A&&w.dispose&&w.dispose(e,n);return}if(!T.get("show")||A&&w.unusable){A&&w.remove&&w.remove(e,n);return}p=T,d=w,f=S,v=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),x=d instanceof Pw&&d.getIcons?d.getIcons():p.get("icon"),_=p.get("title")||{},tj(x)?(g={})[f]=x:g=x,tj(_)?(y={})[f]=_:y=_,b=p.iconPaths={},tB(g,function(i,s){var l=d1(i,{},{x:-o/2,y:-o/2,width:o,height:o});l.setStyle(v.getItemStyle()),l.ensureState("emphasis").style=m.getItemStyle();var u=new sM({style:{text:y[s],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:lQ({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},e)},ignore:!0});l.setTextContent(u),d8({el:l,componentModel:t,itemName:s,formatterParamsExtra:{title:y[s]}}),l.__title=y[s],l.on("mouseover",function(){var e=m.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";u.setStyle({fill:m.get("textFill")||e.fill||e.stroke||hx.color.neutral99,backgroundColor:m.get("textBackgroundColor")}),l.setTextConfig({position:m.get("textPosition")||i}),u.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==p.get(["iconStatus",s])&&n.leaveEmphasis(this),u.hide()}),("emphasis"===p.get(["iconStatus",s])?le:ln)(l),r.add(l),l.on("click",tU(d.onclick,d,e,n,s)),b[s]=l}),T.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?le:ln)(i[t])},w instanceof Pw&&w.render&&w.render(T,e,n,i)}},e.prototype.updateView=function(t,e,n,i){tB(this._features,function(t){t instanceof Pw&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){tB(this._features,function(n){n instanceof Pw&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){tB(this._features,function(n){n instanceof Pw&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(pC),PC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(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(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||hx.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=tl.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,h=r?decodeURIComponent(l[1]):l[1];u&&(h=window.atob(h));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,d=new Uint8Array(p);p--;)d[p]=h.charCodeAt(p);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(h),v.close(),y.focus(),v.execCommand("SaveAs",!0,c),document.body.removeChild(g)}}else{var m=n.get("lang"),x='',_=window.open();_.document.write(x),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},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:hx.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(Pw),PA="__ec_magicType_stack__",PD=[["line","bar"],["stack"]],Pk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return tB(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,r=this.model,o=r.get(["seriesIndex",n]);if(PL[n]){var a={series:[]};tB(PD,function(t){tR(t,n)>=0&&tB(t,function(t){r.setIconStatus(t,"normal")})}),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(t){var e=t.subType,i=t.id,o=PL[n](e,i,t,r);o&&(tP(o,t.option),a.series.push(o));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",h=t.getReferringComponents(u,oV).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(i=tD({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:i,featureName:"magicType"})}},e}(Pw),PL={line:function(t,e,n,i){if("bar"===t)return tD({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 tD({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=n.get("stack")===PA;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),tD({id:e,stack:r?"":PA},i.get(["option","stack"])||{},!0)}};yp({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var PP=Array(60).join("-");function PO(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var PR=RegExp("[ ]+","g"),PN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n,i,r,o,a,s,l=e.getDom(),u=this.model;this._dom&&l.removeChild(this._dom);var h=document.createElement("div");h.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",h.style.backgroundColor=u.get("backgroundColor")||hx.color.neutral00;var c=document.createElement("h4"),p=u.get("lang")||[];c.innerHTML=p[0]||u.get("title"),c.style.cssText="margin:10px 20px",c.style.color=u.get("textColor");var d=document.createElement("div"),f=document.createElement("textarea");d.style.cssText="overflow:auto";var g=u.get("optionToContent"),y=u.get("contentToOption"),v={value:tF([(o=(s=(n={},i=[],r=[],t.eachRawSeries(function(t){var e=t.coordinateSystem;if(e&&("cartesian2d"===e.type||"polar"===e.type)){var o=e.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;n[a]||(n[a]={categoryAxis:o,valueAxis:e.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),n[a].series.push(t)}else i.push(t)}else i.push(t)}),{seriesGroupByCategoryAxis:n,other:i,meta:r})).seriesGroupByCategoryAxis,a=[],tB(o,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,r=[" "].concat(tV(t.series,function(t){return t.name})),o=[n.model.getCategories()];tB(t.series,function(t){var e=t.getRawData();o.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var s=[r.join(" ")],l=0;l=0)return!0}(t)){var n=function(t){for(var e=t.split(/\n+/g),n=PO(e.shift()).split(PR),i=[],r=tV(n,function(t){return{name:t,data:[]}}),o=0;o=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=PX[t.brushType](0,n,e);t.__rangeOffset={offset:Pj[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){tB(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&tB(i.coordSyses,function(i){var r=PX[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){tB(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i,r,o,a,s,l=PX[t.brushType](0,n.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?Pj[t.brushType](l.values,u.offset,(i=l.xyMinMax,r=u.xyMinMax,o=PK(i),a=PK(r),isNaN((s=[o[0]/a[0],o[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return tV(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Cu(i),isTargetByCursor:Cc(i,t,n.coordSysModel),getLinearBrushOtherExtent:Ch(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&tR(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=PW(e,t),r=0;rt[1]&&t.reverse(),t}function PW(t,e){return oz(t,e,{includeMainTypes:PV})}var PH={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=el(),a={},s={};(n||i||r)&&(tB(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),tB(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),tB(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];tB(r.getCartesians(),function(t,e){(tR(n,t.getAxis("x").model)>=0||tR(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:PY.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){tB(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:PY.geo})})}},PU=[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}],PY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(dq(t)),e}},PX={lineX:tY(PZ,0),lineY:tY(PZ,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),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[PF([r[0],o[0]]),PF([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:tV(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function PZ(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=PF(tV([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var Pj={lineX:tY(Pq,0),lineY:tY(Pq,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 tV(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function Pq(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function PK(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var P$=oS+"toolbox-dataZoom_",PJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.render=function(t,e,n,i){var r,o,a,s,l,u,h,c,p;this._brushController||(this._brushController=new TW(n.getZr()),this._brushController.on("brush",tU(this._onBrush,this)).mount()),r=t,o=e,a=this,s=i,l=n,u=a._isZoomActive,s&&"takeGlobalCursor"===s.type&&(u="dataZoomSelect"===s.key&&s.dataZoomSelectActive),a._isZoomActive=u,r.setIconStatus("zoom",u?"emphasis":"normal"),h=new PG(P0(r),o,{include:["grid"]}).makePanelOpts(l,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(h).enableBrush(!!u&&!!h.length&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}),c=t,p=e,c.setIconStatus("back",Pz(p).length>1?"emphasis":"normal")},e.prototype.onclick=function(t,e,n){PQ[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,r,o={},a=this.ecModel;this._brushController.updateCovers([]),new PG(P0(this.model),a,{include:["grid"]}).matchOutputRanges(e,a,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}}),n=a,i=o,r=Pz(n),tB(i,function(t,e){for(var i=r.length-1;i>=0&&!r[i][e];i--);if(i<0){var o=n.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(o){var a=o.getPercentRange();r[0][e]={dataZoomId:e,start:a[0],end:a[1]}}}}),r.push(i),this._dispatchZoomAction(o)}function s(t,e,n){var i,r,s,l=e.getAxis(t),u=l.model,h=(i=t,r=u,a.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,r.componentIndex)&&(s=t)}),s),c=h.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=c.minValueSpan||null!=c.maxValueSpan)&&(n=Tw(0,n.slice(),l.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),h&&(o[h.id]={dataZoomId:h.id,startValue:n[0],endValue:n[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];tB(t,function(t,n){e.push(tA(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:hx.color.backgroundTint}}},e}(Pw),PQ={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,e,n;this._dispatchZoomAction((e=(t=Pz(this.ecModel))[t.length-1],t.length>1&&t.pop(),n={},tB(e,function(e,i){for(var r=t.length-1;r>=0;r--)if(e=t[r][i]){n[i]=e;break}}),n))}};function P0(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}p=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=oz(t,P0(i));return tB(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),tB(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:P$+e+o};a[n]=o,r.push(a)}},et(null==hW.get("dataZoom")&&p),hW.set("dataZoom",p);var P1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:hx.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:hx.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:hx.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:hx.color.tertiary,fontSize:14}},e}(hy);function P2(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function P5(t){if(tl.domSupported){for(var e=document.documentElement.style,n=0,i=t.length;n0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,v,m,x,_,b,w,S,M,I,T=this.el,C=T.style,A=this._styleCoord;T.innerHTML?C.cssText=P7+(n=!this._firstShow,i=this._longHide,r=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=pd(t,"html"),f=h+"px "+c+"px "+l+"px "+u,o.push("box-shadow:"+f),n&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",y="",v="",r&&(v="opacity"+(y=" "+a/2+"s "+g)+",visibility"+y),i||(y=" "+a+"s "+g,v+=(v.length?",":"")+(tl.transformSupported?""+P8+y:",left"+y+",top"+y)),P6+":"+v)),s&&o.push("background-color:"+s),tB(["width","color","radius"],function(e){var n="border-"+e,i=uX(n),r=t.get(i);null!=r&&o.push(n+":"+r+("color"===e?"":"px"))}),o.push((m=[],x=p.get("fontSize"),(_=p.getTextColor())&&m.push("color:"+_),m.push("font:"+p.getFont()),b=t6(p.get("lineHeight"),Math.round(3*x/2)),x&&m.push("line-height:"+b+"px"),w=p.get("textShadowColor"),S=p.get("textShadowBlur")||0,M=p.get("textShadowOffsetX")||0,I=p.get("textShadowOffsetY")||0,w&&S&&m.push("text-shadow:"+M+"px "+I+"px "+S+"px "+w),tB(["decoration","align"],function(t){var e=p.get(t);e&&m.push("text-"+t+":"+e)}),m.join(";"))),null!=d&&o.push("padding:"+t9(d).join("px ")+"px"),o.join(";")+";")+P9(A[0],A[1],!0)+"border-color:"+u1(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):C.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(tj(r)&&"item"===n.get("trigger")&&!P2(n)&&(a=function(t,e,n){if(!tj(n)||"inside"===n)return"";var i,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=u1(e);var s=i="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",l=Math.max(1.5*Math.round(a),6),u="",h=P8+":";tR(["left","right"],s)>-1?(u+="top:50%",h+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var c=r*Math.PI/180,p=l+a,d=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));u+=";"+s+":-"+Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-p)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'
'}(n,i,r)),tj(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tX(t)||(t=[t]);for(var s=0;s=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&&!tl.node&&n.getDom()){var r=Ou(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i,r=oB(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=oF(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=sz(e).tooltipConfig;if(n&&n.name===t.name)return i=e,!0}),i))return{componentMainType:o,componentIndex:a.componentIndex,el:i}}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y)Oa.x=i.x,Oa.y=i.y,Oa.update(),sz(Oa).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:Oa},r);else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=kp(i,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.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(Ou(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===Ol([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,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,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===sz(n).ssrType)return;this._lastDataByCoordSys=null,f0(n,function(t){if(t.tooltipDisabled)return i=r=null,!0;i||r||(null!=sz(t).dataIndex?i=t:null!=sz(t).tooltipConfig&&(r=t))},!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tU(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],o=Ol([e.tooltipOption],i),a=this._renderMode,s=[],l=po("section",{blocks:[],noHeader:!0}),u=[],h=new pf;tB(t,function(t){tB(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=D4(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=po("section",{header:o,noHeader:!ee(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),tB(t.seriesDataIndices,function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=_V(e.axis,{value:r}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",u1(f.color),a);var g=cR(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var v=Ol([p],i).get("valueFormatter");c.blocks.push(v?tL({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,p=pu(l,h,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"
",f=u.join(d);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=sz(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,d=Ol([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new pf;g.marker=y.makeTooltipMarker("item",u1(g.color),c);var v=cR(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=v.frag,b=_?pu(x?tL({valueFormatter:x},_):_,y,c,m,i.get("useUTC"),d.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=sz(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tj(o)){var s=o;o={content:s,formatter:s},a=!0}a&&i&&o.content&&((o=tA(o)).content=e$(o.content));var l=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=Ol(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),d=Math.random()+"",f=new pf;this._showOrMove(c,function(){var n=tA(c.get("formatterParams")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(h)if(tj(h)){var d=t.ecModel.get("useUTC"),f=tX(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;c=h,g&&(c=uC(f.axisValue,c,d)),c=uK(c,n,!0)}else if(tZ(h)){var y=tU(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,y)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||tX(e)?{color:i||r}:tX(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),tZ(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),tX(e))n=r9(e[0],s),i=r9(e[1],l);else if(t$(e)){var d=e;d.width=u[0],d.height=u[1];var f=ho(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(tj(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var y,v,m,x,_,b,w,S,M,I,g=(y=n,v=i,m=r,x=s,_=l,b=h?null:20,w=c?null:20,M=(S=m.getSize())[0],I=S[1],null!=b&&(y+M+b+2>x?y-=M+b:y+=b),null!=w&&(v+I+w>_?v-=I+w:v+=w),[y,v]);n=g[0],i=g[1]}if(h&&(n-=Oh(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=Oh(c)?u[1]/2:"bottom"===c?u[1]:0),P2(t)){var T,C,A,D,k,L,P,O,g=(T=n,C=i,A=r,D=s,k=l,P=(L=A.getSize())[0],O=L[1],T=Math.min(T+P,D)-P,C=Math.min(C+O,k)-O,[T=Math.max(T,0),C=Math.max(C,0)]);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&&tB(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tB(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tB(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&tB(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.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){!tl.node&&e.getDom()&&(f_(this,"_updatePosition"),this._tooltipContent.dispose(),kh("itemTooltip",e))},e.type="tooltip",e}(pC);function Ol(t,e,n){var i,r=e.ecModel;n?(i=new ur(n,r,r),i=new ur(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ur&&(a=a.get("tooltip",!0)),tj(a)&&(a={formatter:a}),a&&(i=new ur(a,i,r)))}return i}function Ou(t,e){return t.dispatchAction||tU(e.dispatchAction,e)}function Oh(t){return"center"===t||"middle"===t}var Oc=["rect","polygon","keep","clear"];function Op(t,e){var n=oM(t?t.brush:[]);if(n.length){var i,r,o=[];tB(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(o=o.concat(e))});var a=t&&t.toolbox;tX(a)&&(a=a[0]),a||(t.toolbox=[a={feature:{}}]);var s=a.feature||(a.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,o),r={},tB(i=u,function(t){r[t]=1}),i.length=0,tB(r,function(t,e){i.push(e)}),e&&!u.length&&u.push.apply(u,Oc)}}function Od(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function Of(t,e,n){var i={};return tB(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);tB(t[e],function(t,i){if(ME.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new ME(r),"opacity"===i&&((r=tA(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new ME(r))}})}),i}function Og(t,e,n){var i;tB(n,function(t){e.hasOwnProperty(t)&&Od(e[t])&&(i=!0)}),i&&tB(n,function(n){e.hasOwnProperty(n)&&Od(e[n])?t[n]=tA(e[n]):delete t[n]})}var Oy={lineX:Ov(0),lineY:Ov(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])&&w6(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,o=t.y,a=t.width,s=t.height,l=i[0];if(w6(i,r,o)||w6(i,r+a,o)||w6(i,r,o+s)||w6(i,r+a,o+s)||nM.create(t).contain(l[0],l[1])||d2(r,o,r+a,o,i)||d2(r,o,r,o+s,i)||d2(r+a,o,r+a,o+s,i)||d2(r,o+s,r+a,o+s,i))return!0}}};function Ov(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return Om(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]tR(s,a):a!==s)))&&(tB(d,function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),p=p||y(r)}),g(i)&&y(r))){var o,a,s,l=n.getData();l.each(function(t){OI(n,r,l,t)&&(h[t]=1)})}}(n,i,s)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=c[e],r=t.getData(),o=g(e)?function(t){return h[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return OI(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?p:y(i))&&function(t,e,n,i,r,o){var a,s={};function l(t){return fq(n,a,t)}function u(t,e){f$(n,a,t,e)}tB(t,function(t){var n=ME.prepareVisualTypes(e[t]);s[t]=n}),n.each(function(t,r){a=t;var o=n.getRawDataItem(a);if(!o||!1!==o.visualMap)for(var h=i.call(void 0,t),c=e[h],p=s[h],d=0,f=p.length;de[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&OC(e)}};function OC(t){return new nM(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var OA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new TW(e.getZr())).on("brush",tU(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){Ow(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:tA(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:tA(n),$from:e})},e.type="brush",e}(pC),OD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return tn(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;e||Og(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=tV(t,function(t){return Ok(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Ok(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:hx.color.backgroundTint,borderColor:hx.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:hx.color.disabled},e}(hy);function Ok(t,e){return tD({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new ur(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var OL=["rect","polygon","lineX","lineY","keep","clear"],OP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,tB(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o: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 tB(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:OL.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}(Pw),OO=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 tn(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:hx.size.m,backgroundColor:hx.color.transparent,borderColor:hx.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:hx.color.primary},subtextStyle:{fontSize:12,color:hx.color.quaternary}},e}(hy),OR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=t6(t.get("textBaseline"),t.get("textVerticalAlign")),l=new sM({style:lZ(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new sM({style:lZ(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",function(){u2(p,"_"+t.get("target"))}),d&&c.on("click",function(){u2(d,"_"+t.get("subtarget"))}),sz(l).eventData=sz(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=ho(y,hl(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new s_({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}(pC),ON=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return tn(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=[],tB(n,function(e,n){var i,o=oL(oC(e),"");t$(e)?(i=tA(e)).value=n:i=n,t.push(i),r.push(o)})):t=n,(this._data=new vH([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],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:hx.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:hx.color.secondary},data:[]},e}(hy),OE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="timeline.slider",e.defaultOption=us(ON.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:hx.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:hx.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:hx.color.tertiary},itemStyle:{color:hx.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:hx.color.accent50,borderColor:hx.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:hx.color.accent50,borderColor:hx.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:hx.color.accent60},itemStyle:{color:hx.color.accent60,borderColor:hx.color.accent60},controlStyle:{color:hx.color.accent70,borderColor:hx.color.accent70}},progress:{lineStyle:{color:hx.color.accent30},itemStyle:{color:hx.color.accent40}},data:[]}),e}(ON);tE(OE,cO.prototype);var Oz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="timeline",e}(pC),OB=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return tn(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(bn),OV=Math.PI,OG=oN(),OF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return po("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},tB(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,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,o,a,s,l=t.get(["label","position"]),u=t.get("orient"),h=(n=t,i=e,ho(n.getBoxLayoutParams(),hl(n,i).refContainer,n.get("padding"))),c={horizontal:"center",vertical:(r=null==l||"auto"===l?"horizontal"===u?h.y+h.height/2=0||"+"===r?"left":"right"},p="vertical"===u?h.height:h.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*OV/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),w=f&&d.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(_&&(o=[0,0],S+=v),b&&(a=[S,0],S+=v)):(_&&(o=[M-g,0],M-=v),b&&(a=[0,0],S+=v)),w&&(s=[M-g,0],M-=v);var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:h,mainLength:p,orient:u,rotation:({horizontal:0,vertical:OV/2})[u],labelRotation:m,labelPosOpt:r,labelAlign:t.get(["label","align"])||c[u],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||({horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"})[u],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,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 o=ne(),a=r.x,s=r.y+r.height;no(o,o,[-a,-s]),na(o,o,-OV/2),no(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),h=y(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=l[0][0];var d=t.labelPosOpt;if(null==d||tj(d)){var f=+("+"!==d);v(c,u,l,1,f),v(p,h,l,1,1-f)}else{var f=d>=0?0:1;v(c,u,l,1,f),p[1]=c[1]+d}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 v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(c),i.setPosition(p),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 _y({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new _x({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new _v}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new OB("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new rj;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new dc({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:tL({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new dc({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:tP({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],tB(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c=OW(s,l,e,{x:a,y:0,onclick:tU(r._changeTimeline,r,t.value)});c.ensureState("emphasis").style=u.getItemStyle(),c.ensureState("progress").style=h.getItemStyle(),lm(c);var p=sz(c);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(c)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],tB(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=new sM({x:n.dataToCoord(i.tickValue),y:0,rotation:t.labelRotation-t.rotation,onclick:tU(r._changeTimeline,r,a),silent:!1,style:lZ(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});c.ensureState("emphasis").style=lZ(u),c.ensureState("progress").style=lZ(h),e.add(c),lm(c),OG(c).dataIndex=a,r._tickLabels.push(c)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h,c,p,d,f,g,y=rz(t6(i.get(["controlStyle",n+"BtnSize"]),r),r),v=(h=i,c=n+"Icon",p=[0,-y/2,y,y],f=(d={x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l}).style,g=d1(h.get(["controlStyle",c]),d||{},new nM(p[0],p[1],p[2],p[3])),f&&g.setStyle(f),g);v.ensureState("emphasis").style=s,e.add(v),lm(v)}}h(t.nextBtnPosition,"next",tU(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",tU(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",tU(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=OW(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=tU(s._handlePointerDrag,s),t.ondragend=tU(s._handlePointerDragend,s),OH(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){OH(t,s._progressLine,o,n,i)}})},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=on(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(s[a]=+s[a].toFixed(p)),[s,c]}var O0={min:tY(OQ,"min"),max:tY(OQ,"max"),average:tY(OQ,"average"),median:tY(OQ,"median")};function O1(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(!(!isNaN(parseFloat((n=e).x))&&!isNaN(parseFloat(n.y)))&&!tX(e.coord)&&tX(o)){var a=O2(e,i,r,t);if((e=tA(e)).type&&O0[e.type]&&a.baseAxis&&a.valueAxis){var s=tR(o,a.baseAxis.dim),l=tR(o,a.valueAxis.dim),u=O0[e.type](i,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&tX(o))for(var h=e.coord,c=0;c<2;c++)O0[h[c]]&&(h[c]=O4(i,i.mapDimension(o[c]),h[c]));else{e.coord=[];var p=t.getBaseAxis();if(p&&e.type&&O0[e.type]){var d=r.getOtherAxis(p);d&&(e.value=O4(i,i.mapDimension(d.dim),e.type))}}return e}}function O2(t,e,n,i){var r,o,a,s={};return null!=t.valueIndex||null!=t.valueDim?(s.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis((r=i,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function O5(t,e){return!t||!t.containData||!e.coord||!!OJ(e)||t.containData(e.coord)}function O3(t,e){return t?function(t,n,i,r){return cB(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return cB(t.value,e[r])}}function O4(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)]}var O6=oN(),O8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.init=function(){this.markerGroupMap=el()},e.prototype.render=function(t,e,n){var i,r,o,a=this,s=this.markerGroupMap;s.each(function(t){O6(t).keep=!1}),e.eachSeries(function(t){var i=OK.getMarkerModelFromSeries(t,a.type);i&&a.renderSeries(t,i,e,n)}),s.each(function(t){O6(t).keep||a.group.remove(t.group)}),i=e,r=s,o=this.type,i.eachSeries(function(t){var e=OK.getMarkerModelFromSeries(t,o),n=r.get(t.id);if(e&&n&&n.group){var i=fr(e),a=i.z,s=i.zlevel;fa(n.group,a,s)}})},e.prototype.markKeep=function(t){O6(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;tB(t,function(t){var i=OK.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?li(t):lr(t))})})},e.type="marker",e}(pC);function O7(t,e,n){var i=e.coordinateSystem,r=n.getWidth(),o=n.getHeight(),a=i&&i.getArea&&i.getArea();t.each(function(n){var s,l=t.getItemModel(n),u="coordinate"===l.get("relativeTo"),h=u?a?a.width:0:r,c=u?a?a.height:0:o,p=u&&a?a.x:0,d=u&&a?a.y:0,f=r9(l.get("x"),h)+p,g=r9(l.get("y"),c)+d;if(isNaN(f)||isNaN(g)){if(e.getMarkerPosition)s=e.getMarkerPosition(t.getValues(t.dimensions,n));else if(i){var y=t.get(i.dimensions[0],n),v=t.get(i.dimensions[1],n);s=i.dataToPoint([y,v])}}else s=[f,g];isNaN(f)||(s[0]=f),isNaN(g)||(s[1]=g),t.setItemLayout(n,s)})}var O9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=OK.getMarkerModelFromSeries(t,"markPoint");e&&(O7(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,s,l,u,h,c=t.coordinateSystem,p=t.id,d=t.getData(),f=this.markerGroupMap,g=f.get(p)||f.set(p,new v8),y=(r=c,o=t,a=e,l=new vH(s=r?tV(r&&r.dimensions,function(t){return tL(tL({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],a),u=tV(a.get("data"),tY(O1,o)),r&&(u=tF(u,tY(O5,r))),h=O3(!!r,s),l.initData(u,null,h),l);e.setData(y),O7(e.getData(),t,i),y.each(function(t){var n=y.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if(tZ(i)||tZ(r)||tZ(o)||tZ(a)){var l=e.getRawValue(t),u=e.getDataParams(t);tZ(i)&&(i=i(l,u)),tZ(r)&&(r=r(l,u)),tZ(o)&&(o=o(l,u)),tZ(a)&&(a=a(l,u))}var h=n.getModel("itemStyle").getItemStyle(),c=n.get("z2"),p=fK(d,"color");h.fill||(h.fill=p),y.setItemVisual(t,{z2:t6(c,0),symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:h})}),g.updateData(y),this.group.add(g.group),y.eachItemGraphicEl(function(t){t.traverse(function(t){sz(t).dataModel=e})}),this.markKeep(g),g.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(O8),Rt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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}(OK),Re=oN(),Rn=function(t,e,n,i){var r,o=t.getData();if(tX(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=t4(i.yAxis,i.xAxis);else{var u=O2(i,o,e,t);s=u.valueAxis;var h=v$(o,u.valueDataDim);l=O4(o,h,a)}var c=+("x"!==s.dim),p=1-c,d=tA(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=n.get("precision");g>=0&&tK(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var y=[O1(t,r[0]),O1(t,r[1]),tL({},r[2])];return y[2].type=y[2].type||null,tD(y[2],y[0]),tD(y[2],y[1]),y};function Ri(t){return!isNaN(t)&&!isFinite(t)}function Rr(t,e,n,i){var r=1-t,o=i.dimensions[t];return Ri(e[r])&&Ri(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function Ro(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(Rr(1,n,i,t)||Rr(0,n,i,t)))return!0}return O5(t,e[0])&&O5(t,e[1])}function Ra(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=r9(s.get("x"),r.getWidth()),u=r9(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(mf(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y"),h=a.dimensions;Ri(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[+!n]):Ri(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[+!n]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var Rs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=OK.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=Re(e).from,o=Re(e).to;r.each(function(e){Ra(r,e,!0,t,n),Ra(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,s,l,u,h,c,p,d=t.coordinateSystem,f=t.id,g=t.getData(),y=this.markerGroupMap,v=y.get(f)||y.set(f,new IP);this.group.add(v.group);var m=(r=d,o=t,a=e,l=new vH(s=r?tV(r&&r.dimensions,function(t){return tL(tL({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],a),u=new vH(s,a),h=new vH([],a),c=tV(a.get("data"),tY(Rn,o,r,a)),r&&(c=tF(c,tY(Ro,r))),p=O3(!!r,s),l.initData(tV(c,function(t){return t[0]}),null,p),u.initData(tV(c,function(t){return t[1]}),null,p),h.initData(tV(c,function(t){return t[2]})),h.hasItemOption=!0,{from:l,to:u,line:h}),x=m.from,_=m.to,b=m.line;Re(e).from=x,Re(e).to=_,e.setData(b);var w=e.get("symbol"),S=e.get("symbolSize"),M=e.get("symbolRotate"),I=e.get("symbolOffset");function T(e,n,r){var o=e.getItemModel(n);Ra(e,n,r,t,i);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=fK(g,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:t6(o.get("symbolOffset",!0),I[+!r]),symbolRotate:t6(o.get("symbolRotate",!0),M[+!r]),symbolSize:t6(o.get("symbolSize"),S[+!r]),symbol:t6(o.get("symbol",!0),w[+!r]),style:a})}tX(w)||(w=[w,w]),tX(S)||(S=[S,S]),tX(M)||(M=[M,M]),tX(I)||(I=[I,I]),m.from.each(function(t){T(x,t,!0),T(_,t,!1)}),b.each(function(t){var e=b.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();b.setItemLayout(t,[x.getItemLayout(t),_.getItemLayout(t)]);var i=e.get("z2");null==n.stroke&&(n.stroke=x.getItemVisual(t,"style").fill),b.setItemVisual(t,{z2:t6(i,0),fromSymbolKeepAspect:x.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:x.getItemVisual(t,"symbolOffset"),fromSymbolRotate:x.getItemVisual(t,"symbolRotate"),fromSymbolSize:x.getItemVisual(t,"symbolSize"),fromSymbol:x.getItemVisual(t,"symbol"),toSymbolKeepAspect:_.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:_.getItemVisual(t,"symbolOffset"),toSymbolRotate:_.getItemVisual(t,"symbolRotate"),toSymbolSize:_.getItemVisual(t,"symbolSize"),toSymbol:_.getItemVisual(t,"symbol"),style:n})}),v.updateData(b),m.line.eachItemGraphicEl(function(t){sz(t).dataModel=e,t.traverse(function(t){sz(t).dataModel=e})}),this.markKeep(v),v.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(O8),Rl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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}(OK),Ru=oN(),Rh=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=O1(t,r),s=O1(t,o),l=a.coord,u=s.coord;l[0]=t4(l[0],-1/0),l[1]=t4(l[1],-1/0),u[0]=t4(u[0],1/0),u[1]=t4(u[1],1/0);var h=tk([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function Rc(t){return!isNaN(t)&&!isFinite(t)}function Rp(t,e,n,i){var r=1-t;return Rc(e[r])&&Rc(n[r])}function Rd(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};if(mf(t,"cartesian2d"))return!!(n&&i&&(Rp(1,n,i,t)||Rp(0,n,i,t)))||!t||!t.containZone||!r.coord||!o.coord||!!OJ(r)||!!OJ(o)||t.containZone(r.coord,o.coord);return O5(t,r)||O5(t,o)}function Rf(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=r9(s.get(n[0]),r.getWidth()),u=r9(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),p=a.clampData(h),d=a.clampData(c),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?c[0]:h[0]:f[0]=p[0]>d[0]?h[0]:c[0],"y0"===n[1]?f[1]=p[1]>d[1]?c[1]:h[1]:f[1]=p[1]>d[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(mf(a,"cartesian2d")){var m=a.getAxis("x"),x=a.getAxis("y"),g=t.get(n[0],e),y=t.get(n[1],e);Rc(g)?o[0]=m.toGlobalCoord(m.getExtent()[+("x0"!==n[0])]):Rc(y)&&(o[1]=x.toGlobalCoord(x.getExtent()[+("y0"!==n[1])]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var Rg=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ry=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=OK.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=tV(Rg,function(r){return Rf(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,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new rj});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){if(t){var i,r,o=tV(t&&t.dimensions,function(t){var n=e.getData();return tL(tL({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})});i=new vH(r=tV(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),n)}else i=new vH(r=[{name:"value",type:"float"}],n);var a=tV(n.get("data"),tY(Rh,e,t,n));t&&(a=tF(a,tY(Rd,t)));var s=t?function(t,e,n,i){return cB(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return cB(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each(function(e){var n=tV(Rg,function(n){return Rf(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];on(c),on(p);var d=!(l[0]>c[1]||l[1]p[1]||h[1]=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",bottom:hx.size.m,align:"auto",backgroundColor:hx.color.transparent,borderColor:hx.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:hx.color.disabled,inactiveBorderColor:hx.color.disabled,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:hx.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:hx.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:hx.color.tertiary,borderWidth:1,borderColor:hx.color.border},emphasis:{selectorLabel:{show:!0,color:hx.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(hy),Rm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return tn(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rj),this.group.add(this._selectorGroup=new rj),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"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);a&&(!s||"auto"===s)&&(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=hl(t,n).refContainer,u=t.getBoxLayoutParams(),h=t.get("padding"),c=ho(u,l,h),p=this.layoutInner(t,r,c,i,a,s),d=ho(tP({width:p.width,height:p.height},u),l,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=PI(p,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,o,a){var s=this.getContentGroup(),l=el(),u=e.get("selectedMode"),h=e.get("triggerEvent"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),tB(e.getData(),function(r,o){var a=this,p=r.get("name");if(!this.newlineDisabled&&(""===p||"\n"===p)){var d=new rj;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(p)[0];if(!l.get(p))if(f){var g=f.getData(),y=g.getVisual("legendLineStyle")||{},v=g.getVisual("legendIcon"),m=g.getVisual("style"),x=this._createItem(f,p,o,r,e,t,y,m,v,u,i);x.on("click",tY(Rx,p,null,i,c)).on("mouseover",tY(Rb,f.name,null,i,c)).on("mouseout",tY(Rw,f.name,null,i,c)),n.ssr&&x.eachChild(function(t){var e=sz(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&x.eachChild(function(t){a.packEventData(t,e,f,o,p)}),l.set(p,!0)}else n.eachRawSeries(function(a){var s=this;if(!l.get(p)&&a.legendVisualProvider){var d=a.legendVisualProvider;if(!d.containName(p))return;var f=d.indexOfName(p),g=d.getItemVisual(f,"style"),y=d.getItemVisual(f,"legendIcon"),v=iS(g.fill);v&&0===v[3]&&(v[3]=.2,g=tL(tL({},g),{fill:iL(v,"rgba")}));var m=this._createItem(a,p,o,r,e,t,{},g,y,u,i);m.on("click",tY(Rx,null,p,i,c)).on("mouseover",tY(Rb,null,p,i,c)).on("mouseout",tY(Rw,null,p,i,c)),n.ssr&&m.eachChild(function(t){var e=sz(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&m.eachChild(function(t){s.packEventData(t,e,a,o,p)}),l.set(p,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},e.prototype.packEventData=function(t,e,n,i,r){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};sz(t).eventData=o},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();tB(t,function(t){var i=t.type,r=new sM({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),lY(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),lm(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon"),m=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),tB(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?gD(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=v||l||"roundRect",i,a,s,c,f,h),x=new rj,_=i.getModel("textStyle");if(tZ(t.getLegendIcon)&&(!v||"inherit"===v))x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));else{var b,w,S,M="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(((S=gn(w=(b={itemWidth:p,itemHeight:d,icon:l,iconRotate:M,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill=hx.color.neutral00,S.style.lineWidth=2),S))}var I=r.get("formatter"),T=e;tj(I)&&I?T=I.replace("{name}",null!=e?e:""):tZ(I)&&(T=I(e));var C=f?_.getTextColor():i.get("inactiveColor");x.add(new sM({style:lZ(_,{text:T,x:"left"===o?p+5:-5,y:d/2,fill:C,align:o,verticalAlign:"middle"},{inheritColor:C})}));var A=new s_({shape:x.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&d8({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),lm(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();hn(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();hn("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(pC);function Rx(t,e,n,i){Rw(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Rb(t,e,n,i)}function R_(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=t6(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-p[r]:g[i]+=p[r]+v),y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=d?n[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=m[o],u.setClipPath(new s_({shape:x})),u.__rectSize=x[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&lR(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),m},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;tB(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",tj(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=RD[r],a=Rk[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=h;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(var f=s-1,g=d,y=d,v=null;f>=-1;--f)(!(v=m(l[f]))||!x(y,v.s))&&g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0},e.type="legend.scroll",e}(Rm);function RP(t){yD(RT),t.registerComponentModel(RC),t.registerComponentView(RL),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)})})}var RO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="dataZoom.inside",e.defaultOption=us(Pp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Pp),RR=oN();function RN(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function RE(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Rz(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var RB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return tn(e,t),e.prototype.render=function(e,n,i){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:tU(RV.pan,this),zoom:tU(RV.zoom,this),scrollMove:tU(RV.scrollMove,this)},RR(i).coordSysRecordMap.each(function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=RR(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Tw(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:RG(function(t,e,n,i,r,o){var a=RF[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:RG(function(t,e,n,i,r,o){return RF[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function RG(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(Tw(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var RF={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},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?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function RW(t){P_(t),t.registerComponentModel(RO),t.registerComponentView(RB),t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=RR(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=el());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tB(Ph(t).infoList,function(n){var r,o,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(o={model:r=n.model,containsPoint:tY(Rz,r),dispatchAction:tY(RE,e),dataZoomInfoMap:null,controller:null}).controller=new wS(e.getZr()),tB(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var n=[];o.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&o.dispatchAction(n)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=el())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var n,r,o,a,s,l=t.controller,u=t.dataZoomInfoMap;if(u){var h=u.keys()[0];null!=h&&(s=u.get(h))}if(!s)return void RN(i,t);var c=(r="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,u.each(function(t){var e=t.model,i=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");o[r+i]>o[r+n]&&(n=i),a=a&&e.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}});l.enable(c.controlType,c.opt),fx(t,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var RH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=us(Pp.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:hx.color.accent10,borderRadius:0,backgroundColor:hx.color.transparent,dataBackground:{lineStyle:{color:hx.color.accent30,width:.5},areaStyle:{color:hx.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:hx.color.accent40,width:.5},areaStyle:{color:hx.color.accent20,opacity:.3}},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:hx.color.neutral00,borderColor:hx.color.accent20},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:hx.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:hx.color.tertiary},brushSelect:!0,brushStyle:{color:hx.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:hx.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(Pp),RU="horizontal",RY="vertical",RX=["line","bar","candlestick","scatter"],RZ={easing:"cubicOut",duration:100,delay:0},Rj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return tn(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tU(this._onBrush,this),this._onBrushEnd=tU(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),fx(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){f_(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 rj;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"),i=hl(t,e).refContainer,r=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,a=this._orient===RU?{right:i.width-r.x-r.width,top:i.height-30-o-7*!!n,width:r.width,height:30}:{right:o,top:r.y,width:30,height:r.height},s=hd(t.option);tB(["right","top","width","height"],function(t){"ph"===s[t]&&(s[t]=a[t])});var l=ho(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===RY&&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"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==RU||r?n===RU&&r?{scaleY:a?1:-1,scaleX:-1}:n!==RY||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);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 s_({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new s_({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tU(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.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(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u,h=r.getDataExtent(t.thisDim),c=r.getDataExtent(a),p=(c[1]-c[0])*.3;c=[c[0]-p,c[1]+p];var d=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],y=[],v=f[1]/Math.max(1,r.count()-1),m=e[0]/(h[1]-h[0]),x="time"===t.thisAxis.type,_=-v,b=Math.round(r.count()/e[0]);r.each([t.thisDim,a],function(t,e,n){if(b>0&&n%b){x||(_+=v);return}_=x?(t-h[0])*m:_+v;var i=null==e||isNaN(e)||""===e,r=i?0:r7(e,c,d,!0);i&&!u&&n?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!i&&u&&(g.push([_,0]),y.push([_,0])),i||(g.push([_,r]),y.push([_,r])),u=i}),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var M=function(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new rj,i=new da({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new dl({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}(1===S);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i=this.ecModel;return e.eachTargetAxis(function(r,o){tB(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==n&&0>tR(RX,e.get("type")))){var a,s=i.getComponent(Pu(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l);var h=e.getData().mapDimension(r);t={thisAxis:s,series:e,thisDim:h,otherDim:l,otherAxisInverse:a}}},this)},this),t}},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,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new s_({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new s_({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:hx.color.transparent}})),tB([0,1],function(e){var o=a.get("handleIcon");!f9[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=gn(o,-1,0,2,2,null,!0);s.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:tU(this._onDragMove,this,e),ondragend:tU(this._onDragEnd,this),onmouseover:tU(this._showDataInfo,this,!0),onmouseout:tU(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=r9(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),lm(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new sM({silent:!0,invisible:!p,style:lZ(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=r9(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new s_({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=gn(a.get("moveHandleIcon"),-f/2,-f/2,f,f,hx.color.neutral00,!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new s_({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:"default",drift:tU(this._onDragMove,this,"all"),ondragstart:tU(this._showDataInfo,this,!0),ondragend:tU(this._onDragEnd,this),onmouseover:tU(this._showDataInfo,this,!0),onmouseout:tU(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[r7(t[0],[0,100],e,!0),r7(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Tw(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?r7(o.minSpan,a,r,!0):null,null!=o.maxSpan?r7(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=on([r7(i[0],r,a,!0),r7(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=on(n.slice()),r=this._size;tB([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0])&&!(n[1]<0)&&!(n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new nh(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&&5>Math.abs(n.width))){var i=this._getViewExtent(),r=[0,100],o=this._handleEnds=[n.x,n.x+n.width],a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Tw(0,o,i,0,null!=a.minSpan?r7(a.minSpan,r,i,!0):null,null!=a.maxSpan?r7(a.maxSpan,r,i,!0):null),this._range=on([r7(o[0],i,r,!0),r7(o[1],i,r,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(e6(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 s_({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.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?RZ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=Ph(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}(Pg);function Rq(t){t.registerComponentModel(RH),t.registerComponentView(Rj),P_(t)}var RK={color:{active:["#006edd","#e0ffff"],inactive:[hx.color.transparent]},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]}};let R$=function(t,e,n){var i=tA((RK[t]||{})[e]);return n&&tX(i)?i[i.length-1]:i};var RJ=ME.mapVisual,RQ=ME.eachVisual,R0=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 tn(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;e||Og(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=tU(t,this),this.controllerVisuals=Of(this.option.controller,e,t),this.targetVisuals=Of(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,e=this.option.seriesIndex;return null==e&&null==t&&(e="all"),tV(oF(this.ecModel,"series",{index:e,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models,function(t){return t.componentIndex})},e.prototype.eachTargetSeries=function(t,e){tB(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,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],tX(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);if(tj(s))return s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l);if(tZ(s))return i?s(t[0],t[1]):s(t);if(!i)return l;if(t[0]===a[0])return n[0]+" "+l[1];if(t[1]===a[1])return n[1]+" "+l[0];return l[0]+" - "+l[1];function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=on([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],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.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={});tD(i,n),tD(r,n);var o=this.isCategory();function a(n){tX(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},tB(i,function(t,e){if(ME.isValidType(e)){var n=R$(e,"inactive",o);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";tB(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&tA(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&tA(n)||(o?s[0]:[s[0],s[0]])),l.symbol=RJ(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var h=-1/0;RQ(u,function(t){t>h&&(h=t)}),l.symbolSize=RJ(u,function(t){return r7(t,[0,h],[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,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:hx.color.transparent,borderColor:hx.color.borderTint,contentColor:hx.color.theme[0],inactiveColor:hx.color.disabled,borderWidth:0,padding:hx.size.m,textGap:10,precision:0,textStyle:{color:hx.color.secondary}},e}(hy),R1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(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]=20),(null==e[1]||isNaN(e[1]))&&(e[1]=140)},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):tX(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),tB(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=on((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=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=R2(this,"outOfRange",this.getExtent()),n=R2(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"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 rj("horizontal"===e&&!n?{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2}:"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"===e&&!n?{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"left"===t?1:-1})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);tB([0,1],function(u){var h=r[u];h.setStyle("fill",e.handlesColor[u]),h.y=t[u];var c=r7(t[u],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=p/a[0],h.x=a[0]-p/2;var d=dK(n.handleLabelPoints[u],dq(h,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-p)/2:-((a[0]-p)/2);d[1]+=f}o[u].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[u]),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,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=r7(t,o,s,!0),d=a[0]-c/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=dK(l.indicatorLabelPoint,dq(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:d,y:p,style:{fill:h}},_={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 w=this._shapes.handleLabels;if(w)for(var S=0;Su[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",c):f[1]===1/0?this._showIndicator(d,f[0],"> ",c):this._showIndicator(d,d,"≈ ",c));var g=this._hoverLinkDataIndices,y=[];(e||Ne(n))&&(y=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var v=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function Na(t,e,n,i){for(var r=e.targetVisuals[i],o=ME.prepareVisualTypes(r),a={color:fK(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(Ni,Nr),tB(No,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Ns))}function Nc(t){t.registerComponentModel(R1),t.registerComponentView(R9),Nh(t)}var Np=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return tn(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Nd[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=tA(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=tV(this._pieceList,function(t){return t=tA(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=ME.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}tB(e.pieces,function(t){tB(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),tB(n,function(t,n){var i=!1;tB(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),i||tB(this.stateList,function(t){(e[t]||(e[t]={}))[n]=R$(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,tB(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;tB(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!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=tA(t)},e.prototype.getValueState=function(t){var e=ME.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=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){ME.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 o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return tB(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);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=us(R0.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}(R0),Nd={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;e.splitNumber=r=Math.max(parseInt(r,10),1);for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function Nf(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var Ng=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=this._getItemAlign(),o=e.itemSize,a=this._getViewData(),s=a.endsText,l=t4(e.get("showLabel",!0),!s),u=!e.get("selectedMode");s&&this._renderEndsText(t,s[0],o,l,r),tB(a.viewPieceList,function(a){var s=a.piece,h=new rj;h.onclick=tU(this._onItemClick,this,s),this._enableHoverLink(h,a.indexInModelPieceList);var c=e.getRepresentValue(s);if(this._createItemSymbol(h,c,[0,0,o[0],o[1]],u),l){var p=this.visualMapModel.getValueState(c),d=i.get("align")||r;h.add(new sM({style:lZ(i,{x:"right"===d?-n:o[0]+n,y:o[1]/2,text:s.text,verticalAlign:i.get("verticalAlign")||"middle",align:d,opacity:t6(i.get("opacity"),"outOfRange"===p?.5:1)}),silent:u}))}t.add(h)},this),s&&this._renderEndsText(t,s[1],o,l,r),hn(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:R6(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return R4(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 o=new rj,a=this.visualMapModel.textStyleModel;o.add(new sM({style:lZ(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=tV(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,i){var r=gn(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=tA(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,tB(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(R5);function Ny(t){t.registerComponentModel(Np),t.registerComponentView(Ng),Nh(t)}var Nv=function(){function t(t){this._thumbnailModel=t}return t.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},t.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:fo(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},t.prototype.updateWindow=function(t,e){var n=e.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},t}(),Nm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return tn(e,t),e.prototype.optionUpdated=function(t,e){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new Nv(this);this._target=null,this.ecModel.eachSeries(function(t){IH(t,null)}),this.shouldShow()&&IH(this.getTarget().baseMapProvider,t)},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?"graph"!==t.subType&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:hx.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:hx.color.neutral30,borderColor:hx.color.neutral40,opacity:.3},z:10},e}(hy),Nx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tn(e,t),e.prototype.render=function(t,e,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new SF),!this._isEnabled())return void this._clear();this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var r=t.getModel("itemStyle"),o=r.getItemStyle();null==o.fill&&(o.fill=e.get("backgroundColor")||hx.color.neutral00);var a=hl(t,n).refContainer,s=ho(hi(t,!0),a),l=o.lineWidth||0,u=this._contentRect=d3(s.clone(),l/2,!0,!0),h=new rj;i.add(h),h.setClipPath(new s_({shape:u.plain()}));var c=this._targetGroup=new rj;h.add(c);var p=s.plain();p.r=r.getShallow("borderRadius",!0),i.add(this._bgRect=new s_({style:o,shape:p,silent:!1,cursor:"grab"}));var d=t.getModel("windowStyle"),f=d.getShallow("borderRadius",!0);h.add(this._windowRect=new s_({shape:{x:0,y:0,width:0,height:0,r:f},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),Nb(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),Nb(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=this._targetGroup,n=this._coordSys,i=this._contentRect;if(e.removeAll(),t){var r=t.group,o=r.getBoundingRect();e.add(r),this._bgRect.z2=t.z2Range.min-10,n.setBoundingRect(o.x,o.y,o.width,o.height);var a=ho({left:"center",top:"center",aspect:o.width/o.height},i);n.setViewRect(a.x,a.y,a.width,a.height),r.attr(n.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var e=this._bridgeRendered;e&&e.renderVersion===t.renderVersion&&(e.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=nl([],t.targetTrans),n=nr([],this._coordSys.transform,e);this._transThisToTarget=nl([],n);var i=t.viewportRect;(i=i?i.clone():new nM(0,0,this._api.getWidth(),this._api.getHeight())).applyTransform(n);var r=this._windowRect,o=r.shape.r;r.setShape(tP({r:o},i))}},e.prototype._resetRoamController=function(t){var e=this,n=this._api,i=this._roamController;(i||(i=this._roamController=new wS(n.getZr())),t&&this._isEnabled())?(i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(t,n,i){return e._contentRect.contain(n,i)}}}),i.off("pan").off("zoom").on("pan",tU(this._onPan,this)).on("zoom",tU(this._onZoom,this))):i.disable()},e.prototype._onPan=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=eR([],[t.oldX,t.oldY],e),i=eR([],[t.oldX-t.dx,t.oldY-t.dy],e);this._api.dispatchAction(N_(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=eR([],[t.originX,t.originY],e);this._api.dispatchAction(N_(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;return!!t&&!!t.shouldShow()&&!!t.getTarget().baseMapProvider},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(pC);function N_(t,e){var n={type:"series"===t.mainType?t.subType+"Roam":t.mainType+"Roam"};return n[t.mainType+"Id"]=t.id,tL(n,e),n}function Nb(t,e){var n=fr(t);fa(e.group,n.z,n.zlevel)}var Nw={label:{enabled:!0},decal:{show:!1}},NS=oN(),NM={};function NI(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=tA(Nw);tD(i.label,t.getLocaleModel().get("aria"),!1),tD(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=el();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),NS(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e)){if(tZ(e.enableAriaDecal))return void e.enableAriaDecal();var n=e.getData();if(e.isColorBySeries()){var i=hX(e.ecModel,e.name,NM,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=NS(e).scope;n.each(function(t){a[n.getRawIndex(t)]=t});var l=o.count();o.each(function(t){var i=a[t],r=o.getName(t)||t+"",h=hX(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))})}}function u(t,e){var n=t?tL(tL({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i,o=e.getZr().dom;if(o){var a=t.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=tP(s.option,a),s.get("enabled")){if(o.setAttribute("role","img"),s.get("description"))return o.setAttribute("aria-label",s.get("description"));var l,u=t.getSeriesCount(),h=s.get(["data","maxCount"])||10,c=Math.min(u,s.get(["series","maxCount"])||10);if(u<1)return;var p=((l=t.get("title"))&&l.length&&(l=l[0]),l&&l.text);i=p?r(s.get(["general","withTitle"]),{title:p}):s.get(["general","withoutTitle"]);var d=[];i+=r(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),t.eachSeries(function(e,n){if(n1?s.get(["series","multiple",l]):s.get(["series","single",l]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(i=e.subType,(o=t.getLocaleModel().get(["series","typeNames"]))[i]||o.chart)});var p=e.getData();p.count()>h?a+=r(s.get(["data","partialData"]),{displayCnt:h}):a+=s.get(["data","allData"]);for(var f=s.get(["data","separator","middle"]),g=s.get(["data","separator","end"]),y=s.get(["data","excludeDimensionId"]),v=[],m=0;m":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Nk=function(){function t(t){null==(this._condVal=tj(t)?new RegExp(t):t5(t)?t:null)&&h$("")}return t.prototype.evaluate=function(t){var e=typeof t;return tj(e)?this._condVal.test(t):!!tK(e)&&this._condVal.test(t+"")},t}(),NL=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),NP=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;eMath.abs(t-e)}function NH(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,h=0,c=0,p=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){NW(t,i)&&NW(n,r)||e.push(t,n,i,r,i,r)}for(var g=0;gS:T2&&l.push(e),l}function NU(t,e,n){var i=Math.ceil(Math.sqrt(Math.abs(t[e]/t[1-e])*n)),r=Math.floor(n/i);0===r&&(r=1,i=n);for(var o=[],a=0;a0)for(var a=0;aMath.abs(l),h=NU([s,l],+!u,e),c=(u?a:l)/h.length,p=0;pa?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;oMath.abs(p))return null;var d=((t-r)*c-h*(e-o))/p;return d<0||d>1?null:new nh(d*l+t,d*u+e)}(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:function(t,e,n){var i=new nh;nh.sub(i,n,e),i.normalize();var r=new nh;return nh.sub(r,t,e),r.dot(i)}(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort(function(t,e){return t.projPt-e.projPt});var u=r[0],h=r[r.length-1];if(h.idx0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}(o[0],o[1],e,n,i,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function N4(t){return function(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,o=i>r,a=NU([i,r],+!o,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,p=0;p=0&&b-S*S=0)return void u.push(s,l);var M=[],I=[];n8(e,i,o,s,.5,M),n8(n,r,a,l,.5,I),t(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],u,h),t(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],u,h)}(s,l,h,c,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),function(t){for(var e=[],n=0;n=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1)if(!s)return n;else s=0;var o=l.length,u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var N7={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},l);tX(t[0])&&(a=t,s=e),tX(e[0])&&(a=e,s=t);for(var c=a?a===t:t.length>e.length,p=a?N8(s,a):N8(c?e:t,[c?t:e]),d=0,f=0;f1e4))for(var r=n.getIndices(),o=0;o0&&i.group.traverse(function(t){t instanceof sl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function El(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Eu(t){return tX(t)?t.sort().join(","):t}function Eh(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Ec(t,e){for(var n=0;n=0&&n.attr(r.oldLayoutSelect),tR(h,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),lR(n,l,e,s)}else if(n.attr(l),!l0(n).valueAnimation){var c=t6(n.style.opacity,1);n.style.opacity=0,lN(n,{style:{opacity:c}},e,s)}if(r.oldLayout=l,n.states.select){var p=r.oldLayoutSelect={};Ey(p,l,Ev),Ey(p,n.states.select,Ev)}if(n.states.emphasis){var d=r.oldLayoutEmphasis={};Ey(d,l,Ev),Ey(d,n.states.emphasis,Ev)}l2(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=Eg(i),o=r.oldLayout,f={points:i.shape.points};o?(i.attr({shape:o}),lR(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,lN(i,{style:{strokePercent:1}},e)),r.oldLayout=f}},t}(),Ex=oN();function E_(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Ex(e).labelManager;i||(i=Ex(e).labelManager=new Em),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Ex(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}t.s(["installLabelLayout",()=>E_],20909);var Eb=function(){function t(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return t.prototype.setBreaks=function(t){this.breaks=t.breaks},t.prototype.update=function(t){e=this,n=t,i=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a={S:{tpAbs:(o=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}})(),tpPrct:o()},E:{tpAbs:o(),tpPrct:o()}},tB(e.breaks,function(t){var e=t.gapParsed;"tpPrct"===e.type&&(i+=e.val);var o=EC(t,n);if(o){var s=o.vmin!==t.vmin,l=o.vmax!==t.vmax,u=o.vmax-o.vmin;if(s&&l);else if(s||l){var h=s?"S":"E";a[h][e.type].has=!0,a[h][e.type].span=u,a[h][e.type].inExtFrac=u/(t.vmax-t.vmin),a[h][e.type].val=e.val}else r[e.type].span+=u,r[e.type].val+=e.val}}),s=i*(0+(n[1]-n[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0)),tB(e.breaks,function(t){var e=t.gapParsed;"tpPrct"===e.type&&(t.gapReal=0!==i?Math.max(s,0)*e.val/i:0),"tpAbs"===e.type&&(t.gapReal=e.val),null==t.gapReal&&(t.gapReal=0)});var e,n,i,r,o,a,s,l=this._elapsedExtent;l[0]=this.elapse(t[0]),l[1]=this.elapse(t[1])},t.prototype.hasBreaks=function(){return!!this.breaks.length},t.prototype.calcNiceTickMultiple=function(t,e){for(var n=0;no.vmin?e+=o.vmin-n+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-n,n=o.vmax,i=!1;break}e+=o.vmin-n+o.gapReal,n=o.vmax}return i&&(e+=t-n),e},t.prototype.unelapse=function(t){for(var e=ES,n=EM,i=!0,r=0,o=0;os?a.vmin+(t-s)/(l-s)*(a.vmax-a.vmin):n+t-e,n=a.vmax,i=!1;break}e=l,n=a.vmax}return i&&(r=n+t-e),r},t}();function Ew(){return new Eb}var ES=0,EM=0;function EI(t,e,n,i,r,o){"no"!==t&&tB(n,function(n){var a=EC(n,o);if(a)for(var s=e.length-1;s>=0;s--){var l=i(e[s]),u=3*r/4;l>a.vmin-u&&le[0]&&n=0&&s<1-1e-5||(l=0),r.gapParsed.type="tpPrct",r.gapParsed.val=l,o=!0}}if(!o){var u=e(t.gap);(!isFinite(u)||u<0)&&(u=0),r.gapParsed.type="tpAbs",r.gapParsed.val=u}}if(r.vmin===r.vmax&&(r.gapParsed.type="tpAbs",r.gapParsed.val=0),n&&n.noNegative&&tB(["vmin","vmax"],function(t){r[t]<0&&(r[t]=0)}),r.vmin>r.vmax){var h=r.vmax;r.vmax=r.vmin,r.vmin=h}i.push(r)}}),i.sort(function(t,e){return t.vmin-e.vmin});var r=-1/0;return tB(i,function(t,e){r>t.vmin&&(i[e]=null),r=t.vmax}),{breaks:i.filter(function(t){return!!t})}}function ED(t,e){return Ek(e)===Ek(t)}function Ek(t){return t.start+"_\0_"+t.end}function EL(t,e,n){var i=[];tB(t,function(t,n){var r=e(t);r&&"vmin"===r.type&&i.push([n])}),tB(t,function(n,r){var o=e(n);if(o&&"vmax"===o.type){var a=tW(i,function(n){return ED(e(t[n[0]]).parsedBreak.breakOption,o.parsedBreak.breakOption)});a&&a.push(r)}});var r=[];return tB(i,function(e){2===e.length&&r.push(n?e:[t[e[0]],t[e[1]]])}),r}function EP(t,e,n,i){if(t.break){var r,o,a=t.break.parsedBreak,s=tW(n,function(e){return ED(e.breakOption,t.break.parsedBreak.breakOption)}),l=i(Math.pow(e,a.vmin),s.vmin),u=i(Math.pow(e,a.vmax),s.vmax),h={type:a.gapParsed.type,val:"tpAbs"===a.gapParsed.type?oe(Math.pow(e,a.vmin+a.gapParsed.val))-l:a.gapParsed.val};r={type:t.break.type,parsedBreak:{breakOption:a.breakOption,vmin:l,vmax:u,gapParsed:h,gapReal:a.gapReal}},o=s[t.break.type]}return{brkRoundingCriterion:o,vBreak:r}}function EO(t,e,n){var i={noNegative:!0},r=EA(t,n,i),o=EA(t,n,i),a=Math.log(e);return o.breaks=tV(o.breaks,function(t){var e=Math.log(t.vmin)/a,n=Math.log(t.vmax)/a,i={type:t.gapParsed.type,val:"tpAbs"===t.gapParsed.type?Math.log(t.vmin+t.gapParsed.val)/a-e:t.gapParsed.val};return{vmin:e,vmax:n,gapParsed:i,gapReal:t.gapReal,breakOption:t.breakOption}}),{parsedOriginal:r,parsedLogged:o}}var ER={vmin:"start",vmax:"end"};function EN(t,e){return e&&((t=t||{}).break={type:ER[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),t}var EE=oN();function Ez(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()&&ug){var a=ug.retrieveAxisBreakPairs(o.scale.getTicks({breakTicks:"only_break"}),function(t){return t.break},!1);if(a.length){var s=n.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),h=s.get("zigzagMaxSpan");h=Math.max(u=Math.max(2,u||0),h||0);var c=s.get("expandOnClick"),p=s.get("zigzagZ"),d=s.getModel("itemStyle").getItemStyle(),f=d.stroke,g=d.lineWidth,y=d.lineDash,v=d.fill,m=new rj({ignoreModelZ:!0}),x=o.isHorizontal(),_=EE(e).visualList||(EE(e).visualList=[]);tB(_,function(t){return t.shouldRemove=!0});for(var b=0;b=x;C&&(M=x);var A=[],D=[];A[c]=n,D[c]=r,T||C||(A[c]+=S?-l:l,D[c]-=S?l:-l),A[m]=M,D[m]=M,b.push(A),w.push(D);var k=void 0;if(I=0;w--)_[w].shouldRemove&&_.splice(w,1)}}}function EB(t,e,n,i){var r=t.axis,o=n.transform;et(i.style);var a=r.getExtent();r.inverse&&(a=a.slice()).reverse();var s=tV(ug.retrieveAxisBreakPairs(r.scale.getTicks({breakTicks:"only_break"}),function(t){return t.break},!1),function(t){var e=t[0].break.parsedBreak,n=[r.dataToCoord(e.vmin,!0),r.dataToCoord(e.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:ug.serializeAxisBreakIdentifier(e.breakOption)}});s.sort(function(t,e){return t.coordPair[0]-e.coordPair[0]});for(var l=a[0],u=null,h=0;h=0?s[0].width:s[1].width)+u.x)/2-l.x,c=Math.min(h,h-u.x),p=Math.max(h,h-u.x);a=(h-(p<0?p:c>0?c:0))/u.x}var d=new nh,f=new nh;nh.scale(d,i,-a),nh.scale(f,i,1-a),xD(n[0],d),xD(n[1],f)}}function g(t){var e=n[0].localRect;return 1e-5>Math.abs(new nh(e[dN[t]]*o[0][0],e[dN[t]]*o[0][1]).y)}}function EG(t,e){var n={breaks:[]};return tB(e.breaks,function(i){if(i){var r=tW(t.get("breaks",!0),function(t){return ug.identifyAxisBreak(t,i)});if(r){var o=e.type,a={isExpanded:!!r.isExpanded};r.isExpanded=o===bo||o!==ba&&(o===bs?!r.isExpanded:r.isExpanded),n.breaks.push({start:r.start,end:r.end,isExpanded:!!r.isExpanded,old:a})}}}),n}function EF(t,e){tB(t,function(t){if(!t.model.get(["axisLabel","inside"])){var n=function(t){var e,n,i,r=t.model,o=t.scale;if(!(!r.get(["axisLabel","show"])||o.isBlank())){var a=o.getExtent();n=o instanceof _y?o.count():(e=o.getTicks()).length;var s=t.getLabelModel(),l=_B(t),u=1;n>40&&(u=Math.ceil(n/40));for(var h=0;h=0&&r.push({dataGroupId:i.oldDataGroupIds[e],data:i.oldData[e],divide:Eh(i.oldData[e]),groupIdDim:t.dimension})}),tB(oM(t.to),function(t){var e=Ec(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({dataGroupId:i.oldDataGroupIds[e],data:r,divide:Eh(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&Es(r,o,e)});else{var o,a,s,l=(o=el(),a=el(),s=el(),tB(i.oldSeries,function(t,e){var n=i.oldDataGroupIds[e],r=i.oldData[e],o=El(t),l=Eu(o);a.set(l,{dataGroupId:n,data:r}),tX(o)&&tB(o,function(t){s.set(t,{key:l,dataGroupId:n,data:r})})}),tB(n.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),n=t.getData(),i=El(t),r=Eu(i),l=a.get(r);if(l)o.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Eh(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Eh(n),data:n}]});else if(tX(i)){var u=[];tB(i,function(t){var e=a.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Eh(e.data),data:e.data})}),u.length&&o.set(r,{oldSeries:u,newSeries:[{dataGroupId:e,data:n,divide:Eh(n)}]})}else{var h=s.get(i);if(h){var c=o.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Eh(h.data)}],newSeries:[]},o.set(h.key,c)),c.newSeries.push({dataGroupId:e,data:n,divide:Eh(n)})}}}}),o);tB(l.keys(),function(t){var n=l.get(t);Es(n.oldSeries,n.newSeries,e)})}tB(n.updatedSeries,function(t){t[pm]&&(t[pm]=!1)})}for(var u=t.getSeries(),h=i.oldSeries=[],c=i.oldDataGroupIds=[],p=i.oldData=[],d=0;df.count()&&(h.push(u[d]),c.push(u[d].get("dataGroupId")),p.push(f))}})}),yD(E_),yD(function(t){function e(t,e){var n=[],i=oz(e,t);function r(e,r){tB(i[e],function(e){tB(e.updateAxisBreaks(t).breaks,function(t){var i;n.push(tP(((i={})[r]=e.componentIndex,i),t))})})}return r("xAxisModels","xAxisIndex"),r("yAxisModels","yAxisIndex"),r("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}t.registerAction(bu,e),t.registerAction(bh,e),t.registerAction(bc,e),ug||(ug={createScaleBreakContext:Ew,pruneTicksByBreak:EI,addBreaksToTicks:ET,parseAxisBreakOption:EA,identifyAxisBreak:ED,serializeAxisBreakIdentifier:Ek,retrieveAxisBreakPairs:EL,getTicksLogTransformBreak:EP,logarithmicParseBreaksFromOption:EO,makeAxisLabelFormatterParamBreak:EN}),_i||(_i={adjustBreakLabelPair:EV,buildAxisBreakLine:EB,rectCoordBuildBreakAxis:Ez,updateModelAxisBreak:EG})}),yD(function(){Q=EF}),yD(function(t){t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,wo)}),t.s([],75246)}]);