(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"00fd":function(e,t,n){var i=n("9e69"),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(l){}var r=a.call(e);return i&&(t?e[s]=n:delete e[s]),r}e.exports=l},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var i=n("9c0e"),r=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"0676":function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3");var i=n("6b75");function r(e,t){if(e){if("string"===typeof e)return Object(i["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i["a"])(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,d=a.f;while(c>u){var p,f=l(arguments[u++]),g=h?r(f).concat(h(f)):r(f),m=g.length,v=0;while(m>v)p=g[v++],i&&!d.call(f,p)||(n[p]=f[p])}return n}:c},"073e":function(e,t,n){"use strict";var i=n("5dbe"),r=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=i.apply(null,arguments)),new e(t)}}e.exports=r,r.eval=o(EvalError),r.range=o(RangeError),r.reference=o(ReferenceError),r.syntax=o(SyntaxError),r.type=o(TypeError),r.uri=o(URIError),r.create=o},"0983":function(e,t,n){var i=n("c901");e.exports=function(e){return Object(i(e))}},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,i){return this.request(s(i||{},{method:e,url:t,data:n}))}})),e.exports=l},"0ae2":function(e,t,n){var i=n("9876"),r=n("fed5"),o=n("1917");e.exports=function(e){var t=i(e),n=r.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},"0b25":function(e,t,n){var i=n("a691"),r=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0b99":function(e,t,n){"use strict";var i=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},1020:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];"object"!=typeof i||Object.isFrozen(i)||n(i)})),e}var i=n,r=n;i.default=r;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e,...t){const n=Object.create(null);for(const i in e)n[i]=e[i];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const l="",c=e=>!!e.kind;class u{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+=l)}value(){return this.buffer}span(e){this.buffer+=``}}class h{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every(e=>"string"===typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{h._collapse(e)}))}}class d extends h{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){const e=new u(this,this.options);return e.value()}finalize(){return!0}}function p(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function f(e){return e?"string"===typeof e?e:e.source:null}function g(...e){const t=e.map(e=>f(e)).join("");return t}function m(...e){const t="("+e.map(e=>f(e)).join("|")+")";return t}function v(e){return new RegExp(e.toString()+"|").exec("").length-1}function y(e,t){const n=e&&e.exec(t);return n&&0===n.index}const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let i=f(e),r="";while(i.length>0){const e=b.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r}).map(e=>`(${e})`).join(t)}const x=/\b\B/,w="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",C="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",O="\\b(0b[01]+)",M="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",T=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=g(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},D={begin:"\\\\[\\s\\S]",relevance:0},I={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[D]},A={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[D]},E={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},P=function(e,t,n={}){const i=s({className:"comment",begin:e,end:t,contains:[]},n);return i.contains.push(E),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i},L=P("//","$"),N=P("/\\*","\\*/"),j=P("#","$"),R={className:"number",begin:C,relevance:0},z={className:"number",begin:k,relevance:0},$={className:"number",begin:O,relevance:0},B={className:"number",begin:C+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},F={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[D,{begin:/\[/,end:/\]/,relevance:0,contains:[D]}]}]},V={className:"title",begin:w,relevance:0},H={className:"title",begin:S,relevance:0},W={begin:"\\.\\s*"+S,relevance:0},q=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var G=Object.freeze({__proto__:null,MATCH_NOTHING_RE:x,IDENT_RE:w,UNDERSCORE_IDENT_RE:S,NUMBER_RE:C,C_NUMBER_RE:k,BINARY_NUMBER_RE:O,RE_STARTERS_RE:M,SHEBANG:T,BACKSLASH_ESCAPE:D,APOS_STRING_MODE:I,QUOTE_STRING_MODE:A,PHRASAL_WORDS_MODE:E,COMMENT:P,C_LINE_COMMENT_MODE:L,C_BLOCK_COMMENT_MODE:N,HASH_COMMENT_MODE:j,NUMBER_MODE:R,C_NUMBER_MODE:z,BINARY_NUMBER_MODE:$,CSS_NUMBER_MODE:B,REGEXP_MODE:F,TITLE_MODE:V,UNDERSCORE_TITLE_MODE:H,METHOD_GUARD:W,END_SAME_AS_BEGIN:q});function U(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function Y(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=U,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function X(e,t){Array.isArray(e.illegal)&&(e.illegal=m(...e.illegal))}function K(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Z(e,t){void 0===e.relevance&&(e.relevance=1)}const J=["of","and","for","in","not","or","if","then","parent","list","value"],Q="keyword";function ee(e,t,n=Q){const i={};return"string"===typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(i,ee(e[n],t,n))})),i;function r(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach((function(t){const n=t.split("|");i[n[0]]=[e,te(n[0],n[1])]}))}}function te(e,t){return t?Number(t):ne(e)?0:1}function ne(e){return J.includes(e.toLowerCase())}function ie(e,{plugins:t}){function n(t,n){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=v(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(_(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function o(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function a(t,i){const r=t;if(t.isCompiled)return r;[K].forEach(e=>e(t,i)),e.compilerExtensions.forEach(e=>e(t,i)),t.__beforeBegin=null,[Y,X,Z].forEach(e=>e(t,i)),t.isCompiled=!0;let s=null;if("object"===typeof t.keywords&&(s=t.keywords.$pattern,delete t.keywords.$pattern),t.keywords&&(t.keywords=ee(t.keywords,e.case_insensitive)),t.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||t.lexemes||/\w+/,r.keywordPatternRe=n(s,!0),i&&(t.begin||(t.begin=/\B|\b/),r.beginRe=n(t.begin),t.endSameAsBegin&&(t.end=t.begin),t.end||t.endsWithParent||(t.end=/\B|\b/),t.end&&(r.endRe=n(t.end)),r.terminatorEnd=f(t.end)||"",t.endsWithParent&&i.terminatorEnd&&(r.terminatorEnd+=(t.end?"|":"")+i.terminatorEnd)),t.illegal&&(r.illegalRe=n(t.illegal)),t.contains||(t.contains=[]),t.contains=[].concat(...t.contains.map((function(e){return oe("self"===e?t:e)}))),t.contains.forEach((function(e){a(e,r)})),t.starts&&a(t.starts,i),r.matcher=o(r),r}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),a(e)}function re(e){return!!e&&(e.endsWithParent||re(e.starts))}function oe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:re(e)?s(e,{starts:e.starts?s(e.starts):null}):Object.isFrozen(e)?s(e):e}var ae="10.7.2";function se(e){return Boolean(e||""===e)}function le(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||se(this.autodetect)},ignoreIllegals(){return!0}},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},n={install(e){e.component("highlightjs",t)}};return{Component:t,VuePlugin:n}}const ce={"after:highlightElement":({el:e,result:t,text:n})=>{const i=he(e);if(!i.length)return;const r=document.createElement("div");r.innerHTML=t.value,t.value=de(i,he(r),n)}};function ue(e){return e.nodeName.toLowerCase()}function he(e){const t=[];return function e(n,i){for(let r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?i+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:i,node:r}),i=e(r,i),ue(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:r}));return i}(e,0),t}function de(e,t,n){let i=0,r="";const o=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function c(e){r+=""}function u(e){("start"===e.event?l:c)(e.node)}while(e.length||t.length){let t=s();if(r+=a(n.substring(i,t[0].offset)),i=t[0].offset,t===e){o.reverse().forEach(c);do{u(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===i);o.reverse().forEach(l)}else"start"===t[0].event?o.push(t[0].node):o.pop(),u(t.splice(0,1)[0])}return r+a(n.substr(i))}const pe={},fe=e=>{console.error(e)},ge=(e,...t)=>{console.log("WARN: "+e,...t)},me=(e,t)=>{pe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),pe[`${e}/${t}`]=!0)},ve=a,ye=s,be=Symbol("nomatch"),_e=function(e){const t=Object.create(null),n=Object.create(null),r=[];let a=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:d};function h(e){return u.noHighlightRe.test(e)}function f(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=j(n[1]);return t||(ge(l.replace("{}",n[1])),ge("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>h(e)||j(e))}function g(e,t,n,i){let r="",o="";"object"===typeof t?(r=e,n=t.ignoreIllegals,o=t.language,i=void 0):(me("10.7.0","highlight(lang, code, ...args) has been deprecated."),me("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,r=t);const a={code:r,language:o};F("before:highlight",a);const s=a.result?a.result:m(a.language,a.code,n,i);return s.code=a.code,F("after:highlight",s),s}function m(e,n,i,s){function c(e,t){const n=O.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function h(){if(!D.keywords)return void A.addText(E);let e=0;D.keywordPatternRe.lastIndex=0;let t=D.keywordPatternRe.exec(E),n="";while(t){n+=E.substring(e,t.index);const i=c(D,t);if(i){const[e,r]=i;if(A.addText(n),n="",P+=r,e.startsWith("_"))n+=t[0];else{const n=O.classNameAliases[e]||e;A.addKeyword(t[0],n)}}else n+=t[0];e=D.keywordPatternRe.lastIndex,t=D.keywordPatternRe.exec(E)}n+=E.substr(e),A.addText(n)}function d(){if(""===E)return;let e=null;if("string"===typeof D.subLanguage){if(!t[D.subLanguage])return void A.addText(E);e=m(D.subLanguage,E,!0,I[D.subLanguage]),I[D.subLanguage]=e.top}else e=b(E,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(P+=e.relevance),A.addSublanguage(e.emitter,e.language)}function f(){null!=D.subLanguage?d():h(),E=""}function g(e){return e.className&&A.openNode(O.classNameAliases[e.className]||e.className),D=Object.create(e,{parent:{value:D}}),D}function v(e,t,n){let i=y(e.endRe,n);if(i){if(e["on:end"]){const n=new o(e);e["on:end"](t,n),n.isMatchIgnored&&(i=!1)}if(i){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function _(e){return 0===D.matcher.regexIndex?(E+=e[0],1):(R=!0,0)}function x(e){const t=e[0],n=e.rule,i=new o(n),r=[n.__beforeBegin,n["on:begin"]];for(const o of r)if(o&&(o(e,i),i.isMatchIgnored))return _(t);return n&&n.endSameAsBegin&&(n.endRe=p(t)),n.skip?E+=t:(n.excludeBegin&&(E+=t),f(),n.returnBegin||n.excludeBegin||(E=t)),g(n),n.returnBegin?0:t.length}function w(e){const t=e[0],i=n.substr(e.index),r=v(D,e,i);if(!r)return be;const o=D;o.skip?E+=t:(o.returnEnd||o.excludeEnd||(E+=t),f(),o.excludeEnd&&(E=t));do{D.className&&A.closeNode(),D.skip||D.subLanguage||(P+=D.relevance),D=D.parent}while(D!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.endRe=r.endRe),g(r.starts)),o.returnEnd?0:t.length}function S(){const e=[];for(let t=D;t!==O;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>A.openNode(e))}let C={};function k(t,r){const o=r&&r[0];if(E+=t,null==o)return f(),0;if("begin"===C.type&&"end"===r.type&&C.index===r.index&&""===o){if(E+=n.slice(r.index,r.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=C.rule,t}return 1}if(C=r,"begin"===r.type)return x(r);if("illegal"===r.type&&!i){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(D.className||"")+'"');throw e.mode=D,e}if("end"===r.type){const e=w(r);if(e!==be)return e}if("illegal"===r.type&&""===o)return 1;if(N>1e5&&N>3*r.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return E+=o,o.length}const O=j(e);if(!O)throw fe(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const M=ie(O,{plugins:r});let T="",D=s||M;const I={},A=new u.__emitter(u);S();let E="",P=0,L=0,N=0,R=!1;try{for(D.matcher.considerAll();;){N++,R?R=!1:D.matcher.considerAll(),D.matcher.lastIndex=L;const e=D.matcher.exec(n);if(!e)break;const t=n.substring(L,e.index),i=k(t,e);L=e.index+i}return k(n.substr(L)),A.closeAllNodes(),A.finalize(),T=A.toHTML(),{relevance:Math.floor(P),value:T,language:e,illegal:!1,emitter:A,top:D}}catch(z){if(z.message&&z.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:z.message,context:n.slice(L-100,L+100),mode:z.mode},sofar:T,relevance:0,value:ve(n),emitter:A};if(a)return{illegal:!1,relevance:0,value:ve(n),emitter:A,language:e,top:D,errorRaised:z};throw z}}function v(e){const t={relevance:0,emitter:new u.__emitter(u),value:ve(e),illegal:!1,top:c};return t.emitter.addText(e),t}function b(e,n){n=n||u.languages||Object.keys(t);const i=v(e),r=n.filter(j).filter(z).map(t=>m(t,e,!1));r.unshift(i);const o=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(j(e.language).supersetOf===t.language)return 1;if(j(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,l=a;return l.second_best=s,l}function _(e){return u.tabReplace||u.useBR?e.replace(s,e=>"\n"===e?u.useBR?"
":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e):e}function x(e,t,i){const r=t?n[t]:i;e.classList.add("hljs"),r&&e.classList.add(r)}const w={"before:highlightElement":({el:e})=>{u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:e})=>{u.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},S=/^(<[^>]+>|\t)+/gm,C={"after:highlightElement":({result:e})=>{u.tabReplace&&(e.value=e.value.replace(S,e=>e.replace(/\t/g,u.tabReplace)))}};function k(e){let t=null;const n=f(e);if(h(n))return;F("before:highlightElement",{el:e,language:n}),t=e;const i=t.textContent,r=n?g(i,{language:n,ignoreIllegals:!0}):b(i);F("after:highlightElement",{el:e,result:r,text:i}),e.innerHTML=r.value,x(e,n,r.language),e.result={language:r.language,re:r.relevance,relavance:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance,relavance:r.second_best.relevance})}function O(e){e.useBR&&(me("10.3.0","'useBR' will be removed entirely in v11.0"),me("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),u=ye(u,e)}const M=()=>{if(M.called)return;M.called=!0,me("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");const e=document.querySelectorAll("pre code");e.forEach(k)};function T(){me("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),D=!0}let D=!1;function I(){if("loading"===document.readyState)return void(D=!0);const e=document.querySelectorAll("pre code");e.forEach(k)}function A(){D&&I()}function E(n,i){let r=null;try{r=i(e)}catch(o){if(fe("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw o;fe(o),r=c}r.name||(r.name=n),t[n]=r,r.rawDefinition=i.bind(null,e),r.aliases&&R(r.aliases,{languageName:n})}function P(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]}function L(){return Object.keys(t)}function N(e){me("10.4.0","requireLanguage will be removed entirely in v11."),me("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=j(e);if(t)return t;const n=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw n}function j(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function R(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function z(e){const t=j(e);return t&&!t.disableAutodetect}function $(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}function B(e){$(e),r.push(e)}function F(e,t){const n=e;r.forEach((function(e){e[n]&&e[n](t)}))}function V(e){return me("10.2.0","fixMarkup will be removed entirely in v11.0"),me("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),_(e)}function H(e){return me("10.7.0","highlightBlock will be removed entirely in v12.0"),me("10.7.0","Please use highlightElement now."),k(e)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",A,!1),Object.assign(e,{highlight:g,highlightAuto:b,highlightAll:I,fixMarkup:V,highlightElement:k,highlightBlock:H,configure:O,initHighlighting:M,initHighlightingOnLoad:T,registerLanguage:E,unregisterLanguage:P,listLanguages:L,getLanguage:j,registerAliases:R,requireLanguage:N,autoDetection:z,inherit:ye,addPlugin:B,vuePlugin:le(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=ae;for(const o in G)"object"===typeof G[o]&&i(G[o]);return Object.assign(e,G),e.addPlugin(w),e.addPlugin(ce),e.addPlugin(C),e};var xe=_e({});e.exports=xe},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=l(i),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"11b0":function(e,t,n){function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630"),e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),h=n("9263"),d=n("9f7f"),p=d.UNSUPPORTED_Y,f=[].push,g=Math.min,m=4294967295;i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var s,l,c,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,d+"g");while(s=h.call(g,i)){if(l=g.lastIndex,l>p&&(u.push(i.slice(p,s.index)),s.length>1&&s.index=o))break;g.lastIndex===s.index&&g.lastIndex++}return p===i.length?!c&&g.test("")||u.push(""):u.push(i.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var h=o(e),d=String(this),f=s(h,RegExp),v=h.unicode,y=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(p?"g":"y"),b=new f(p?"^(?:"+h.source+")":h,y),_=void 0===r?m:r>>>0;if(0===_)return[];if(0===d.length)return null===u(b,d)?[d]:[];var x=0,w=0,S=[];while(w1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1836:function(e,t,n){var i=n("6ca1"),r=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"18ff":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n("d010")},87:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElDropdownItem",mixins:[a.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/dropdown/src/dropdown-item.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},1917:function(e,t){t.f={}.propertyIsEnumerable},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19de":function(e,t){e.exports=function(e,t,n,i){var r="undefined"!==typeof i?[i,e]:[e],o=new Blob(r,{type:n||"application/octet-stream"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,t);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),s=document.createElement("a");s.style.display="none",s.href=a,s.setAttribute("download",t),"undefined"===typeof s.download&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout((function(){document.body.removeChild(s),window.URL.revokeObjectURL(a)}),200)}}},"19fa":function(e,t,n){var i=n("fc5e"),r=n("c901");e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var i=n("77e9"),r=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(i)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1fb5":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=d,t.fromByteArray=g;for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,i=c(e),a=i[0],s=i[1],l=new o(h(e,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function p(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function f(e,t,n){for(var i,r=[],o=t;ol?l:s+a));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2236:function(e,t,n){var i=n("5a43");function r(e){if(Array.isArray(e))return i(e)}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,h,d,p,f,g,m,v=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),x=a(t,v,1+y+_),w=function(e){return u&&l(u),new c(!0,e)},S=function(e){return y?(i(e),_?x(e[0],e[1],w):x(e[0],e[1])):_?x(e,w):x(e)};if(b)u=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(r(h)){for(d=0,p=o(e.length);p>d;d++)if(f=S(e[d]),f&&f instanceof c)return f;return new c(!1)}u=h.call(e)}g=u.next;while(!(m=g.call(u)).done){try{f=S(m.value)}catch(C){throw l(u),C}if("object"==typeof f&&f&&f instanceof c)return f}return new c(!1)}},"22d1":function(e,t,n){"use strict";var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r=function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),o=new r;function a(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);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),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,d,p,f,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||s(g,{}):(i[g]||{}).prototype,u)for(h in t){if(p=t[h],e.noTargetGet?(f=r(u,h),d=f&&f.value):d=u[h],n=c(m?h:g+(v?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(u,h,p,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){l.headers[e]=i.merge(o)})),e.exports=l}).call(this,n("4362"))},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),r=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=s;(u||h)&&i(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},2655:function(e,t){function n(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=n,e.exports.default=n},"26dd":function(e,t,n){"use strict";var i=n("6f4f"),r=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},"278c":function(e,t,n){var i=n("c135"),r=n("9b42"),o=n("6613"),a=n("c240");function s(e,t){return i(e)||r(e,t)||o(e,t)||a()}e.exports=s,e.exports["default"]=e.exports,e.exports.__esModule=!0},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6b75");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||Object(a["a"])(e)||s()}},"299c":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var i=n(5),r=n.n(i),o=n(17),a=n.n(o),s=n(2),l=n(3),c=n(7),u=n.n(c),h={name:"ElTooltip",mixins:[r.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new u.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;nl&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2a62":function(e,t,n){var i=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.12 * (c) 2014-2020 Evan You * Released under the MIT License. */ var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function h(e){return"[object RegExp]"===c.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var w=/-(\w)/g,S=x((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),C=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,O=x((function(e){return e.replace(k,"-$1").toLowerCase()}));function M(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var D=Function.prototype.bind?T:M;function I(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function A(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,ne=Q&&Q.indexOf("edge/")>0,ie=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),re=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),oe={}.watch,ae=!1;if(K)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Sa){}var le=function(){return void 0===Y&&(Y=!K&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},ce=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,de="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);he="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=P,fe=0,ge=function(){this.id=fe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){y(this.subs,e)},ge.prototype.depend=function(){ge.target&&ge.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!_(r,"default"))a=!1;else if(""===a||a===O(e)){var l=et(String,r.type);(l<0||s0&&(a=Mt(a,(t||"")+"_"+n),Ot(a[0])&&Ot(c)&&(u[l]=we(c.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?Ot(c)?u[l]=we(c.text+a):""!==a&&u.push(we(a)):Ot(a)&&Ot(c)?u[l]=we(c.text+a.text):(o(e._isVList)&&r(a.tag)&&i(a.key)&&r(t)&&(a.key="__vlist"+t+"_"+n+"__"),u.push(a)));return u}function Tt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Dt(e){var t=It(e.$options.inject,e);t&&(De(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),De(!0))}function It(e,t){if(e){for(var n=Object.create(null),i=de?Reflect.ownKeys(e):Object.keys(e),r=0;r0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&i&&i!==n&&s===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=Lt(t,l,e[l]))}else r={};for(var c in t)c in r||(r[c]=Nt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),q(r,"$stable",a),q(r,"$key",s),q(r,"$hasNormal",o),r}function Lt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:kt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Nt(e,t){return function(){return e[t]}}function jt(e,t){var n,i,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,o=e.length;i1?I(n):n;for(var i=I(arguments,1),r='event handler for "'+e+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Kn(){var e,t;for(Un=Yn(),Wn=!0,Bn.sort((function(e,t){return e.id-t.id})),qn=0;qnqn&&Bn[n].id>e.id)n--;Bn.splice(n+1,0,e)}else Bn.push(e);Hn||(Hn=!0,ft(Kn))}}var ti=0,ni=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ti,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="","function"===typeof t?this.getter=t:(this.getter=U(t),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Sa){if(!this.user)throw Sa;tt(Sa,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&mt(e),ye(),this.cleanupDeps()}return e},ni.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ni.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ei(this)},ni.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Sa){tt(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:P,set:P};function ri(e,t,n){ii.get=function(){return this[t][n]},ii.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ii)}function oi(e){e._watchers=[];var t=e.$options;t.props&&ai(e,t.props),t.methods&&fi(e,t.methods),t.data?si(e):Pe(e._data={},!0),t.computed&&ui(e,t.computed),t.watch&&t.watch!==oe&&gi(e,t.watch)}function ai(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],o=!e.$parent;o||De(!1);var a=function(o){r.push(o);var a=Ke(o,t,n,e);Le(i,o,a),o in e||ri(e,"_props",o)};for(var s in t)a(s);De(!0)}function si(e){var t=e.$options.data;t=e._data="function"===typeof t?li(t,e):t||{},u(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var o=n[r];0,i&&_(i,o)||W(o)||ri(e,"_data",o)}Pe(t,!0)}function li(e,t){ve();try{return e.call(t,t)}catch(Sa){return tt(Sa,t,"data()"),{}}finally{ye()}}var ci={lazy:!0};function ui(e,t){var n=e._computedWatchers=Object.create(null),i=le();for(var r in t){var o=t[r],a="function"===typeof o?o:o.get;0,i||(n[r]=new ni(e,a||P,P,ci)),r in e||hi(e,r,o)}}function hi(e,t,n){var i=!le();"function"===typeof n?(ii.get=i?di(t):pi(n),ii.set=P):(ii.get=n.get?i&&!1!==n.cache?di(t):pi(n.get):P,ii.set=n.set||P),Object.defineProperty(e,t,ii)}function di(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function pi(e){return function(){return e.call(this,this)}}function fi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?P:D(t[n],e)}function gi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r-1)return this;var n=I(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function ki(e){e.mixin=function(e){return this.options=Ye(this.options,e),this}}function Oi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ye(n.options,e),a["super"]=n,a.options.props&&Mi(a),a.options.computed&&Ti(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=A({},a.options),r[i]=a,a}}function Mi(e){var t=e.options.props;for(var n in t)ri(e.prototype,"_props",n)}function Ti(e){var t=e.options.computed;for(var n in t)hi(e.prototype,n,t[n])}function Di(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ii(e){return e&&(e.Ctor.options.name||e.tag)}function Ai(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Ei(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var a=n[o];if(a){var s=Ii(a.componentOptions);s&&!t(s)&&Pi(n,o,i,r)}}}function Pi(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,y(n,t)}bi(Si),vi(Si),Dn(Si),Pn(Si),yn(Si);var Li=[String,RegExp,Array],Ni={name:"keep-alive",abstract:!0,props:{include:Li,exclude:Li,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ei(e,(function(e){return Ai(t,e)}))})),this.$watch("exclude",(function(t){Ei(e,(function(e){return!Ai(t,e)}))}))},render:function(){var e=this.$slots.default,t=Sn(e),n=t&&t.componentOptions;if(n){var i=Ii(n),r=this,o=r.include,a=r.exclude;if(o&&(!i||!Ai(o,i))||a&&i&&Ai(a,i))return t;var s=this,l=s.cache,c=s.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,y(c,u),c.push(u)):(l[u]=t,c.push(u),this.max&&c.length>parseInt(this.max)&&Pi(l,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ji={KeepAlive:Ni};function Ri(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:pe,extend:A,mergeOptions:Ye,defineReactive:Le},e.set=Ne,e.delete=je,e.nextTick=ft,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,ji),Ci(e),ki(e),Oi(e),Di(e)}Ri(Si),Object.defineProperty(Si.prototype,"$isServer",{get:le}),Object.defineProperty(Si.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Si,"FunctionalRenderContext",{value:Zt}),Si.version="2.6.12";var zi=m("style,class"),$i=m("input,textarea,option,select,progress"),Bi=function(e,t,n){return"value"===n&&$i(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Fi=m("contenteditable,draggable,spellcheck"),Vi=m("events,caret,typing,plaintext-only"),Hi=function(e,t){return Yi(t)||"false"===t?"false":"contenteditable"===e&&Vi(t)?t:"true"},Wi=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qi="http://www.w3.org/1999/xlink",Gi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ui=function(e){return Gi(e)?e.slice(6,e.length):""},Yi=function(e){return null==e||!1===e};function Xi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Ki(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Ki(t,n.data));return Zi(t.staticClass,t.class)}function Ki(e,t){return{staticClass:Ji(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Zi(e,t){return r(e)||r(t)?Ji(e,Qi(t)):""}function Ji(e,t){return e?t?e+" "+t:e:t||""}function Qi(e){return Array.isArray(e)?er(e):l(e)?tr(e):"string"===typeof e?e:""}function er(e){for(var t,n="",i=0,o=e.length;i-1?sr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:sr[e]=/HTMLUnknownElement/.test(t.toString())}var cr=m("text,number,password,search,email,tel,url");function ur(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function hr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function dr(e,t){return document.createElementNS(nr[e],t)}function pr(e){return document.createTextNode(e)}function fr(e){return document.createComment(e)}function gr(e,t,n){e.insertBefore(t,n)}function mr(e,t){e.removeChild(t)}function vr(e,t){e.appendChild(t)}function yr(e){return e.parentNode}function br(e){return e.nextSibling}function _r(e){return e.tagName}function xr(e,t){e.textContent=t}function wr(e,t){e.setAttribute(t,"")}var Sr=Object.freeze({createElement:hr,createElementNS:dr,createTextNode:pr,createComment:fr,insertBefore:gr,removeChild:mr,appendChild:vr,parentNode:yr,nextSibling:br,tagName:_r,setTextContent:xr,setStyleScope:wr}),Cr={create:function(e,t){kr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(kr(e,!0),kr(t))},destroy:function(e){kr(e,!0)}};function kr(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Or=new be("",{},[]),Mr=["create","activate","update","remove","destroy"];function Tr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Dr(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Dr(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||cr(i)&&cr(o)}function Ir(e,t,n){var i,o,a={};for(i=t;i<=n;++i)o=e[i].key,r(o)&&(a[o]=i);return a}function Ar(e){var t,n,a={},l=e.modules,c=e.nodeOps;for(t=0;tg?(h=i(n[y+1])?null:n[y+1].elm,S(e,h,n,f,y,o)):f>y&&k(t,d,g)}function T(e,t,n,i){for(var o=n;o-1?Vr(e,t,n):Wi(t)?Yi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Fi(t)?e.setAttribute(t,Hi(t,n)):Gi(t)?Yi(n)?e.removeAttributeNS(qi,Ui(t)):e.setAttributeNS(qi,t,n):Vr(e,t,n)}function Vr(e,t,n){if(Yi(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Hr={create:Br,update:Br};function Wr(e,t){var n=t.elm,o=t.data,a=e.data;if(!(i(o.staticClass)&&i(o.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Xi(t),l=n._transitionClasses;r(l)&&(s=Ji(s,Qi(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qr,Gr={create:Wr,update:Wr},Ur="__r",Yr="__c";function Xr(e){if(r(e[Ur])){var t=ee?"change":"input";e[t]=[].concat(e[Ur],e[t]||[]),delete e[Ur]}r(e[Yr])&&(e.change=[].concat(e[Yr],e.change||[]),delete e[Yr])}function Kr(e,t,n){var i=qr;return function r(){var o=t.apply(null,arguments);null!==o&&Qr(e,r,n,i)}}var Zr=at&&!(re&&Number(re[1])<=53);function Jr(e,t,n,i){if(Zr){var r=Un,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,ae?{capture:n,passive:i}:n)}function Qr(e,t,n,i){(i||qr).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};qr=t.elm,Xr(n),_t(n,r,Jr,Qr,Kr,t.context),qr=void 0}}var to,no={create:eo,update:eo};function io(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in r(l.__ob__)&&(l=t.data.domProps=A({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=i(o)?"":String(o);ro(a,c)&&(a.value=c)}else if("innerHTML"===n&&rr(a.tagName)&&i(a.innerHTML)){to=to||document.createElement("div"),to.innerHTML=""+o+"";var u=to.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function ro(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||ao(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(Sa){}return n&&e.value!==t}function ao(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return g(n)!==g(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var so={create:io,update:io},lo=x((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function co(e){var t=uo(e.style);return e.staticStyle?A(e.staticStyle,t):t}function uo(e){return Array.isArray(e)?E(e):"string"===typeof e?lo(e):e}function ho(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=co(r.data))&&A(i,n)}(n=co(e.data))&&A(i,n);var o=e;while(o=o.parent)o.data&&(n=co(o.data))&&A(i,n);return i}var po,fo=/^--/,go=/\s*!important$/,mo=function(e,t,n){if(fo.test(t))e.style.setProperty(t,n);else if(go.test(n))e.style.setProperty(O(t),n.replace(go,""),"important");else{var i=yo(t);if(Array.isArray(n))for(var r=0,o=n.length;r-1?t.split(xo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function So(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Co(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&A(t,ko(e.name||"v")),A(t,e),t}return"string"===typeof e?ko(e):void 0}}var ko=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Oo=K&&!te,Mo="transition",To="animation",Do="transition",Io="transitionend",Ao="animation",Eo="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Do="WebkitTransition",Io="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ao="WebkitAnimation",Eo="webkitAnimationEnd"));var Po=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Lo(e){Po((function(){Po(e)}))}function No(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),wo(e,t))}function jo(e,t){e._transitionClasses&&y(e._transitionClasses,t),So(e,t)}function Ro(e,t,n){var i=$o(e,t),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Mo?Io:Eo,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=a&&c()};setTimeout((function(){l0&&(n=Mo,u=a,h=o.length):t===To?c>0&&(n=To,u=c,h=l.length):(u=Math.max(a,c),n=u>0?a>c?Mo:To:null,h=n?n===Mo?o.length:l.length:0);var d=n===Mo&&zo.test(i[Do+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function Bo(e,t){while(e.length1}function Go(e,t){!0!==t.data.show&&Vo(t)}var Uo=K?{create:Go,activate:Go,remove:function(e,t){!0!==e.data.show?Ho(e,t):t()}}:{},Yo=[Hr,Gr,no,so,_o,Uo],Xo=Yo.concat($r),Ko=Ar({nodeOps:Sr,modules:Xo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ra(e,"input")}));var Zo={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?xt(n,"postpatch",(function(){Zo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===n.tag||cr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",na),e.addEventListener("compositionend",ia),e.addEventListener("change",ia),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,ta);if(r.some((function(e,t){return!j(e,i[t])}))){var o=e.multiple?t.value.some((function(e){return ea(e,r)})):t.value!==t.oldValue&&ea(t.value,r);o&&ra(e,"change")}}}};function Jo(e,t,n){Qo(e,t,n),(ee||ne)&&setTimeout((function(){Qo(e,t,n)}),0)}function Qo(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(j(ta(a),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function ea(e,t){return t.every((function(t){return!j(t,e)}))}function ta(e){return"_value"in e?e._value:e.value}function na(e){e.target.composing=!0}function ia(e){e.target.composing&&(e.target.composing=!1,ra(e.target,"input"))}function ra(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oa(e){return!e.componentInstance||e.data&&e.data.transition?e:oa(e.componentInstance._vnode)}var aa={bind:function(e,t,n){var i=t.value;n=oa(n);var r=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Vo(n,(function(){e.style.display=o}))):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?Vo(n,(function(){e.style.display=e.__vOriginalDisplay})):Ho(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ca(Sn(t.children)):e}function ua(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var o in r)t[S(o)]=r[o];return t}function ha(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function da(e){while(e=e.parent)if(e.data.transition)return!0}function pa(e,t){return t.key===e.key&&t.tag===e.tag}var fa=function(e){return e.tag||wn(e)},ga=function(e){return"show"===e.name},ma={name:"transition",props:la,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(fa),n.length)){0;var i=this.mode;0;var r=n[0];if(da(this.$vnode))return r;var o=ca(r);if(!o)return r;if(this._leaving)return ha(e,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ua(this),c=this._vnode,u=ca(c);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),u&&u.data&&!pa(o,u)&&!wn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=A({},l);if("out-in"===i)return this._leaving=!0,xt(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ha(e,r);if("in-out"===i){if(wn(o))return c;var d,p=function(){d()};xt(l,"afterEnter",p),xt(l,"enterCancelled",p),xt(h,"delayLeave",(function(e){d=e}))}}return r}}},va=A({tag:String,moveClass:String},la);delete va.mode;var ya={props:va,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=An(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;sn)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(b),b},g=function(e){delete _[e]},d?i=function(e){m.nextTick(S(e))}:y&&y.now?i=function(e){y.now(S(e))}:v&&!h?(r=new v,o=r.port2,r.port1.onmessage=C,i=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!s(k)?(i=k,a.addEventListener("message",C,!1)):i=x in u("script")?function(e){c.appendChild(u("script"))[x]=function(){c.removeChild(this),w(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:f,clear:g}},"2d00":function(e,t,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]<4?1:i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},"2e39":function(e,t,n){"use strict";function i(e,t){var n=t.length,i=e.length;if(i>n)return!1;if(i===n)return e===t;e:for(var r=0,o=0;r=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return P}));var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=l(e[n],t)})),i}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){c(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,f);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new p(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&c(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&E(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;S(this,c,[],this._modules.root),w(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:v.config.devtools;u&&a(this)},b={state:{configurable:!0}};function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),w(e,n,t)}function w(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};c(r,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&D(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),v.nextTick((function(){return i.$destroy()})))}function S(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=I(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(s,l,i.state)}))}var c=i.context=C(e,a,n);i.forEachMutation((function(t,n){var i=a+n;O(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,r=t.handler||t;M(e,i,r,c)})),i.forEachGetter((function(t,n){var i=a+n;T(e,i,t,c)})),i.forEachChild((function(i,o){S(e,t,n.concat(o),i,r)}))}function C(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=A(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=A(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return I(e.state,n)}}}),r}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function O(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function M(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return h(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function T(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function D(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function I(e,t){return t.reduce((function(e,t){return e[t]}),e)}function A(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function E(e){v&&e===v||(v=e,i(v))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},y.prototype.commit=function(e,t,n){var i=this,r=A(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},y.prototype.dispatch=function(e,t){var n=this,i=A(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),w(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=I(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),x(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,b);var P=B((function(e,t){var n={};return z(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=F(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),L=B((function(e,t){var n={};return z(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=F(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),N=B((function(e,t){var n={};return z(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||F(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),j=B((function(e,t){var n={};return z(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=F(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),R=function(e){return{mapState:P.bind(null,e),mapGetters:N.bind(null,e),mapMutations:L.bind(null,e),mapActions:j.bind(null,e)}};function z(e){return $(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return Array.isArray(e)||u(e)}function B(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function F(e,t,n){var i=e._modulesNamespaceMap[n];return i}function V(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=l(e.state);"undefined"!==typeof u&&(s&&e.subscribe((function(e,o){var a=l(o);if(n(e,h,a)){var s=q(),c=r(e),d="mutation "+e.type+s;H(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),W(u)}h=a})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var i=q(),r=a(e),s="action "+e.type+i;H(u,s,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),W(u)}})))}}function H(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function W(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function q(){var e=new Date;return" @ "+U(e.getHours(),2)+":"+U(e.getMinutes(),2)+":"+U(e.getSeconds(),2)+"."+U(e.getMilliseconds(),3)}function G(e,t){return new Array(t+1).join(e)}function U(e,t){return G("0",t-e.toString().length)+e}var Y={Store:y,install:E,version:"3.6.2",mapState:P,mapMutations:L,mapGetters:N,mapActions:j,createNamespacedHelpers:R,createLogger:V};t["a"]=Y}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"301c":function(e,t,n){n("e198")("asyncIterator")},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"313e":function(e,t,n){"use strict";n.d(t,"a",(function(){return m_}));var i={};n.r(i),n.d(i,"updateProps",(function(){return Wl})),n.d(i,"initProps",(function(){return ql})),n.d(i,"removeElement",(function(){return Ul})),n.d(i,"removeElementWithFadeOut",(function(){return Xl})),n.d(i,"isElementRemoved",(function(){return Gl})),n.d(i,"extendShape",(function(){return um})),n.d(i,"extendPath",(function(){return dm})),n.d(i,"registerShape",(function(){return pm})),n.d(i,"getShapeClass",(function(){return fm})),n.d(i,"makePath",(function(){return gm})),n.d(i,"makeImage",(function(){return mm})),n.d(i,"mergePath",(function(){return ym})),n.d(i,"resizePath",(function(){return bm})),n.d(i,"subPixelOptimizeLine",(function(){return _m})),n.d(i,"subPixelOptimizeRect",(function(){return xm})),n.d(i,"subPixelOptimize",(function(){return wm})),n.d(i,"getTransform",(function(){return Sm})),n.d(i,"applyTransform",(function(){return Cm})),n.d(i,"transformDirection",(function(){return km})),n.d(i,"groupTransition",(function(){return Tm})),n.d(i,"clipPointsByRect",(function(){return Dm})),n.d(i,"clipRectByRect",(function(){return Im})),n.d(i,"createIcon",(function(){return Am})),n.d(i,"linePolygonIntersect",(function(){return Em})),n.d(i,"lineLineIntersect",(function(){return Pm})),n.d(i,"setTooltipConfig",(function(){return jm})),n.d(i,"traverseElements",(function(){return zm})),n.d(i,"Group",(function(){return Ci})),n.d(i,"Image",(function(){return Za})),n.d(i,"Text",(function(){return Cs})),n.d(i,"Circle",(function(){return Qf})),n.d(i,"Ellipse",(function(){return ng})),n.d(i,"Sector",(function(){return _g})),n.d(i,"Ring",(function(){return Sg})),n.d(i,"Polygon",(function(){return Tg})),n.d(i,"Polyline",(function(){return Ag})),n.d(i,"Rect",(function(){return as})),n.d(i,"Line",(function(){return Ng})),n.d(i,"BezierCurve",(function(){return Bg})),n.d(i,"Arc",(function(){return Hg})),n.d(i,"IncrementalDisplayable",(function(){return am})),n.d(i,"CompoundPath",(function(){return qg})),n.d(i,"LinearGradient",(function(){return Xg})),n.d(i,"RadialGradient",(function(){return Zg})),n.d(i,"BoundingRect",(function(){return De})),n.d(i,"OrientedBoundingRect",(function(){return im})),n.d(i,"Point",(function(){return be})),n.d(i,"Path",(function(){return Ha})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var a=n("22d1"),s=n("6d8b"),l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)};function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function u(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function h(e,t){return e[0]=t[0],e[1]=t[1],e}function d(e){return[e[0],e[1]]}function p(e,t,n){return e[0]=t,e[1]=n,e}function f(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function g(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function m(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function v(e){return Math.sqrt(y(e))}function y(e){return e[0]*e[0]+e[1]*e[1]}function b(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _(e,t){var n=v(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function x(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var w=x;function S(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var C=S;function k(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function O(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function M(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function T(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var D=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),I=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new D(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new D(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new D(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new D(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new D(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new D(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),A=I,E=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);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[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function V(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),h=2*c,d=u.left,p=u.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?j(s,a):j(a,s))}function H(e){return"CANVAS"===e.nodeName.toUpperCase()}var W=/([&<>"'])/g,q={"&":"&","<":"<",">":">",'"':""","'":"'"};function G(e){return null==e?"":(e+"").replace(W,(function(e,t){return q[t]}))}var U=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Y=[],X=a["a"].browser.firefox&&+a["a"].browser.version.split(".")[0]<39;function K(e,t,n,i){return n=n||{},i?Z(e,t,n):X&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):Z(e,t,n),n}function Z(e,t,n){if(a["a"].domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(H(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(B(Y,e,i,r))return n.zrX=Y[0],void(n.zrY=Y[1])}n.zrX=n.zrY=0}function J(e){return e||window.event}function Q(e,t,n){if(t=J(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&K(e,o,t,n)}else{K(e,t,t,n);var a=ee(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&U.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function ee(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function te(e,t,n,i){e.addEventListener(t,n,i)}function ne(e,t,n,i){e.removeEventListener(t,n,i)}var ie=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function re(e){return 2===e.which||3===e.which}var oe=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o1&&i&&i.length>1){var o=ae(i)/ae(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=se(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function ce(){return[1,0,0,1,0,0]}function ue(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function he(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function de(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function pe(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fe(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=i*u+a*c,e[1]=-i*c+a*u,e[2]=r*u+s*c,e[3]=-r*c+u*s,e[4]=u*o+c*l,e[5]=u*l-c*o,e}function ge(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function me(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function ve(e){var t=ce();return he(t,e),t}var ye=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),be=ye,_e=Math.min,xe=Math.max,we=new be,Se=new be,Ce=new be,ke=new be,Oe=new be,Me=new be,Te=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=_e(e.x,this.x),n=_e(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xe(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=xe(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=ce();return pe(r,r,[-t.x,-t.y]),ge(r,r,[n,i]),pe(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,c=t.x+t.width,u=t.y,h=t.y+t.height,d=!(of&&(f=b,gf&&(f=_,v=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}we.x=Ce.x=n.x,we.y=ke.y=n.y,Se.x=ke.x=n.x+n.width,Se.y=Ce.y=n.y+n.height,we.transform(i),ke.transform(i),Se.transform(i),Ce.transform(i),t.x=_e(we.x,Se.x,Ce.x,ke.x),t.y=_e(we.y,Se.y,Ce.y,ke.y);var l=xe(we.x,Se.x,Ce.x,ke.x),c=xe(we.y,Se.y,Ce.y,ke.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),De=Te,Ie="silent";function Ae(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ee}}function Ee(){ie(this.event)}var Pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return c(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(P),Le=function(){function e(e,t){this.x=e,this.y=t}return e}(),Ne=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],je=new De(0,0,0,0),Re=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a._hovered=new Le(0,0),a.storage=t,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Pe,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new A(a),a}return c(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(s["k"](Ne,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Be(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Le(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Le(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=Ae(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new Le(e,t);if($e(i,r,e,t,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new De(e-s,t-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(je.copy(u.getBoundingRect()),u.transform&&je.applyTransform(u.transform),je.intersect(l)&&o.push(u))}if(o.length)for(var h=4,d=Math.PI/12,p=2*Math.PI,f=0;f=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=ze(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==Ie)){t.target=a;break}}}function Be(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}s["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Re.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Be(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||w(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var Fe=Re,Ve=32,He=7;function We(e){var t=0;while(e>=Ve)t|=1&e,e>>=1;return e+t}function qe(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r=0)r++;return r-t}function Ge(e,t,n){n--;while(t>>1,r(a,e[o])<0?l=o:s=o+1;var c=i-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function Ye(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var c=a;a=r-l,l=r-c}a++;while(a>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function Xe(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(ls&&(l=s);var c=a;a=r-l,l=r-c}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function Ke(e,t){var n,i,r=He,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function c(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;h(e)}}function u(){while(a>1){var e=a-2;e>0&&i[e-1]=He||p>=He);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l=0;l--)e[p+l]=e[d+l];if(0===i){v=!0;break}}if(e[h--]=s[u--],1===--a){v=!0;break}if(m=a-Ye(e[c],s,0,a,a-1,t),0!==m){for(h-=m,u-=m,a-=m,p=h+1,d=u+1,l=0;l=He||m>=He);if(v)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=i,c-=i,p=h+1,d=c+1,l=i-1;l>=0;l--)e[p+l]=e[d+l];e[h]=s[u]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l=0;l--)e[p+l]=e[d+l];e[h]=s[u]}else for(d=h-(a-1),l=0;ls&&(l=s),Ue(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Je=1,Qe=2,et=4,tt=!1;function nt(){tt||(tt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function it(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rt,ot=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=it}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(nt(),c.z=0),isNaN(c.z2)&&(nt(),c.z2=0),isNaN(c.zlevel)&&(nt(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),at=ot;rt=a["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var st=rt,lt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-lt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*lt.bounceIn(2*e):.5*lt.bounceOut(2*e-1)+.5}},ct=lt,ut=Math.pow,ht=Math.sqrt,dt=1e-8,pt=1e-4,ft=ht(3),gt=1/3,mt=u(),vt=u(),yt=u();function bt(e){return e>-dt&&edt||e<-dt}function xt(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function wt(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function St(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-r,u=s*s-3*a*l,h=s*l-9*a*c,d=l*l-3*s*c,p=0;if(bt(u)&&bt(h))if(bt(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*u*d;if(bt(g)){var m=h/u,v=(f=-s/a+m,-m/2);f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v)}else if(g>0){var y=ht(g),b=u*s+1.5*a*(-h+y),_=u*s+1.5*a*(-h-y);b=b<0?-ut(-b,gt):ut(b,gt),_=_<0?-ut(-_,gt):ut(_,gt);f=(-s-(b+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=(2*u*s-3*a*h)/(2*ht(u*u*u)),w=Math.acos(x)/3,S=ht(u),C=Math.cos(w),k=(f=(-s-2*S*C)/(3*a),v=(-s+S*(C+ft*Math.sin(w)))/(3*a),(-s+S*(C-ft*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v),k>=0&&k<=1&&(o[p++]=k)}}return p}function Ct(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(bt(a)){if(_t(o)){var c=-s/o;c>=0&&c<=1&&(r[l++]=c)}}else{var u=o*o-4*a*s;if(bt(u))r[0]=-o/(2*a);else if(u>0){var h=ht(u),d=(c=(-o+h)/(2*a),(-o-h)/(2*a));c>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function kt(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,h=(u-c)*r+c;o[0]=e,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=i}function Ot(e,t,n,i,r,o,a,s,l,c,u){var h,d,p,f,g,m=.005,v=1/0;mt[0]=l,mt[1]=c;for(var y=0;y<1;y+=.05)vt[0]=xt(e,n,r,a,y),vt[1]=xt(t,i,o,s,y),f=C(mt,vt),f=0&&f=0&&c<=1&&(r[l++]=c)}}else{var u=a*a-4*o*s;if(bt(u)){c=-a/(2*o);c>=0&&c<=1&&(r[l++]=c)}else if(u>0){var h=ht(u),d=(c=(-a+h)/(2*o),(-a-h)/(2*o));c>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function At(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function Et(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Pt(e,t,n,i,r,o,a,s,l){var c,u=.005,h=1/0;mt[0]=a,mt[1]=s;for(var d=0;d<1;d+=.05){vt[0]=Tt(e,n,r,d),vt[1]=Tt(t,i,o,d);var p=C(mt,vt);p=0&&p=1?1:St(0,i,o,1,e,l)&&xt(0,r,a,1,l[0])}}}var Rt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||s["L"],this.ondestroy=e.ondestroy||s["L"],this.onrestart=e.onrestart||s["L"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,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;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(s["w"])(e)?e:ct[e]||jt(e)},e}(),zt=Rt,$t=n("41ef"),Bt=n("7a29"),Ft=Array.prototype.slice;function Vt(e,t,n){return(t-e)*n+e}function Ht(e,t,n,i){for(var r=t.length,o=0;oi?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=on,l=t;if(Object(s["u"])(t)){var c=Zt(t);a=c,(1===c&&!Object(s["z"])(t[0])||2===c&&!Object(s["z"])(t[0][0]))&&(o=!0)}else if(Object(s["z"])(t)&&!Object(s["l"])(t))a=Jt;else if(Object(s["C"])(t))if(isNaN(+t)){var u=$t["g"](t);u&&(l=u,a=tn)}else a=Jt;else if(Object(s["x"])(t)){var h=Object(s["m"])({},l);h.colorStops=Object(s["H"])(t.colorStops,(function(e){return{offset:e.offset,color:$t["g"](e.color)}})),Object(Bt["m"])(t)?a=nn:Object(Bt["o"])(t)&&(a=rn),l=h}0===r?this.valType=a:a===this.valType&&a!==on||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Object(s["w"])(n)?n:ct[n]||jt(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=sn(i),l=an(i),c=0;c=0;n--)if(c[n].percent<=t)break;n=f(n,u-2)}else{for(n=p;nt)break;n=f(n-1,u-2)}r=c[n+1],i=c[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var m=r.percent-i.percent,v=0===m?1:f((t-i.percent)/m,1);r.easingFunc&&(v=r.easingFunc(v));var y=o?this._additiveValue:d?ln:e[h];if(!sn(l)&&!d||y||(y=this._additiveValue=[]),this.discrete)e[h]=v<1?i.rawValue:r.rawValue;else if(sn(l))l===Qt?Ht(y,i[a],r[a],v):Wt(y,i[a],r[a],v);else if(an(l)){var b=i[a],_=r[a],x=l===nn;e[h]={type:x?"linear":"radial",x:Vt(b.x,_.x,v),y:Vt(b.y,_.y,v),colorStops:Object(s["H"])(b.colorStops,(function(e,t){var n=_.colorStops[t];return{offset:Vt(e.offset,n.offset,v),color:Kt(Ht([],e.color,n.color,v))}})),global:_.global},x?(e[h].x2=Vt(b.x2,_.x2,v),e[h].y2=Vt(b.y2,_.y2,v)):e[h].r=Vt(b.r,_.r,v)}else if(d)Ht(y,i[a],r[a],v),o||(e[h]=Kt(y));else{var w=Vt(i[a],r[a],v);o?this._additiveValue=w:e[h]=w}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===Jt?e[n]=e[n]+i:t===tn?($t["g"](e[n],ln),qt(ln,ln,i,1),e[n]=Kt(ln)):t===Qt?qt(e[n],e[n],i,1):t===en&&Gt(e[n],e[n],i,1)},e}(),un=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Object(s["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(s["F"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,Xt(l),i),this._trackKeys.push(a)}s.addKeyframe(e,Xt(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}(),hn=un;function dn(){return(new Date).getTime()}var pn=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return c(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=dn()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(st(t),!e._paused&&e.update())}this._running=!0,st(t)},t.prototype.start=function(){this._running||(this._time=dn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=dn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=dn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new hn(e,t.loop);return this.addAnimator(n),n},t}(P),fn=pn,gn=300,mn=a["a"].domSupported,vn=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=s["H"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),yn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bn=!1;function _n(e){var t=e.pointerType;return"pen"===t||"touch"===t}function xn(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function wn(e){e&&(e.zrByTouch=!0)}function Sn(e,t){return Q(e.dom,new kn(e,t),!0)}function Cn(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var kn=function(){function e(e,t){this.stopPropagation=s["L"],this.stopImmediatePropagation=s["L"],this.preventDefault=s["L"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),On={mousedown:function(e){e=Q(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Q(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Q(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Q(this.dom,e);var t=e.toElement||e.relatedTarget;Cn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){bn=!0,e=Q(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){bn||(e=Q(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Q(this.dom,e),wn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),On.mousemove.call(this,e),On.mousedown.call(this,e)},touchmove:function(e){e=Q(this.dom,e),wn(e),this.handler.processGesture(e,"change"),On.mousemove.call(this,e)},touchend:function(e){e=Q(this.dom,e),wn(e),this.handler.processGesture(e,"end"),On.mouseup.call(this,e),+new Date-+this.__lastTouchMomentVn||e<-Vn}var Wn=[],qn=[],Gn=ce(),Un=Math.abs,Yn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Hn(this.rotation)||Hn(this.x)||Hn(this.y)||Hn(this.scaleX-1)||Hn(this.scaleY-1)||Hn(this.skewX)||Hn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||ce(),t?this.getLocalTransform(n):Fn(n),e&&(t?de(n,e,n):he(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Fn(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Wn);var n=Wn[0]<0?-1:1,i=Wn[1]<0?-1:1,r=((Wn[0]-n)*t+n)/Wn[0]||0,o=((Wn[1]-i)*t+i)/Wn[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ce(),me(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(de(qn,e.invTransform,t),t=qn);var n=this.originX,i=this.originY;(n||i)&&(Gn[4]=n,Gn[5]=i,de(qn,t,Gn),qn[4]-=n,qn[5]-=i,t=qn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&O(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&O(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Un(e[0]-1)>1e-10&&Un(e[3]-1)>1e-10?Math.sqrt(Un(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Kn(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;t[4]=-p*r-h*f*o,t[5]=-f*o-d*p*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=d*r,t[2]=h*o,l&&fe(t,t,l),t[4]+=n+c,t[5]+=i+u,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Xn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Kn(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function li(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(i instanceof Array)l+=si(i[0],n.width),c+=si(i[1],n.height),u=null,h=null;else switch(i){case"left":l-=r,c+=s,u="right",h="middle";break;case"right":l+=r+a,c+=s,h="middle";break;case"top":l+=a/2,c-=r,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=r,c+=s,h="middle";break;case"insideRight":l+=a-r,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",h="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",h="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=h,e}var ci="__zr_normal__",ui=Xn.concat(["ignore"]),hi=Object(s["N"])(Xn,(function(e,t){return e[t]=!0,e}),{ignore:!1}),di={},pi=new De(0,0,0,0),fi=function(){function e(e){this.id=Object(s["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var c=pi;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(di,n,c):li(di,n,c),r.x=di.x,r.y=di.y,o=di.align,a=di.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,d=void 0;"center"===u?(h=.5*c.width,d=.5*c.height):(h=si(u[0],c.width),d=si(u[1],c.height)),l=!0,r.originX=-r.x+h+(i?0:c.x),r.originY=-r.y+d+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),m=m||"#000",m===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Je,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$n:zn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object($t["g"])(t);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+(r?0:255)*(1-i);return n[3]=1,Object($t["h"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(s["m"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(s["A"])(e))for(var n=e,i=Object(s["F"])(n),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ci,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===ci,o=this.hasState();if(o||!r){var a=this.currentStates,l=this.stateTransition;if(!(Object(s["r"])(a,e)>=0)||!t&&1!==a.length){var c;if(this.stateProxy&&!r&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),c||r){r||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,d=this._textGuide;return h&&h.useState(e,t,n,u),d&&d.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Je),c}Object(s["G"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Je)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=Object(s["r"])(i,e),o=Object(s["r"])(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d0||r.force&&!a.length){var k=void 0,O=void 0,M=void 0;if(l){O={},p&&(k={});for(x=0;x<_;x++){y=m[x];O[y]=n[y],p?k[y]=i[y]:n[y]=i[y]}}else if(p){M={};for(x=0;x<_;x++){y=m[x];M[y]=Xt(n[y]),yi(n,i,y)}}w=new hn(n,!1,!1,d?Object(s["n"])(g,(function(e){return e.targetName===t})):null);w.targetName=t,r.scope&&(w.scope=r.scope),p&&k&&w.whenWithKeys(0,k,m),M&&w.whenWithKeys(0,M,m),w.whenWithKeys(null==u?500:u,l?O:i,m).delay(h||0),e.addAnimator(w,t),a.push(w)}}Object(s["K"])(fi,P),Object(s["K"])(fi,Zn);var wi=fi,Si=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return c(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=s["r"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=s["r"](n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*c+a}function ji(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return s["C"](e)?Li(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Ri(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Pi),e=(+e).toFixed(t),n?e:+e}function zi(e){return e.sort((function(e,t){return e-t})),e}function $i(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Bi(e)}function Bi(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Fi(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Vi(e,t){var n=s["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var i=Math.pow(10,t),r=s["H"](e,(function(e){return(isNaN(e)?0:e)/n*i*100})),o=100*i,a=s["H"](r,(function(e){return Math.floor(e)})),l=s["N"](a,(function(e,t){return e+t}),0),c=s["H"](r,(function(e,t){return e-a[t]}));while(lu&&(u=c[d],h=d);++a[h],c[h]=0,++l}return s["H"](a,(function(e){return e/i}))}function Hi(e,t){var n=Math.max($i(e),$i(t)),i=e+t;return n>Pi?i:Ri(i,n)}var Wi=9007199254740991;function qi(e){var t=2*Math.PI;return(e%t+t)%t}function Gi(e){return e>-Ei&&e=10&&t++,t}function Zi(e,t){var n,i=Ki(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function Ji(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function Qi(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i=0||r&&s["r"](r,l)<0)){var c=n.getShallow(l,t);null!=c&&(o[e[a][0]]=c)}}return o}}var io=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ro=no(io),oo=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ro(this,e,t)},e}(),ao=new Jn["a"](50);function so(e){if("string"===typeof e){var t=ao.get(e);return t&&t.image}return e}function lo(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ao.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!uo(t)&&o.pending.push(a)):(t=Qn["d"].loadImage(e,co,co),t.__zrImageSrc=e,ao.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function co(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;c++)l-=a;var u=ti(n,t);return u>l&&(n="",u=0),l=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=l,r.containerWidth=e,r}function go(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=ti(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?mo(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=ti(e,i)}return""===e&&(e=t.placeholder),e}function mo(e,t,n,i){for(var r=0,o=0,a=e.length;of&&h){var g=Math.floor(f/c);n=n.slice(0,g)}if(e&&a&&null!=d)for(var m=fo(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;vc&&wo(n,e.substring(c,u),t,l),wo(n,i[2],t,l,i[1]),c=ho.lastIndex}co){w>0?(b.tokens=b.tokens.slice(0,w),v(b,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var D=C.width,I=null==D||"auto"===D;if("string"===typeof D&&"%"===D.charAt(D.length-1))S.percentWidth=D,h.push(S),S.contentWidth=ti(S.text,M);else{if(I){var A=C.backgroundColor,E=A&&A.image;E&&(E=so(E),uo(E)&&(S.width=Math.max(S.width,E.width*T/E.height)))}var P=g&&null!=r?r-x:null;null!=P&&P0&&f+i.accumWidth>i.width&&(o=t.split("\n"),h=!0),i.accumWidth=f}else{var g=Oo(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Co=Object(s["N"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function ko(e){return!So(e)||!!Co[e]}function Oo(e,t,n,i,r){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;hn:r+u+p>n)?u?(s||l)&&(f?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=d,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=d,u=p)):f?(o.push(l),a.push(c),l=d,c=p):(o.push(d),a.push(p)):(u+=p,f?(l+=d,c+=p):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}var Mo="__zr_style_"+Math.round(10*Math.random()),To={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Do={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};To[Mo]=!0;var Io=["z","z2","invisible"],Ao=["invisible"],Eo=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype._init=function(t){for(var n=Object(s["F"])(t),i=0;i1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(Vo[0]=Bo(r)*n+e,Vo[1]=$o(r)*i+t,Ho[0]=Bo(o)*n+e,Ho[1]=$o(o)*i+t,c(s,Vo,Ho),u(l,Vo,Ho),r%=Fo,r<0&&(r+=Fo),o%=Fo,o<0&&(o+=Fo),r>o&&!a?o+=Fo:rr&&(Wo[0]=Bo(p)*n+e,Wo[1]=$o(p)*i+t,c(s,Wo,s),u(l,Wo,l))}var Jo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qo=[],ea=[],ta=[],na=[],ia=[],ra=[],oa=Math.min,aa=Math.max,sa=Math.cos,la=Math.sin,ca=Math.abs,ua=Math.PI,ha=2*ua,da="undefined"!==typeof Float32Array,pa=[];function fa(e){var t=Math.round(e/ua*1e8)/1e8;return t%2*ua}function ga(e,t){var n=fa(e[0]);n<0&&(n+=ha);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=ha?r=n+ha:t&&n-r>=ha?r=n-ha:!t&&n>r?r=n+(ha-fa(n-r)):t&&n0&&(this._ux=ca(n/jn/e)||0,this._uy=ca(n/jn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Jo.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=ca(e-this._xi),i=ca(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Jo.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(Jo.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(Jo.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),pa[0]=i,pa[1]=r,ga(pa,o),i=pa[0],r=pa[1];var a=r-i;return this.addData(Jo.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=sa(r)*n+e,this._yi=la(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(Jo.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Jo.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!da||(this.data=new Float32Array(t));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ta[0]=ta[1]=ia[0]=ia[1]=Number.MAX_VALUE,na[0]=na[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;en||ca(y)>i||h===t-1)&&(f=Math.sqrt(v*v+y*y),r=g,o=m);break;case Jo.C:var b=e[h++],_=e[h++],x=(g=e[h++],m=e[h++],e[h++]),w=e[h++];f=Mt(r,o,b,_,g,m,x,w,10),r=x,o=w;break;case Jo.Q:b=e[h++],_=e[h++],g=e[h++],m=e[h++];f=Lt(r,o,b,_,g,m,10),r=g,o=m;break;case Jo.A:var S=e[h++],C=e[h++],k=e[h++],O=e[h++],M=e[h++],T=e[h++],D=T+M;h+=1;e[h++];p&&(a=sa(M)*k+S,s=la(M)*O+C),f=aa(k,O)*oa(ha,Math.abs(T)),r=sa(D)*k+S,o=la(D)*O+C;break;case Jo.R:a=r=e[h++],s=o=e[h++];var I=e[h++],A=e[h++];f=2*I+2*A;break;case Jo.Z:v=a-r,y=s-o;f=Math.sqrt(v*v+y*y),r=a,o=s;break}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,c,u,h,d,p=this.data,f=this._ux,g=this._uy,m=this._len,v=t<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=t*c,u))e:for(var x=0;x0&&(e.lineTo(h,d),_=0),w){case Jo.M:n=r=p[x++],i=o=p[x++],e.moveTo(r,o);break;case Jo.L:a=p[x++],s=p[x++];var C=ca(a-r),k=ca(s-o);if(C>f||k>g){if(v){var O=l[b++];if(y+O>u){var M=(u-y)/O;e.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break e}y+=O}e.lineTo(a,s),r=a,o=s,_=0}else{var T=C*C+k*k;T>_&&(h=a,d=s,_=T)}break;case Jo.C:var D=p[x++],I=p[x++],A=p[x++],E=p[x++],P=p[x++],L=p[x++];if(v){O=l[b++];if(y+O>u){M=(u-y)/O;kt(r,D,A,P,M,Qo),kt(o,I,E,L,M,ea),e.bezierCurveTo(Qo[1],ea[1],Qo[2],ea[2],Qo[3],ea[3]);break e}y+=O}e.bezierCurveTo(D,I,A,E,P,L),r=P,o=L;break;case Jo.Q:D=p[x++],I=p[x++],A=p[x++],E=p[x++];if(v){O=l[b++];if(y+O>u){M=(u-y)/O;Et(r,D,A,M,Qo),Et(o,I,E,M,ea),e.quadraticCurveTo(Qo[1],ea[1],Qo[2],ea[2]);break e}y+=O}e.quadraticCurveTo(D,I,A,E),r=A,o=E;break;case Jo.A:var N=p[x++],j=p[x++],R=p[x++],z=p[x++],$=p[x++],B=p[x++],F=p[x++],V=!p[x++],H=R>z?R:z,W=ca(R-z)>.001,q=$+B,G=!1;if(v){O=l[b++];y+O>u&&(q=$+B*(u-y)/O,G=!0),y+=O}if(W&&e.ellipse?e.ellipse(N,j,R,z,F,$,q,V):e.arc(N,j,H,$,q,V),G)break e;S&&(n=sa($)*R+N,i=la($)*z+j),r=sa(q)*R+N,o=la(q)*z+j;break;case Jo.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var U=p[x++],Y=p[x++];if(v){O=l[b++];if(y+O>u){var X=u-y;e.moveTo(a,s),e.lineTo(a+oa(X,U),s),X-=U,X>0&&e.lineTo(a+U,s+oa(X,Y)),X-=Y,X>0&&e.lineTo(a+aa(U-X,0),s+Y),X-=U,X>0&&e.lineTo(a,s+aa(Y-X,0));break e}y+=O}e.rect(a,s,U,Y);break;case Jo.Z:if(v){O=l[b++];if(y+O>u){M=(u-y)/O;e.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break e}y+=O}e.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.CMD=Jo,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),va=ma;function ya(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,c=e;if(a>t+s&&a>i+s||ae+s&&o>n+s||ot+h&&u>i+h&&u>o+h&&u>s+h||ue+h&&c>n+h&&c>r+h&&c>a+h||ct+c&&l>i+c&&l>o+c||le+c&&s>n+c&&s>r+c||sn||u+cr&&(r+=Sa);var d=Math.atan2(l,s);return d<0&&(d+=Sa),d>=i&&d<=r||d+Sa>=i&&d+Sa<=r}function ka(e,t,n,i,r,o){if(o>t&&o>i||or?s:0}var Oa=va.CMD,Ma=2*Math.PI,Ta=1e-4;function Da(e,t){return Math.abs(e-t)t&&c>i&&c>o&&c>s||c1&&Ea(),p=xt(t,i,o,s,Aa[0]),d>1&&(f=xt(t,i,o,s,Aa[1]))),2===d?mt&&s>i&&s>o||s=0&&c<=1){for(var u=0,h=Tt(t,i,o,c),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ia[0]=-l,Ia[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=Ma-1e-4){i=0,r=Ma;var u=o?1:-1;return a>=Ia[0]+e&&a<=Ia[1]+e?u:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Ma,r+=Ma);for(var d=0,p=0;p<2;p++){var f=Ia[p];if(f+e>a){var g=Math.atan2(s,f);u=o?1:-1;g<0&&(g=Ma+g),(g>=i&&g<=r||g+Ma>=i&&g+Ma<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function ja(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),c=0,u=0,h=0,d=0,p=0,f=0;f1&&(n||(c+=ka(u,h,d,p,i,r))),m&&(u=s[f],h=s[f+1],d=u,p=h),g){case Oa.M:d=s[f++],p=s[f++],u=d,h=p;break;case Oa.L:if(n){if(ya(u,h,s[f],s[f+1],t,i,r))return!0}else c+=ka(u,h,s[f],s[f+1],i,r)||0;u=s[f++],h=s[f++];break;case Oa.C:if(n){if(ba(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else c+=Pa(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;u=s[f++],h=s[f++];break;case Oa.Q:if(n){if(_a(u,h,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else c+=La(u,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;u=s[f++],h=s[f++];break;case Oa.A:var v=s[f++],y=s[f++],b=s[f++],_=s[f++],x=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(x)*b+v,a=Math.sin(x)*_+y,m?(d=o,p=a):c+=ka(u,h,o,a,i,r);var C=(i-v)*_/b+v;if(n){if(Ca(v,y,_,x,x+w,S,t,C,r))return!0}else c+=Na(v,y,_,x,x+w,S,C,r);u=Math.cos(x+w)*b+v,h=Math.sin(x+w)*_+y;break;case Oa.R:d=u=s[f++],p=h=s[f++];var k=s[f++],O=s[f++];if(o=d+k,a=p+O,n){if(ya(d,p,o,p,t,i,r)||ya(o,p,o,a,t,i,r)||ya(o,a,d,a,t,i,r)||ya(d,a,d,p,t,i,r))return!0}else c+=ka(o,p,o,a,i,r),c+=ka(d,a,d,p,i,r);break;case Oa.Z:if(n){if(ya(u,h,d,p,t,i,r))return!0}else c+=ka(u,h,d,p,i,r);u=d,h=p;break}}return n||Da(h,p)||(c+=ka(u,h,d,p,i,r)||0),0!==c}function Ra(e,t,n){return ja(e,0,!1,t,n)}function za(e,t,n,i){return ja(e,t,!0,n,i)}var $a=Object(s["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},To),Ba={style:Object(s["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Do.style)},Fa=Xn.concat(["invisible","culling","z","z2","zlevel","parent"]),Va=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.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?zn:t>.2?Bn:$n}if(e)return $n}return zn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(s["C"])(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object($t["d"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&et)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){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)),za(o,a/s,e,t)))return!0}if(this.hasFill())return Ra(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=et,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(s["m"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&et)},t.prototype.createStyle=function(e){return Object(s["g"])($a,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(s["m"])({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var l,c=!(n&&r);if(n&&n.shape?o?r?l=n.shape:(l=Object(s["m"])({},i.shape),Object(s["m"])(l,n.shape)):(l=Object(s["m"])({},r?this.shape:i.shape),Object(s["m"])(l,n.shape)):c&&(l=i.shape),l)if(o){this.shape=Object(s["m"])({},this.shape);for(var u={},h=Object(s["F"])(l),d=0;d0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(s["g"])(Wa,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=ii(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(jo);qa.prototype.type="tspan";var Ga=qa,Ua=Object(s["i"])({x:0,y:0},To),Ya={style:Object(s["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Do.style)};function Xa(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var Ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.createStyle=function(e){return Object(s["g"])(Ua,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=Xa(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ya},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new De(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(jo);Ka.prototype.type="image";var Za=Ka;function Ja(e,t){var n,i,r,o,a,s=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>c&&(a=n+i,n*=c/a,i*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),i+r>u&&(a=i+r,i*=u/a,r*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-r),0!==r&&e.arc(s+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var Qa=Math.round;function es(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Qa(2*i)===Qa(2*r)&&(e.x1=e.x2=ns(i,s,!0)),Qa(2*o)===Qa(2*a)&&(e.y1=e.y2=ns(o,s,!0)),e):e}}function ts(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=ns(i,s,!0),e.y=ns(r,s,!0),e.width=Math.max(ns(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(ns(r+a,s,!1)-e.y,0===a?0:1),e):e}}function ns(e,t,n){if(!t)return e;var i=Qa(2*e);return(i+Qa(t))%2===0?i/2:(i+(n?1:-1))/2}var is=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),rs={},os=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.getDefaultShape=function(){return new is},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=ts(rs,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?Ja(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ha);os.prototype.type="rect";var as=os,ss={fill:"#000"},ls=2,cs={style:Object(s["i"])({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},Do.style)},us=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ss,n.attr(t),n}return c(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,O=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,T=0;T=0&&(T=_[M],"right"===T.align))this._placeToken(T,e,w,g,O,"right",v),S-=T.width,O-=T.width,M--;k+=(i-(k-f)-(m-O)-S)/2;while(C<=M)T=_[C],this._placeToken(T,e,w,g,k+T.width/2,"center",v),k+=T.width,C++;g+=w}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var l=t.rich[e.styleName]||{};l.text=e.text;var c=e.verticalAlign,u=i+n/2;"top"===c?u=i+e.height/2:"bottom"===c&&(u=i+n-e.height/2);var h=!e.isLineHolder&&Ss(l);h&&this._renderBackground(l,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var d=!!l.backgroundColor,p=e.textPadding;p&&(r=xs(r,o,p),u-=e.height/2-p[0]-e.innerHeight/2);var f=this._getOrCreateChild(Ga),g=f.createStyle();f.useStyle(g);var m=this._defaultStyle,v=!1,y=0,b=_s("fill"in l?l.fill:"fill"in t?t.fill:(v=!0,m.fill)),_=bs("stroke"in l?l.stroke:"stroke"in t?t.stroke:d||a||m.autoStroke&&!v?null:(y=ls,m.stroke)),x=l.textShadowBlur>0||t.textShadowBlur>0;g.text=e.text,g.x=r,g.y=u,x&&(g.shadowBlur=l.textShadowBlur||t.textShadowBlur||0,g.shadowColor=l.textShadowColor||t.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||t.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||t.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=e.font||Qn["a"],g.opacity=Object(s["Q"])(l.opacity,t.opacity,1),gs(g,l),_&&(g.lineWidth=Object(s["Q"])(l.lineWidth,t.lineWidth,y),g.lineDash=Object(s["P"])(l.lineDash,t.lineDash),g.lineDashOffset=t.lineDashOffset||0,g.stroke=_),b&&(g.fill=b);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new De(ri(g.x,w,g.textAlign),oi(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,l,c=e.backgroundColor,u=e.borderWidth,h=e.borderColor,d=c&&c.image,p=c&&!d,f=e.borderRadius,g=this;if(p||e.lineHeight||u&&h){a=this._getOrCreateChild(as),a.useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=c||null,v.fillOpacity=Object(s["P"])(e.fillOpacity,1)}else if(d){l=this._getOrCreateChild(Za),l.onload=function(){g.dirtyStyle()};var y=l.style;y.image=c.image,y.x=n,y.y=i,y.width=r,y.height=o}if(u&&h){v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=Object(s["P"])(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(a||l).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=Object(s["Q"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return ms(e)&&(t=[e.fontStyle,e.fontWeight,fs(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(s["T"])(t)||e.textFont||e.font},t}(jo),hs={left:!0,right:1,center:1},ds={top:1,bottom:1,middle:1},ps=["fontStyle","fontWeight","fontSize","fontFamily"];function fs(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?Qn["c"]+"px":e+"px":e}function gs(e,t){for(var n=0;n=0,o=!1;if(e instanceof Ha){var a=Ds(e),l=r&&a.selectFill||a.normalFill,c=r&&a.selectStroke||a.normalStroke;if(Hs(l)||Hs(c)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=Object(s["m"])({},i),u=Object(s["m"])({},u),u.fill=l):!Hs(u.fill)&&Hs(l)?(o=!0,i=Object(s["m"])({},i),u=Object(s["m"])({},u),u.fill=qs(l)):!Hs(u.stroke)&&Hs(c)&&(o||(i=Object(s["m"])({},i),u=Object(s["m"])({},u)),u.stroke=qs(c)),i.style=u}}if(i&&null==i.z2){o||(i=Object(s["m"])({},i));var h=e.z2EmphasisLift;i.z2=e.z2+(null!=h?h:js)}return i}function rl(e,t,n){if(n&&null==n.z2){n=Object(s["m"])({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:Rs)}return n}function ol(e,t,n){var i=Object(s["r"])(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:nl(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(s["m"])({},n),a=Object(s["m"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function al(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return il(this,e,t,n);if("blur"===e)return ol(this,e,n);if("select"===e)return rl(this,e,n)}return n}function sl(e){e.stateProxy=al;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=al),n&&(n.stateProxy=al)}function ll(e,t){!ml(e,t)&&!e.__highByOuter&&el(e,Us)}function cl(e,t){!ml(e,t)&&!e.__highByOuter&&el(e,Ys)}function ul(e,t){e.__highByOuter|=1<<(t||0),el(e,Us)}function hl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&el(e,Ys)}function dl(e){el(e,Xs)}function pl(e){el(e,Ks)}function fl(e){el(e,Zs)}function gl(e){el(e,Js)}function ml(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vl(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=Is(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){Ks(e)})),a&&n.push(r)),o.isBlured=!1})),Object(s["k"])(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function yl(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Ml(e,t,n){Ll(e,!0),el(e,sl),Il(e,t,n)}function Tl(e){Ll(e,!1)}function Dl(e,t,n,i){i?Tl(e):Ml(e,t,n)}function Il(e,t,n){var i=ks(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Al=["emphasis","blur","select"],El={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pl(e,t,n,i){n=n||"itemStyle";for(var r=0;r0){var d=h.duration,p=h.delay,f=h.easing,g={duration:d,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};c?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!c&&t.attr(n),a&&a(1),o&&o()}function Wl(e,t,n,i,r,o){Hl("update",e,t,n,i,r,o)}function ql(e,t,n,i,r,o){Hl("enter",e,t,n,i,r,o)}function Gl(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,l=o.noEntryList,c={};s["k"](e,(function(e){c[e]=!0}));while(l.length){var u=l.pop(),h=a[u],d=!!c[u];d&&(i.call(r,u,h.originalDeps.slice()),delete c[u]),s["k"](h.successor,d?f:p)}s["k"](c,(function(){var e="";throw new Error(e)}))}function p(e){a[e].entryCount--,0===a[e].entryCount&&l.push(e)}function f(e){c[e]=!0,p(e)}}}function Ec(e,t){return s["I"](s["I"]({},e,!0),t,!0)}var Pc={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"}},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:". "}}}},Lc={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:"旭日图"}},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:""}}}},Nc="ZH",jc="EN",Rc=jc,zc={},$c={},Bc=a["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Nc)>-1?Nc:Rc}():Rc;function Fc(e,t){e=e.toUpperCase(),$c[e]=new Mc(t),zc[e]=t}function Vc(e){if(Object(s["C"])(e)){var t=zc[e.toUpperCase()]||{};return e===Nc||e===jc?Object(s["d"])(t):Object(s["I"])(Object(s["d"])(t),Object(s["d"])(zc[Rc]),!1)}return Object(s["I"])(Object(s["d"])(e),Object(s["d"])(zc[Rc]),!1)}function Hc(e){return $c[e]}function Wc(){return $c[Rc]}Fc(jc,Pc),Fc(Nc,Lc);var qc=1e3,Gc=60*qc,Uc=60*Gc,Yc=24*Uc,Xc=365*Yc,Kc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Zc="{yyyy}-{MM}-{dd}",Jc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zc,hour:Zc+" "+Kc.hour,minute:Zc+" "+Kc.minute,second:Zc+" "+Kc.second,millisecond:Kc.none},Qc=["year","month","day","hour","minute","second","millisecond"],eu=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tu(e,t){return e+="","0000".substr(0,t-e.length)+e}function nu(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function iu(e){return e===nu(e)}function ru(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ou(e,t,n,i){var r=Yi(e),o=r[cu(n)](),a=r[uu(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[hu(n)](),c=r["get"+(n?"UTC":"")+"Day"](),u=r[du(n)](),h=(u-1)%12+1,d=r[pu(n)](),p=r[fu(n)](),f=r[gu(n)](),g=i instanceof Mc?i:Hc(i||Bc)||Wc(),m=g.getModel("time"),v=m.get("month"),y=m.get("monthAbbr"),b=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tu(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,tu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,tu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,_[c]).replace(/{e}/g,c+"").replace(/{HH}/g,tu(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,tu(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,tu(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tu(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,tu(f,3)).replace(/{S}/g,f+"")}function au(e,t,n,i,r){var o=null;if(s["C"](n))o=n;else if(s["w"](n))o=n(e.value,t,{level:e.level});else{var a=s["m"]({},Kc);if(e.level>0)for(var l=0;l=0;--l)if(c[u]){o=c[u];break}o=o||a.none}if(s["t"](o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return ou(new Date(e.value),o,r,i)}function su(e,t){var n=Yi(e),i=n[uu(t)]()+1,r=n[hu(t)](),o=n[du(t)](),a=n[pu(t)](),s=n[fu(t)](),l=n[gu(t)](),c=0===l,u=c&&0===s,h=u&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":u?"minute":c?"second":"millisecond"}function lu(e,t,n){var i=s["z"](e)?Yi(e):e;switch(t=t||su(e,n),t){case"year":return i[cu(n)]();case"half-year":return i[uu(n)]()>=6?1:0;case"quarter":return Math.floor((i[uu(n)]()+1)/4);case"month":return i[uu(n)]();case"day":return i[hu(n)]();case"half-day":return i[du(n)]()/24;case"hour":return i[du(n)]();case"minute":return i[pu(n)]();case"second":return i[fu(n)]();case"millisecond":return i[gu(n)]()}}function cu(e){return e?"getUTCFullYear":"getFullYear"}function uu(e){return e?"getUTCMonth":"getMonth"}function hu(e){return e?"getUTCDate":"getDate"}function du(e){return e?"getUTCHours":"getHours"}function pu(e){return e?"getUTCMinutes":"getMinutes"}function fu(e){return e?"getUTCSeconds":"getSeconds"}function gu(e){return e?"getUTCMilliseconds":"getMilliseconds"}function mu(e){return e?"setUTCFullYear":"setFullYear"}function vu(e){return e?"setUTCMonth":"setMonth"}function yu(e){return e?"setUTCDate":"setDate"}function bu(e){return e?"setUTCHours":"setHours"}function _u(e){return e?"setUTCMinutes":"setMinutes"}function xu(e){return e?"setUTCSeconds":"setSeconds"}function wu(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Su(e){if(!tr(e))return s["C"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Cu(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ku=s["M"];function Ou(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&s["T"](e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,l=e instanceof Date;if(a||l){var c=a?Yi(e):e;if(!isNaN(+c))return ou(c,i,n);if(l)return"-"}if("ordinal"===t)return s["D"](e)?r(e):s["z"](e)&&o(e)?e+"":"-";var u=er(e);return o(u)?Su(u):s["D"](e)?r(e):"boolean"===typeof e?e+"":"-"}var Mu=["a","b","c","d","e","f","g"],Tu=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Du(e,t,n){s["t"](t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o
':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Eu(e,t){return t=t||"transparent",s["C"](e)?e:s["A"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Pu(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Lu=s["k"],Nu=["left","right","top","bottom","width","height"],ju=[["width","left","right"],["height","top","bottom"]];function Ru(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,c){var u,h,d=l.getBoundingRect(),p=t.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);u=o+g,u>i||l.newline?(o=0,u=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);h=a+m,h>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=u+n:a=h+n)}))}var zu=Ru;s["h"](Ru,"vertical"),s["h"](Ru,"horizontal");function $u(e,t,n){var i=t.width,r=t.height,o=ji(e.left,i),a=ji(e.top,r),s=ji(e.right,i),l=ji(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=ku(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Bu(e,t,n){n=ku(n||0);var i=t.width,r=t.height,o=ji(e.left,i),a=ji(e.top,r),s=ji(e.right,i),l=ji(e.bottom,r),c=ji(e.width,i),u=ji(e.height,r),h=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(c)&&(c=i-s-d-o),isNaN(u)&&(u=r-l-h-a),null!=p&&(isNaN(c)&&isNaN(u)&&(p>i/r?c=.8*i:u=.8*r),isNaN(c)&&(c=p*u),isNaN(u)&&(u=c/p)),isNaN(o)&&(o=i-s-c-d),isNaN(a)&&(a=r-l-u-h),e.left||e.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-d;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h;break}o=o||0,a=a||0,isNaN(c)&&(c=i-d-o-(s||0)),isNaN(u)&&(u=r-h-a-(l||0));var f=new De(o+n[3],a+n[0],c,u);return f.margin=n,f}function Fu(e,t,n,i,r,o){var a,l=!r||!r.hv||r.hv[0],c=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!l&&!c)return!1;if("raw"===u)a="group"===e.type?new De(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var h=e.getLocalTransform();a=a.clone(),a.applyTransform(h)}var d=Bu(s["i"]({width:a.width,height:a.height},t),n,i),p=l?d.x-a.x:0,f=c?d.y-a.y:0;return"raw"===u?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===e&&e.markRedraw(),!0}function Vu(e,t){return null!=e[ju[t][0]]||null!=e[ju[t][1]]&&null!=e[ju[t][2]]}function Hu(e){var t=e.layoutMode||e.constructor.layoutMode;return s["A"](t)?t:t?{type:t}:null}function Wu(e,t,n){var i=n&&n.ignoreSize;!s["t"](i)&&(i=[i,i]);var r=a(ju[0],0),o=a(ju[1],1);function a(n,r){var o={},a=0,s={},u=0,h=2;if(Lu(n,(function(t){s[t]=e[t]})),Lu(n,(function(e){l(t,e)&&(o[e]=s[e]=t[e]),c(o,e)&&a++,c(s,e)&&u++})),i[r])return c(t,n[1])?s[n[2]]=null:c(t,n[2])&&(s[n[1]]=null),s;if(u!==h&&a){if(a>=h)return o;for(var d=0;d=0;a--)o=s["I"](o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return jr(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Mc);function Xu(e){var t=[];return s["k"](Yu.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=s["H"](t,(function(e){return qr(e).main})),"dataset"!==e&&s["r"](t,"dataset")<=0&&t.unshift("dataset"),t}Kr(Yu,Mc),to(Yu),Ic(Yu),Ac(Yu,Xu);var Ku=Yu,Zu="";"undefined"!==typeof navigator&&(Zu=navigator.platform||"");var Ju="rgba(0, 0, 0, 0.2)",Qu={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ju,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ju,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ju,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ju,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ju,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ju,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zu.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},eh=Object(s["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),th="original",nh="arrayRows",ih="objectRows",rh="keyedColumns",oh="typedArray",ah="unknown",sh="column",lh="row",ch={Must:1,Might:2,Not:3},uh=Ir();function hh(e){uh(e).datasetMap=Object(s["f"])()}function dh(e,t,n){var i={},r=fh(t);if(!r||!e)return i;var o,a,l=[],c=[],u=t.ecModel,h=uh(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(s["k"])(e,(function(t,n){var r=Object(s["A"])(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=g(r)),i[r.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function f(e,t,n){for(var i=0;it)return e[i];return e[n-1]}function Oh(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var u=null!=a&&i?kh(i,a):n;if(u=u||n,u&&u.length){var h=u[l];return r&&(c[r]=h),s.paletteIdx=(l+1)%u.length,h}}function Mh(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Th,Dh,Ih;"undefined"!==typeof console&&console.warn&&console.log;function Ah(e){0}function Eh(e){throw new Error(e)}var Ph="\0_ec_inner",Lh=1;var Nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Mc(i),this._locale=new Mc(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=Bh(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Bh(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Ih(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&Object(s["k"])(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(s["f"])(),l=t&&t.replaceMergeMainTypeMap;function c(t){var o=_h(this,t,lr(e[t])),a=i.get(t),c=a?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=pr(a,o,c);Or(u,t,Ku),n[t]=null,i.set(t,null),r.set(t,0);var h,d=[],p=[],f=0;Object(s["k"])(u,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=Ku.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(s["m"])({componentIndex:n},e.keyInfo);i=new a(r,this,this,l),Object(s["m"])(i,l),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),p.push(i),f++):(d.push(void 0),p.push(void 0))}),this),n[t]=d,i.set(t,p),r.set(t,f),"series"===t&&Th(this)}hh(this),Object(s["k"])(e,(function(e,t){null!=e&&(Ku.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?Object(s["d"])(e):Object(s["I"])(n[t],e,!0))})),l&&l.each((function(e,t){Ku.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),Ku.topologicalTravel(o,Ku.getAllClassMainTypes(),c,this),this._seriesIndices||Th(this)},t.prototype.getOption=function(){var e=Object(s["d"])(this.option);return Object(s["k"])(e,(function(t,n){if(Ku.hasClass(n)){for(var i=lr(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Cr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[Ph],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r=t:"max"===n?e<=t:e===t}function Qh(e,t){return e.join(",")===t.join(",")}var ed=Xh,td=s["k"],nd=s["A"],id=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rd(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=id.length;n=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=Hi(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var Md,Td,Dd,Id,Ad,Ed=function(){function e(e){this.data=e.data||(e.sourceFormat===rh?{}:[]),this.sourceFormat=e.sourceFormat||ah,this.seriesLayoutBy=e.seriesLayoutBy||sh,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nc&&(c=p)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t=0&&(l=o.interpolatedValue[c])}return null!=l?l+"":""}))}},e.prototype.getRawValue=function(e,t){return ep(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ip(e){var t,n;return s["A"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function rp(e){return new op(e)}var op=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=h(this._modBy),l=this._modDataCount||0,c=h(e&&e.modBy),u=e&&e.modDataCount||0;function h(e){return!(e>=1)&&(e=1),e}a===c&&l===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=c,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||p1&&i>0?s:a}};return o;function a(){return t=e?null:ot},gte:function(e,t){return e>=t}},hp=function(){function e(e,t){if(!Object(s["z"])(t)){var n="";0,Eh(n)}this._opFn=up[e],this._rvalFloat=er(t)}return e.prototype.evaluate=function(e){return Object(s["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(er(e),this._rvalFloat)},e}(),dp=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(s["z"])(e)?e:er(e),i=Object(s["z"])(t)?t:er(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(s["C"])(e),l=Object(s["C"])(t);a&&(n=l?e:0),l&&(i=a?t:0)}return ni?-this._resultLT:0},e}(),pp=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=er(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=er(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function fp(e,t){return"eq"===e||"ne"===e?new pp("eq"===e,t):Object(s["q"])(up,e)?new hp(e,t):null}var gp=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return sp(e,t)},e}();function mp(e,t){var n=new gp,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==sh&&Eh(a);var l=[],c={},u=e.dimensionsDefine;if(u)Object(s["k"])(u,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(l.push(i),null!=n){var r="";Object(s["q"])(c,n)&&Eh(r),c[n]=i}}));else for(var h=0;h65535?Tp:Dp}function Lp(){return[1/0,-1/0]}function Np(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jp(e,t,n,i,r){var o=Ep[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;cg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,l=this._rawExtent,c=Object(s["H"])(o,(function(e){return e.property})),u=0;uv[1]&&(v[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r=h&&y<=d||isNaN(y))&&(l[c++]=g),g++}f=!0}else if(2===r){m=p[i[0]];var b=p[i[1]],_=e[i[1]][0],x=e[i[1]][1];for(v=0;v=h&&y<=d||isNaN(y))&&(w>=_&&w<=x||isNaN(w))&&(l[c++]=g),g++}f=!0}}if(!f)if(1===r)for(v=0;v=h&&y<=d||isNaN(y))&&(l[c++]=S)}else for(v=0;ve[O][1])&&(C=!1)}C&&(l[c++]=t.getRawIndex(v))}return cm[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),c=0,u=Math.floor(1/t),h=this.getRawIndex(0),d=new(Pp(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));d[c++]=h;for(var p=1;pn&&(n=i,r=b))}O>0&&Oc-p&&(s=c-p,a.length=s);for(var f=0;fu[1]&&(u[1]=m),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();rs&&(s=u)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return sp(e[i],this._dimensions[i])}Op={arrayRows:e,objectRows:function(e,t,n,i){return sp(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return sp(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),zp=Rp,$p=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Fp(n)){var o=n,a=void 0,l=void 0,c=void 0;if(r){var u=i[0];u.prepareSource(),c=u.getSource(),a=c.data,l=c.sourceFormat,t=[u._getVersionSign()]}else a=o.get("data",!0),l=Object(s["E"])(a)?oh:th,t=[];var h=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},p=Object(s["P"])(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=Object(s["P"])(h.sourceHeader,d.sourceHeader),g=Object(s["P"])(h.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||g;e=m?[Ld(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var v=n;if(r){var y=this._applyTransform(i);e=y.sourceList,t=y.upstreamSignList}else{var b=v.get("source",!0);e=[Ld(b,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&Vp(o)}var a=[],l=[];return Object(s["k"])(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||Vp(n),a.push(t),l.push(e._getVersionSign())})),i?t=Sp(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[jd(a[0])]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return Object(s["k"])(e.blocks,(function(e){var n=Kp(e);n>=t&&(t=n+ +(i&&(!n||Yp(e)&&!e.noHeader)))})),t}return 0}function Zp(e,t,n,i){var r=t.noHeader,o=ef(Kp(t)),a=[],l=t.blocks||[];Object(s["b"])(!l||Object(s["t"])(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(s["q"])(u,c)){var h=new dp(u[c],null);l.sort((function(e,t){return h.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===c&&l.reverse()}Object(s["k"])(l,(function(n,r){var l=t.valueFormatter,c=Xp(n)(l?Object(s["m"])(Object(s["m"])({},e),{valueFormatter:l}):e,n,r>0?o.html:0,i);null!=c&&a.push(c)}));var d="richText"===e.renderMode?a.join(o.richText):tf(a.join(""),r?n:o.html);if(r)return d;var p=Ou(t.header,"ordinal",e.useUTC),f=Wp(i,e.renderMode).nameStyle;return"richText"===e.renderMode?of(e,p,f)+o.richText+d:tf('
'+G(p)+"
"+d,n)}function Jp(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,l=!t.markerType,c=t.name,u=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(e){return e=Object(s["t"])(e)?e:[e],Object(s["H"])(e,(function(e,t){return Ou(e,Object(s["t"])(f)?f[t]:f,u)}))};if(!o||!a){var d=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),p=o?"":Ou(c,"ordinal",u),f=t.valueType,g=a?[]:h(t.value),m=!l||!o,v=!l&&o,y=Wp(i,r),b=y.nameStyle,_=y.valueStyle;return"richText"===r?(l?"":d)+(o?"":of(e,p,b))+(a?"":af(e,g,m,v,_)):tf((l?"":d)+(o?"":nf(p,!l,b))+(a?"":rf(g,m,v,_)),n)}}function Qp(e,t,n,i,r,o){if(e){var a=Xp(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function ef(e){return{html:qp[e],richText:Gp[e]}}function tf(e,t){var n='
',i="margin: "+t+"px 0 0";return'
'+e+n+"
"}function nf(e,t,n){var i=t?"margin-left:2px":"";return''+G(e)+""}function rf(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=Object(s["t"])(e)?e:[e],''+Object(s["H"])(e,(function(e){return G(e)})).join("  ")+""}function of(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function af(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(s["t"])(t)?t.join(" "):t,o)}function sf(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Eu(i)}function lf(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var cf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=nr()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Au({color:t,type:e,renderMode:n,markerId:i});return Object(s["C"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(s["t"])(t)?Object(s["k"])(t,(function(e){return Object(s["m"])(n,e)})):Object(s["m"])(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function uf(e){var t,n,i,r,o=e.series,a=e.dataIndex,l=e.multipleSeries,c=o.getData(),u=c.mapDimensionsAll("defaultedTooltip"),h=u.length,d=o.getRawValue(a),p=Object(s["t"])(d),f=sf(o,a);if(h>1||p&&!h){var g=hf(d,o,a,u,f);t=g.inlineValues,n=g.inlineValueTypes,i=g.blocks,r=g.inlineValues[0]}else if(h){var m=c.getDimensionInfo(u[0]);r=t=ep(c,a,u[0]),n=m.type}else r=t=p?d[0]:d;var v=Sr(o),y=v&&o.name||"",b=c.getName(a),_=l?y:b;return Up("section",{header:y,noHeader:l||!v,sortParam:r,blocks:[Up("nameValue",{markerType:"item",markerColor:f,name:_,noName:!Object(s["T"])(_),value:t,valueType:n})].concat(i||[])})}function hf(e,t,n,i,r){var o=t.getData(),a=Object(s["N"])(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),l=[],c=[],u=[];function h(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(Up("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(l.push(e),c.push(n.type)))}return i.length?Object(s["k"])(i,(function(e){h(ep(o,n,e),e)})):Object(s["k"])(e,h),{inlineValues:l,inlineValueTypes:c,blocks:u}}var df=Ir();function pf(e,t){return e.getName(t)||e.getId(t)}var ff="__universalTransitionEnabled",gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return o(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=rp({count:yf,reset:bf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=df(this).sourceManager=new $p(this);i.prepareSource();var r=this.getInitialData(e,n);xf(r,this),this.dataTask.context.data=r,df(this).dataBeforeProcessed=r,mf(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Hu(this),i=n?qu(e):{},r=this.subType;Ku.hasClass(r)&&(r+="Series"),s["I"](e,t.getTheme().get(this.subType)),s["I"](e,this.getDefaultOption()),cr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Wu(e,i,n)},t.prototype.mergeOption=function(e,t){e=s["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Hu(this);n&&Wu(this.option,e,n);var i=df(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);xf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,df(this).dataBeforeProcessed=r,mf(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!s["E"](e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Sh.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[pf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ff])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){s["A"](r.selectedMap)||(r.selectedMap={});for(var l=r.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Ku.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Ku);function mf(e){var t=e.name;Sr(e)||(e.name=vf(e)||t)}function vf(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return s["k"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function yf(e){return e.model.getRawData().count()}function bf(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_f}function _f(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xf(e,t){s["k"](s["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,s["h"](wf,t))}))}function wf(e,t){var n=Sf(e);return n&&n.setOutputEnd((t||this).count()),t}function Sf(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}s["K"](gf,np),s["K"](gf,Sh),Kr(gf,Ku);var Cf=gf,kf=function(){function e(){this.group=new Ci,this.uid=Dc("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Yr(kf),to(kf);var Of=kf;function Mf(){var e=Ir();return function(t){var n=e(t),i=t.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"}}var Tf=va.CMD,Df=[[],[],[]],If=Math.sqrt,Af=Math.atan2;function Ef(e,t){if(t){var n,i,r,o,a,s,l=e.data,c=e.len(),u=Tf.M,h=Tf.C,d=Tf.L,p=Tf.R,f=Tf.A,g=Tf.Q;for(r=0,o=0;r1&&(a*=Pf(f),s*=Pf(f));var g=(r===o?-1:1)*Pf((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,v=g*-s*d/a,y=(e+n)/2+Nf(h)*m-Lf(h)*v,b=(t+i)/2+Lf(h)*m+Nf(h)*v,_=$f([1,0],[(d-m)/a,(p-v)/s]),x=[(d-m)/a,(p-v)/s],w=[(-1*d-m)/a,(-1*p-v)/s],S=$f(x,w);if(zf(x,w)<=-1&&(S=jf),zf(x,w)>=1&&(S=0),S<0){var C=Math.round(S/jf*1e6)/1e6;S=2*jf+C%2*jf}u.addData(c,y,b,a,s,_,S,h,o)}var Ff=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Vf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hf(e){var t=new va;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=va.CMD,l=e.match(Ff);if(!l)return t;for(var c=0;cI*I+A*A&&(C=O,k=M),{cx:C,cy:k,x0:-u,y0:-h,x1:C*(r/x-1),y1:k*(r/x-1)}}function mg(e){var t;if(Object(s["t"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function vg(e,t){var n,i=hg(t.r,0),r=hg(t.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=t.startAngle,c=t.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=t.cx,h=t.cy,d=!!t.clockwise,p=cg(c-l),f=p>rg&&p%rg;if(f>pg&&(p=f),i>pg)if(p>rg-pg)e.moveTo(u+i*ag(l),h+i*og(l)),e.arc(u,h,i,l,c,!d),r>pg&&(e.moveTo(u+r*ag(c),h+r*og(c)),e.arc(u,h,r,c,l,d));else{var g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,C=void 0,k=void 0,O=void 0,M=void 0,T=void 0,D=void 0,I=void 0,A=i*ag(l),E=i*og(l),P=r*ag(c),L=r*og(c),N=p>pg;if(N){var j=t.cornerRadius;j&&(n=mg(j),g=n[0],m=n[1],v=n[2],y=n[3]);var R=cg(i-r)/2;if(b=dg(R,v),_=dg(R,y),x=dg(R,g),w=dg(R,m),k=S=hg(b,_),O=C=hg(x,w),(S>pg||C>pg)&&(M=i*ag(c),T=i*og(c),D=r*ag(l),I=r*og(l),ppg){var q=dg(v,k),G=dg(y,k),U=gg(D,I,A,E,i,q,d),Y=gg(M,T,P,L,i,G,d);e.moveTo(u+U.cx+U.x0,h+U.cy+U.y0),k0&&e.arc(u+U.cx,h+U.cy,q,lg(U.y0,U.x0),lg(U.y1,U.x1),!d),e.arc(u,h,i,lg(U.cy+U.y1,U.cx+U.x1),lg(Y.cy+Y.y1,Y.cx+Y.x1),!d),G>0&&e.arc(u+Y.cx,h+Y.cy,G,lg(Y.y1,Y.x1),lg(Y.y0,Y.x0),!d))}else e.moveTo(u+A,h+E),e.arc(u,h,i,l,c,!d);else e.moveTo(u+A,h+E);if(r>pg&&N)if(O>pg){q=dg(g,O),G=dg(m,O),U=gg(P,L,M,T,r,-G,d),Y=gg(A,E,D,I,r,-q,d);e.lineTo(u+U.cx+U.x0,h+U.cy+U.y0),O0&&e.arc(u+U.cx,h+U.cy,G,lg(U.y0,U.x0),lg(U.y1,U.x1),!d),e.arc(u,h,r,lg(U.cy+U.y1,U.cx+U.x1),lg(Y.cy+Y.y1,Y.cx+Y.x1),d),q>0&&e.arc(u+Y.cx,h+Y.cy,q,lg(Y.y1,Y.x1),lg(Y.y0,Y.x0),!d))}else e.lineTo(u+P,h+L),e.arc(u,h,r,c,l,d);else e.lineTo(u+P,h+L)}else e.moveTo(u,h);e.closePath()}}}var yg=function(){function e(){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}return e}(),bg=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.getDefaultShape=function(){return new yg},t.prototype.buildPath=function(e,t){vg(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ha);bg.prototype.type="sector";var _g=bg,xg=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),wg=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.getDefaultShape=function(){return new xg},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(Ha);wg.prototype.type="ring";var Sg=wg;function Cg(e,t,n,i){var r,o,a,s,l=[],c=[],u=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,g=e.length;p=2){if(i){var o=Cg(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;sQg[1]){if(a=!1,r)return a;var c=Math.abs(Qg[0]-Jg[1]),u=Math.abs(Jg[0]-Qg[1]);Math.min(c,u)>i.len()&&(cMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Om(e){return!e.isGroup}function Mm(e){return null!=e.shape}function Tm(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(Om(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Wl(e,r,n,ks(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){Om(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Mm(e)&&(t.shape=Object(s["m"])({},e.shape)),t}}function Dm(e,t){return Object(s["H"])(e,(function(e){var n=e[0];n=sm(n,t.x),n=lm(n,t.x+t.width);var i=e[1];return i=sm(i,t.y),i=lm(i,t.y+t.height),[n,i]}))}function Im(e,t){var n=sm(e.x,t.x),i=lm(e.x+e.width,t.x+t.width),r=sm(e.y,t.y),o=lm(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Am(e,t,n){var i=Object(s["m"])({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),Object(s["i"])(r,n),new Za(i)):gm(e.replace("path://",""),i,n,"center")}function Em(e,t,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var m=Lm(p,f,u,h)/d;return!(m<0||m>1)}function Lm(e,t,n,i){return e*i-n*t}function Nm(e){return e<=1e-6&&e>=-1e-6}function jm(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=Object(s["C"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,l={componentType:o,name:i,$vars:["name"]};l[o+"Index"]=a;var c=e.formatterParamsExtra;c&&Object(s["k"])(Object(s["F"])(c),(function(e){Object(s["q"])(l,e)||(l[e]=c[e],l.$vars.push(e))}));var u=ks(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Object(s["i"])({content:i,formatterParams:l},r)}}function Rm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function zm(e,t){if(e)if(Object(s["t"])(e))for(var n=0;n=0?h():u=setTimeout(h,-r),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){s=e},d}function Jm(e,t,n,i){var r=e[t];if(r){var o=r[Ym]||r,a=r[Km],s=r[Xm];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=Zm(o,n,"debounce"===i),r[Ym]=o,r[Km]=i,r[Xm]=n}return r}}function Qm(e,t){var n=e[t];n&&n[Ym]&&(n.clear&&n.clear(),e[t]=n[Ym])}var ev=Ir(),tv={itemStyle:no(Sc,!0),lineStyle:no(_c,!0)},nv={lineStyle:"stroke",itemStyle:"fill"};function iv(e,t){var n=e.visualStyleMapper||tv[t];return n||(console.warn("Unknown style type '"+t+"'."),tv.itemStyle)}function rv(e,t){var n=e.visualDrawType||nv[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var ov={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=iv(e,i),a=o(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=rv(e,i),u=a[c],h=Object(s["w"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[c]||h||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[c]||(a[c]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(s["w"])(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Object(s["w"])(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=Object(s["m"])({},a);r[c]=h(i),t.setItemVisual(n,"style",r)}}}},av=new Mc,sv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=iv(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){av.option=n[i];var a=r(av),l=e.ensureUniqueItemVisual(t,"style");Object(s["m"])(l,a),av.option.decal&&(e.setItemVisual(t,"decal",av.option.decal),av.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},lv={performRawSeries:!0,overallReset:function(e){var t=Object(s["f"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),ev(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=ev(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=rv(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var c=r.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",h=n.count();c[s]=t.getColorFromPalette(u,o,h)}}))}}))}},cv=Math.PI;function uv(e,t){t=t||{},s["i"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ci,i=new as({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new Cs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new as({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Hg({shape:{startAngle:-cv/2,endAngle:-cv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*cv/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*cv/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var hv=function(){function e(e,t,n,i){this._stageTaskMap=Object(s["f"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(s["f"])();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(s["k"])(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";Object(s["b"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(s["k"])(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,n);var p=o.getPerformArgs(u,i.block);d.each((function(e){e.perform(p)})),u.perform(p)&&(r=!0)}else c&&c.each((function(s,l){a(i,s)&&s.dirty();var c=o.getPerformArgs(s,i.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Object(s["f"])(),l=e.seriesType,c=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||rp({plan:mv,reset:vv,count:_v}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):l?n.eachRawSeriesByType(l,u):c&&c(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||rp({reset:dv});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,l=o.agentStubMap=Object(s["f"])(),c=e.seriesType,u=e.getTargetSeries,h=!0,d=!1,p="";function f(e){var t=e.uid,n=l.set(t,a&&a.get(t)||(d=!0,rp({reset:pv,onDirty:gv})));n.context={model:e,overallProgress:h},n.agent=o,n.__block=h,r._pipe(e,n)}Object(s["b"])(!e.createOnAllSeries,p),c?n.eachRawSeriesByType(c,f):u?u(n,i).each(f):(h=!1,Object(s["k"])(n.getSeries(),f)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Object(s["w"])(e)&&(e={overallReset:e,seriesType:xv(e)}),e.uid=Dc("stageHandler"),t&&(e.visualType=t),e},e}();function dv(e){e.overallReset(e.ecModel,e.api,e.payload)}function pv(e){return e.overallProgress&&fv}function fv(){this.agent.dirty(),this.getDownstream().dirty()}function gv(){this.agent&&this.agent.dirty()}function mv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function vv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=lr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(s["H"])(t,(function(e,t){return bv(t)})):yv}var yv=bv(0);function bv(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(t.mainType=h,t[c.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),jv=["symbol","symbolSize","symbolRotate","symbolOffset"],Rv=jv.concat(["symbolKeepAspect"]),zv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&cy(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function dy(e,t,n){for(var i="radial"===t.type?hy(e,t,n):uy(e,t,n),r=t.colorStops,o=0;o0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(s["z"])(e)?[e]:Object(s["t"])(e)?e:null:null}function vy(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&my(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=Object(s["H"])(n,(function(e){return e/r})),i/=r)}return[n,i]}var yy=new va(!0);function by(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function _y(e){return"string"===typeof e&&"none"!==e}function xy(e){var t=e.fill;return null!=t&&"none"!==t}function wy(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Sy(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Cy(e,t,n){var i=lo(t.image,t.__image,n);if(uo(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*s["a"]),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function ky(e,t,n,i){var r,o=by(n),a=xy(n),s=n.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||yy,h=t.__dirty;if(!i){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,v=o&&!!p.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=h?dy(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=h?dy(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(_=h||!t.__canvasFillPattern?Cy(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=_),v&&(x=h||!t.__canvasStrokePattern?Cy(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:m&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=b:v&&(x?e.strokeStyle=x:o=!1)}var S,C,k=t.getGlobalScale();u.setScale(k[0],k[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=vy(t),S=r[0],C=r[1]);var O=!0;(c||h&et)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),O=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),O&&u.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=C),i||(n.strokeFirst?(o&&Sy(e,n),a&&wy(e,n)):(a&&wy(e,n),o&&Sy(e,n))),S&&e.setLineDash([])}function Oy(e,t,n){var i=t.__image=lo(n.image,t.__image,t,t.onload);if(i&&uo(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(i,c,u,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){c=n.sx,u=n.sy;var h=a-c,d=s-u;e.drawImage(i,c,u,h,d,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function My(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||Qn["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=vy(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(by(n)&&e.strokeText(r,n.x,n.y),xy(n)&&e.fillText(r,n.x,n.y)):(xy(n)&&e.fillText(r,n.x,n.y),by(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var Ty=["shadowBlur","shadowOffsetX","shadowOffsetY"],Dy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Iy(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){Fy(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?To.opacity:a}(i||t.blend!==n.blend)&&(o||(Fy(e,r),o=!0),e.globalCompositeOperation=t.blend||To.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Cb])if(this._disposed)r_(this.id);else{var i,r,o;if(Object(s["A"])(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[Cb]=!0,!this._model||t){var a=new ed(this._api),l=this._theme,c=this._model=new Fh;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,a)}this._model.setOption(e,{replaceMerge:r},l_);var u={seriesTransition:o,optionChanged:!0};if(n)this[kb]={silent:i,updateParams:u},this[Cb]=!1,this.getZr().wakeUp();else{try{Nb(this),zb.update.call(this,null,u)}catch(h){throw this[kb]=null,this[Cb]=!1,h}this._ssr||this._zr.flush(),this[kb]=null,this[Cb]=!1,Vb.call(this,i),Hb.call(this,i)}}},t.prototype.setTheme=function(){Ah("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(s["k"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;Object(s["k"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(s["k"])(i,(function(e){e.group.ignore=!1})),o}r_(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(p_[n]){var a=o,l=o,c=-o,u=-o,h=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(s["k"])(d_,(function(o,d){if(o.group===n){var p=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(s["d"])(e)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),l=i(f.top,l),c=r(f.right,c),u=r(f.bottom,u),h.push({dom:p,left:f.left,top:f.top})}})),a*=d,l*=d,c*=d,u*=d;var p=c-a,f=u-l,g=Qn["d"].createCanvas(),m=Ii(g,{renderer:t?"svg":"canvas"});if(m.resize({width:p,height:f}),t){var v="";return Object(s["k"])(h,(function(e){var t=e.left-a,n=e.top-l;v+=''+e.dom+""})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new as({shape:{x:0,y:0,width:p,height:f},style:{fill:e.connectedBackgroundColor}})),Object(s["k"])(h,(function(e){var t=new Za({style:{x:e.left*d-a,y:e.top*d-l,image:e.dom}});m.add(t)})),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}r_(this.id)},t.prototype.convertToPixel=function(e,t){return $b(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return $b(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=Er(i,e);return Object(s["k"])(r,(function(e,i){i.indexOf("Models")>=0&&Object(s["k"])(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}r_(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=Er(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Bv(o,a,t):Fv(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(s["k"])(i_,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&Gv(o,(function(e){var t=ks(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return i=Object(s["m"])({},t.eventData),!0}),!0),i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&r.getComponent(l,c),h=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:h},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(s["k"])(a_,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(s["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),qv(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?r_(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)r_(this.id);else{this._disposed=!0;var e=this.getDom();e&&Rr(this.getDom(),g_,"");var t=this,n=t._api,i=t._model;Object(s["k"])(t._componentsViews,(function(e){e.dispose(i,n)})),Object(s["k"])(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete d_[t.id]}},t.prototype.resize=function(e){if(!this[Cb])if(this._disposed)r_(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[kb]&&(null==i&&(i=this[kb].silent),n=!0,this[kb]=null),this[Cb]=!0;try{n&&Nb(this),zb.update.call(this,{type:"resize",animation:Object(s["m"])({duration:0},e&&e.animation)})}catch(r){throw this[Cb]=!1,r}this[Cb]=!1,Vb.call(this,i),Hb.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)r_(this.id);else if(Object(s["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),h_[e]){var n=h_[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?r_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(s["m"])({},e);return t.type=a_[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)r_(this.id);else if(Object(s["A"])(t)||(t={silent:!!t}),o_[e.type]&&this._model)if(this[Cb])this._pendingActions.push(e);else{var n=t.silent;Fb.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&a["a"].browser.weChat&&this._throttledZrFlush(),Vb.call(this,n),Hb.call(this,n)}},t.prototype.updateLabelLayout=function(){ib.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)r_(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);Ze(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(s["k"])(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;it.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function l(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return c(e,n,i,-1/0),!0}))}}function c(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Gl(e))return;if(e instanceof Ha&&Bl(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}Nb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),jb(e,!0),jb(e,!1),t.plan()},jb=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){T_.push(n);var o=Ov.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function I_(e,t){h_[e]=t}function A_(e,t,n){var i=ab("registerMap");i&&i(e,t,n)}var E_=wp;M_(gb,ov),M_(yb,sv),M_(yb,lv),M_(gb,zv),M_(yb,$v),M_(wb,tb),b_(Cd),__(cb,kd),I_("default",uv),C_({type:zs,event:zs,update:zs},s["L"]),C_({type:$s,event:$s,update:$s},s["L"]),C_({type:Bs,event:Bs,update:Bs},s["L"]),C_({type:Fs,event:Fs,update:Fs},s["L"]),C_({type:Vs,event:Vs,update:Vs},s["L"]),y_("light",Tv),y_("dark",Lv);var P_=[],L_={registerPreprocessor:b_,registerProcessor:__,registerPostInit:x_,registerPostUpdate:w_,registerUpdateLifecycle:S_,registerAction:C_,registerCoordinateSystem:k_,registerLayout:O_,registerVisual:M_,registerTransform:E_,registerLoading:I_,registerMap:A_,registerImpl:ob,PRIORITY:Sb,ComponentModel:Ku,ComponentView:Of,SeriesModel:Cf,ChartView:Um,registerComponentModel:function(e){Ku.registerClass(e)},registerComponentView:function(e){Of.registerClass(e)},registerSeriesModel:function(e){Cf.registerClass(e)},registerChartView:function(e){Um.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ku.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ai(e,t)}};function N_(e){Object(s["t"])(e)?Object(s["k"])(e,(function(e){N_(e)})):Object(s["r"])(P_,e)>=0||(P_.push(e),Object(s["w"])(e)&&(e={install:e}),e.install(L_))}var j_=2*Math.PI,R_=va.CMD,z_=["top","right","bottom","left"];function $_(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function B_(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var u=a*n+e,h=s*n+t;if(Math.abs(i-r)%j_<1e-4)return l[0]=u,l[1]=h,c-n;if(o){var d=i;i=wa(r),r=wa(d)}else i=wa(i),r=wa(r);i>r&&(r+=j_);var p=Math.atan2(s,a);if(p<0&&(p+=j_),p>=i&&p<=r||p+j_>=i&&p+j_<=r)return l[0]=u,l[1]=h,c-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,m=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=(f-a)*(f-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y0){t=t/180*Math.PI,G_.fromArray(e[0]),U_.fromArray(e[1]),Y_.fromArray(e[2]),be.sub(X_,G_,U_),be.sub(K_,Y_,U_);var n=X_.len(),i=K_.len();if(!(n<.001||i<.001)){X_.scale(1/n),K_.scale(1/i);var r=X_.dot(K_),o=Math.cos(t);if(o1&&be.copy(Q_,Y_),Q_.toArray(e[1])}}}}function tx(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,G_.fromArray(e[0]),U_.fromArray(e[1]),Y_.fromArray(e[2]),be.sub(X_,U_,G_),be.sub(K_,Y_,U_);var i=X_.len(),r=K_.len();if(!(i<.001||r<.001)){X_.scale(1/i),K_.scale(1/r);var o=X_.dot(t),a=Math.cos(n);if(o=l)be.copy(Q_,Y_);else{Q_.scaleAndAdd(K_,s/Math.tan(Math.PI/2-u));var h=Y_.x!==U_.x?(Q_.x-U_.x)/(Y_.x-U_.x):(Q_.y-U_.y)/(Y_.y-U_.y);if(isNaN(h))return;h<0?be.copy(Q_,U_):h>1&&be.copy(Q_,Y_)}Q_.toArray(e[1])}}}}function nx(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;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?e.useStyle(s):o.style=s}function ix(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=w(i[0],i[1]),o=w(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=k([],i[1],i[0],a/r),l=k([],i[1],i[2],a/o),c=k([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u0&&o&&w(-h/a,0,a);var m,v,y=e[0],b=e[a-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),x(m,v,1),x(v,m,-1),_(),m<0&&C(-m),v<0&&C(v),c}function _(){m=y.rect[t]-i,v=r-b.rect[t]-b.rect[n]}function x(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(c=!0);for(var o=i;o0)for(l=0;l0;l--){d=o[l-1]*h;w(-d,l,a)}}}function C(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),e-=n,e<=0)return}}function lx(e,t,n,i){return sx(e,"x","width",t,n,i)}function cx(e,t,n,i){return sx(e,"y","height",t,n,i)}function ux(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new De(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r=0&&n.attr(r.oldLayoutSelect),Object(s["r"])(h,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Wl(n,c,t,l)}else if(n.attr(c),!dc(n).valueAnimation){var d=Object(s["P"])(n.style.opacity,1);n.style.opacity=0,ql(n,{style:{opacity:d}},t,l)}if(r.oldLayout=c,n.states.select){var p=r.oldLayoutSelect={};vx(p,c,yx),vx(p,n.states.select,yx)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};vx(f,c,yx),vx(f,n.states.emphasis,yx)}fc(n,l,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=mx(i),o=r.oldLayout;var g={points:i.shape.points};o?(i.attr({shape:o}),Wl(i,{shape:g},t)):(i.setShape(g),i.style.strokePercent=0,ql(i,{style:{strokePercent:1}},t)),r.oldLayout=g}},e}(),_x=bx,xx=Ir();function wx(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=xx(t).labelManager;i||(i=xx(t).labelManager=new _x),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=xx(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function Sx(e,t,n){var i=Qn["d"].createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}N_(wx);var Cx=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||jn,"string"===typeof t?r=Sx(t,n,i):s["A"](t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(s["j"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return c(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Sx("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new De(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new De(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,c=0;c=a)}}for(var u=this.__startIndex;u15)break}}n.prevElClipPaths&&c.restore()};if(u)if(0===u.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x0&&e>i[0]){for(s=0;se)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i0?Tx:0),this._needsManuallyCompositing),u.__builtin__||s["G"]("ZLevel "+c+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),i.__dirty&Je&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,s["k"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?s["I"](n[e],t,!0):n[e]=t;for(var i=0;i=zx:-l>=zx),d=l>0?l%zx:l%zx+zx,p=!1;p=!!h||!Object(Bt["j"])(u)&&d>=Rx===!!c;var f=e+n*jx(o),g=t+i*Nx(o);this._start&&this._add("M",f,g);var m=Math.round(r*$x);if(h){var v=1/this._p,y=(c?1:-1)*(zx-v);this._add("A",n,i,m,1,+c,e+n*jx(o+y),t+i*Nx(o+y)),v>.01&&this._add("A",n,i,m,0,+c,f,g)}else{var b=e+n*jx(a),_=t+i*Nx(a);this._add("A",n,i,m,+p,+c,b,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var c=[],u=this._p,h=1;h"}function nw(e){return""}function iw(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs,a=e.text;return tw(r,o)+("style"!==r?G(a):a||"")+(t?""+n+Object(s["H"])(t,(function(e){return i(e)})).join(n)+n:"")+nw(r)}return i(e)}function rw(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=Object(s["H"])(Object(s["F"])(e),(function(t){return t+r+Object(s["H"])(Object(s["F"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),l=Object(s["H"])(Object(s["F"])(t),(function(e){return"@keyframes "+e+r+Object(s["H"])(Object(s["F"])(t[e]),(function(n){return n+r+Object(s["H"])(Object(s["F"])(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||l?[""].join(i):""}function ow(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function aw(e,t,n,i){return ew("svg","root",{width:e,height:t,xmlns:Xx,"xmlns:xlink":Kx,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var sw={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"},lw="transform-origin";function cw(e,t,n){var i=Object(s["m"])({},e.shape);Object(s["m"])(i,t),e.buildPath(n,i);var r=new Fx;return r.reset(Object(Bt["f"])(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function uw(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[lw]=n+"px "+i+"px")}var hw={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dw(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function pw(e,t,n){var i,r,o=e.shape.paths,a={};if(Object(s["k"])(o,(function(e){var t=ow(n.zrId);t.animation=!0,gw(e,{},t,!0);var o=t.cssAnims,l=t.cssNodes,c=Object(s["F"])(o),u=c.length;if(u){r=c[u-1];var h=o[r];for(var d in h){var p=h[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var f in l){var g=l[f].animation;g.indexOf(r)>=0&&(i=g)}}})),i){t.d=!1;var l=dw(a,n);return i.replace(r,l)}}function fw(e){return Object(s["C"])(e)?sw[e]?"cubic-bezier("+sw[e]+")":jt(e)?e:"":""}function gw(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof qg){var l=pw(e,t,n);if(l)a.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u0})).length){var I=dw(h,n);return I+" "+r[0]+" both"}}for(var v in c){l=m(c[v]);l&&a.push(l)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}var mw=Math.round;function vw(e){return e&&Object(s["C"])(e.src)}function yw(e){return e&&Object(s["w"])(e.toDataURL)}function bw(e,t,n,i){Yx((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(Bt["k"])(o)?Pw(t,e,r,i):a&&Object(Bt["n"])(o)?Lw(n,e,r,i):e[r]=o}),t,n,!1),Ew(n,e,i)}function _w(e){return Object(Bt["j"])(e[0]-1)&&Object(Bt["j"])(e[1])&&Object(Bt["j"])(e[2])&&Object(Bt["j"])(e[3]-1)}function xw(e){return Object(Bt["j"])(e[4])&&Object(Bt["j"])(e[5])}function ww(e,t,n){if(t&&(!xw(t)||!_w(t))){var i=n?10:1e4;e.transform=_w(t)?"translate("+mw(t[4]*i)/i+" "+mw(t[5]*i)/i+")":Object(Bt["e"])(t)}}function Sw(e,t,n){for(var i=e.points,r=[],o=0;oc?(a=null==n[d+1]?null:n[d+1].elm,Zw(e,a,n,l,d)):Jw(e,t,s,c))}function tS(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(Qw(e,t),Gw(t.text)?Uw(i)&&Uw(r)?i!==r&&eS(n,i,r):Uw(r)?(Uw(e.text)&&Vw(n,""),Zw(n,null,r,0,r.length-1)):Uw(i)?Jw(n,i,0,i.length-1):Uw(e.text)&&Vw(n,""):e.text!==t.text&&(Uw(i)&&Jw(n,i,0,i.length-1),Vw(n,t.text)))}function nS(e,t){if(Xw(e,t))tS(e,t);else{var n=e.elm,i=Bw(n);Kw(t),null!==i&&(Rw(i,t.elm,Fw(n)),Jw(i,[e],0,0))}return t}var iS=0,rS=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=oS("refreshHover"),this.configLayer=oS("configLayer"),this.storage=t,this._opts=n=Object(s["m"])({},n),this.root=e,this._id="zr"+iS++,this._oldVNode=aw(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Qx("svg");Qw(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",nS(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Aw(e,ow(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=ow(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress;var o=[],a=this._bgVNode=aS(n,i,this._backgroundColor,r);a&&o.push(a);var l=e.compress?null:this._mainVNode=ew("g","main",{},[]);this._paintList(t,r,l?l.children:o),l&&o.push(l);var c=Object(s["H"])(Object(s["F"])(r.defs),(function(e){return r.defs[e]}));if(c.length&&o.push(ew("defs","defs",{},c)),e.animation){var u=rw(r.cssNodes,r.cssAnims,{newline:!0});if(u){var h=ew("style","stl",{},[],u);o.push(h)}}return aw(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},iw(this.renderToVNode({animation:Object(s["P"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(s["P"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,c=0;c=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var m=f+1;m1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),i[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var d=0;d1)for(var a=0;a30}var MS,TS,DS,IS,AS,ES,PS,LS=s["A"],NS=s["H"],jS="undefined"===typeof Int32Array?Array:Int32Array,RS="e\0\0",zS=-1,$S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BS=["_approximateExtent"],FS=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;SS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},l=!1,c={},u=0;u=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===th;if(s&&!i.pure)for(var l=[],c=e;c0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),s["t"](r)?r=r.slice():LS(r)&&(r=s["m"]({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,LS(t)?s["m"](i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){LS(e)?s["m"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?s["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Os(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){s["k"](this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:NS(this.dimensions,this._getDimInfo,this),this.hostModel)),AS(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];s["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(s["S"](arguments)))})},e.internalField=function(){MS=function(e){var t=e._invertedIndicesMap;s["k"](t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new jS(o.categories.length);for(var s=0;s1&&(s+="__ec__"+c),i[t]=s}}}(),e}(),VS=FS;function HS(e,t){Pd(e)||(e=Nd(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=Object(s["f"])(),o=[],a=qS(e,n,i,t.dimensionsCount),l=t.canOmitUnusedDimensions&&OS(a),c=i===e.dimensionsDefine,u=c?kS(e):CS(i),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,a));for(var d=Object(s["f"])(h),p=new Ip(a),f=0;f0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function qS(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Object(s["k"])(t,(function(e){var t;Object(s["A"])(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function GS(e,t,n){if(n||t.hasKey(e)){var i=0;while(t.hasKey(e+i))i++;e+=i}return t.set(e,!0),e}var US=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(s["f"])(),this.categoryAxisMap=Object(s["f"])(),this.coordSysName=e}return e}();function YS(e){var t=e.get("coordinateSystem"),n=new US(t),i=XS[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var XS={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",Lr).models[0],o=e.getReferringComponents("yAxis",Lr).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),KS(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),KS(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",Lr).models[0];t.coordSysDims=["single"],n.set("single",r),KS(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",Lr).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),KS(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),KS(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(s["k"])(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),KS(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function KS(e){return"category"===e.get("type")}function ZS(e,t,n){n=n||{};var i,r,o,a=n.byIndex,l=n.stackedCoordDimension;JS(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var c,u,h,d,p=!(!e||!e.get("stack"));if(Object(s["k"])(i,(function(e,t){Object(s["C"])(e)&&(i[t]=e={name:e}),p&&!e.isExtraCoord&&(a||c||!e.ordinalMeta||(c=e),u||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(u=e))})),!u||a||c||(a=!0),u){h="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var f=u.coordDim,g=u.type,m=0;Object(s["k"])(i,(function(e){e.coordDim===f&&m++}));var v={name:h,coordDim:f,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,g),y.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function JS(e){return!SS(e.schema)}function QS(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function eC(e,t){return QS(e,t)?e.getCalculationInfo("stackResultDimension"):t}function tC(e,t){var n,i=e.get("coordinateSystem"),r=Uh.get(i);return t&&t.coordSysDims&&(n=s["H"](t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=mS(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function nC(e,t,n){var i,r;return n&&s["k"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function iC(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=Nd(e)):(i=r.getSource(),o=i.sourceFormat===th);var a=YS(t),l=tC(t,a),c=n.useEncodeDefaulter,u=s["w"](c)?c:c?s["h"](dh,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=HS(i,h),p=nC(d.dimensions,n.createInvertedIndices,a),f=o?null:r.getSharedDataStore(d),g=ZS(t,{schema:d,store:f}),m=new VS(d,t);m.setCalculationInfo(g);var v=null!=p&&rC(i)?function(e,t,n,i){return i===p?n:this.defaultDimValueGetter(e,t,n,i)}:null;return m.hasItemOption=!1,m.initData(o?i:f,null,v),m}function rC(e){if(e.sourceFormat===th){var t=oC(e.data||[]);return!s["t"](hr(t))}}function oC(e){var t=0;while(t-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Cf),lC=sC;function cC(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=ep(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(t[o])}return i.join(" ")}var hC=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return o(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=ay(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=dC,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ul(this.childAt(0))},t.prototype.downplay=function(){hl(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):Wl(h,d,a,n),Kl(h)}if(this._updateCommon(e,n,s,i,r),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ql(h,d,a,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,l,c,u,h,d,p,f,g=this.childAt(0),m=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,l=i.selectItemStyle,c=i.focus,u=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,h=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),l=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),c=y.get("focus"),u=y.get("blurScope"),h=y.get("disabled"),d=nc(v),p=y.getShallow("scale"),f=v.getShallow("cursor")}var b=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var _=ly(e.getItemVisual(t,"symbolOffset"),n);_&&(g.x=_[0],g.y=_[1]),f&&g.attr("cursor",f);var x=e.getItemVisual(t,"style"),w=x.fill;if(g instanceof Za){var S=g.style;g.useStyle(Object(s["m"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else g.__isEmptyBrush?g.useStyle(Object(s["m"])({},x)):g.useStyle(x),g.style.decal=null,g.setColor(w,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var C=e.getItemVisual(t,"liftZ"),k=this._z2;null!=C?null==k&&(this._z2=g.z2,g.z2+=C):null!=k&&(g.z2=k,this._z2=null);var O=r&&r.useNameLabel;function M(t){return O?e.getName(t):cC(e,t)}tc(g,d,{labelFetcher:m,labelDataIndex:t,defaultText:M,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=g.ensureState("emphasis");T.style=o,g.ensureState("select").style=l,g.ensureState("blur").style=a;var D=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*D,T.scaleY=this._sizeY*D,this.setSymbolScale(1),Dl(this,c,u,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=ks(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ul(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ul(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return sy(e.getItemVisual(t,"symbolSize"))},t}(Ci);function dC(e,t){this.parent.drift(e,t)}var pC=hC;function fC(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function gC(e){return null==e||Object(s["A"])(e)||(e={isIgnore:e}),e||{}}function mC(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:nc(t),cursorStyle:t.get("cursor")}}var vC=function(){function e(e){this.group=new Ci,this._SymbolCtor=e||pC}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=gC(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=mC(e),l={disableAnimation:a},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=c(i);if(fC(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,h){var d=r.getItemGraphicEl(h),p=c(u);if(fC(e,p,u,t)){var f=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(e,u,s,l),d.setPosition(p);else{d.updateData(e,u,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Wl(d,m,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=mC(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=gC(n);for(var r=e.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function xC(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var wC="undefined"!==typeof Float32Array,SC=wC?Float32Array:Array;function CC(e){return Object(s["t"])(e)?wC?new Float32Array(e):e:new SC(e)}function kC(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function OC(e,t,n,i,r,o,a,s){for(var l=kC(e,t),c=[],u=[],h=[],d=[],p=[],f=[],g=[],m=bC(r,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b=r||g<0)break;if(DC(v,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var b=v-c,_=y-u;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=t[2*x],S=t[2*x+1];while(w===v&&S===y&&m=i||DC(w,S))p=v,f=y;else{O=w-c,M=S-u;var I=v-c,A=w-v,E=y-u,P=S-y,L=void 0,N=void 0;if("x"===s){L=Math.abs(I),N=Math.abs(A);var j=O>0?1:-1;p=v-j*L*a,f=y,T=v+j*N*a,D=y}else if("y"===s){L=Math.abs(E),N=Math.abs(P);var R=M>0?1:-1;p=v,f=y-R*L*a,T=v,D=y+R*N*a}else L=Math.sqrt(I*I+E*E),N=Math.sqrt(A*A+P*P),k=N/(N+L),p=v-O*a*(1-k),f=y-M*a*(1-k),T=v+O*a*k,D=y+M*a*k,T=MC(T,TC(w,v)),D=MC(D,TC(S,y)),T=TC(T,MC(w,v)),D=TC(D,MC(S,y)),O=T-v,M=D-y,p=v-O*L/N,f=y-M*L/N,p=MC(p,TC(c,v)),f=MC(f,TC(u,y)),p=TC(p,MC(c,v)),f=TC(f,MC(u,y)),O=v-p,M=y-f,T=v+O*N/L,D=y+M*N/L}e.bezierCurveTo(h,d,p,f,v,y),h=T,d=D}else e.lineTo(v,y)}c=v,u=y,g+=o}return m}var AC=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),EC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new AC},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!DC(n[2*r-2],n[2*r-1]))break;for(;i=0){var y=s?(d-i)*v+i:(h-n)*v+n;return s?[e,y]:[y,e]}n=h,i=d;break;case a.C:h=o[c++],d=o[c++],p=o[c++],f=o[c++],g=o[c++],m=o[c++];var b=s?St(n,h,p,g,e,l):St(i,d,f,m,e,l);if(b>0)for(var _=0;_=0){y=s?xt(i,d,f,m,x):xt(n,h,p,g,x);return s?[e,y]:[y,e]}}n=g,i=m;break}}},t}(Ha),PC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(AC),LC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return o(t,e),t.prototype.getDefaultShape=function(){return new PC},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!DC(n[2*o-2],n[2*o-1]))break;for(;rt){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function GC(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var l=e.getDimensionInfo(i[a].dimension);if(r=l&&l.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var c=t.getAxis(r),u=s["H"](o.stops,(function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}})),h=u.length,d=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=qC(u,"x"===r?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?d[1]?d[1]:u[h-1].color:d[0]?d[0]:u[0].color;var g=10,m=p[0].coord-g,v=p[f-1].coord+g,y=v-m;if(y<.001)return"transparent";s["k"](p,(function(e){e.offset=(e.coord-m)/y})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var b=new Xg(0,0,0,0,p,!0);return b[r]=m,b[r+"2"]=v,b}}}function UC(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!YC(o,t))){var a=t.mapDimension(o.dim),l={};return s["k"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);l[t]=1})),function(e){return!l.hasOwnProperty(t.get(a,e))}}}}function YC(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}function XC(e,t){return isNaN(e)||isNaN(t)}function KC(e){for(var t=e.length/2;t>0;t--)if(!XC(e[2*t-2],e[2*t-1]))break;return t-1}function ZC(e,t){return[e[2*t],e[2*t+1]]}function JC(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c=t||i>=t&&r<=t){l=c;break}s=c,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function QC(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=f.getState("emphasis").style;N.lineWidth=+f.style.lineWidth+1}ks(f).seriesIndex=e.seriesIndex,Dl(f,E,P,L);var j=VC(e.get("smooth")),R=e.get("smoothMonotone");if(f.setShape({smooth:j,smoothMonotone:R,connectNulls:S}),g){var z=a.getCalculationInfo("stackedOnSeries"),$=0;g.useStyle(s["i"](c.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),z&&($=VC(z.get("smooth"))),g.setShape({smooth:j,stackedOnSmooth:$,smoothMonotone:R,connectNulls:S}),Pl(g,e,"areaStyle"),ks(g).seriesIndex=e.seriesIndex,Dl(g,E,P,L)}var B=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=M,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,f),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,t){ks(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Dr(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,h=e.get("z")||0;s=new pC(r,o),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Um.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Dr(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 Um.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;tl(this._polyline,e),t&&tl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new EC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new LC({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var l=e.hostModel,c=l.get("animationDuration");s["w"](c)&&(c=c(null));var u=l.get("animationDelay")||0,h=s["w"](u)?u(null):u;e.eachItemGraphicEl((function(e,o){var l=e;if(l){var d=[e.x,e.y],p=void 0,f=void 0,g=void 0;if(n)if(r){var m=n,v=t.pointToCoord(d);i?(p=m.startAngle,f=m.endAngle,g=-v[1]/180*Math.PI):(p=m.r0,f=m.r,g=v[0])}else{var y=n;i?(p=y.x,f=y.x+y.width,g=e.x):(p=y.y+y.height,f=y.y,g=e.y)}var b=f===p?0:(g-p)/(f-p);a&&(b=1-b);var _=s["w"](u)?u(o):c*b+h,x=l.getSymbolPath(),w=x.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(QC(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Cs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=KC(a);l>=0&&(tc(o,nc(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?uC(r,n):cC(r,e)},enableTextSetter:!0},tk(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),x=g?"x":"y",w=JC(c,y,x),S=w.range,C=S[1]-S[0],k=void 0;if(C>=1){if(C>1&&!h){var O=ZC(c,S[0]);s.attr({x:O[0]+b,y:O[1]+_}),r&&(k=u.getRawValue(S[0]))}else{O=l.getPointOn(y,x);O&&s.attr({x:O[0]+b,y:O[1]+_});var M=u.getRawValue(S[0]),T=u.getRawValue(S[1]);r&&(k=Fr(n,d,M,T,w.t))}i.lastFrameIndex=S[0]}else{var D=1===e||i.lastFrameIndex>0?S[0]:0;O=ZC(c,D);r&&(k=u.getRawValue(D)),s.attr({x:O[0]+b,y:O[1]+_})}if(r){var I=dc(s);"function"===typeof I.setLabelText&&I.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,c=e.hostModel,u=OC(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(h=WC(u.current,n,r,a),d=WC(u.stackedOnCurrent,n,r,a),p=WC(u.next,n,r,a),f=WC(u.stackedOnNext,n,r,a)),FC(h,p)>3e3||l&&FC(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:p}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),Wl(s,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Wl(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;yt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var l=o.getBaseAxis(),c=o.getOtherAxis(l),u=l.getExtent(),h=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(c.dim),1/p));var f=void 0;Object(s["C"])(r)?f=ok[r]:Object(s["w"])(r)&&(f=r),f&&e.setData(i.downSample(i.mapDimension(c.dim),1/p,f,ak))}}}}}function lk(e){e.registerChartView(ik),e.registerSeriesModel(lC),e.registerLayout(rk("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sk("line"))}var ck="__ec_stack_";function uk(e){return e.get("stack")||ck+e.seriesIndex}function hk(e){return e.dim+e.index}function dk(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o0&&(o=null===o?l:Math.min(o,l))}n[i]=o}}return n}function gk(e){var t=fk(e),n=[];return Object(s["k"])(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],c=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=l?c/h*l:c}else{var d=e.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=ji(e.get("barWidth"),i),f=ji(e.get("barMaxWidth"),i),g=ji(e.get("barMinWidth")||(xk(e)?.5:1),i),m=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:hk(o),stackId:uk(e)})})),mk(n)}function mk(e){var t={};Object(s["k"])(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=e.barMaxWidth;c&&(a[s].maxWidth=c);var u=e.barMinWidth;u&&(a[s].minWidth=u);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(s["k"])(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(s["F"])(i).length;o=Math.max(35-4*a,15)+"%"}var l=ji(o,r),c=ji(e.gap,1),u=e.remainedWidth,h=e.autoWidthCount,d=(u-l)/(h+(h-1)*c);d=Math.max(d,0),Object(s["k"])(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+c*i,h--}else{var i=d;t&&ti&&(i=n),i!==d&&(e.width=i,u-=i+c*i,h--)}})),d=(u-l)/(h+(h-1)*c),d=Math.max(d,0);var p,f=0;Object(s["k"])(i,(function(e,t){e.width||(e.width=d),p=e,f+=e.width*(1+c)})),p&&(f-=p.width*c);var g=-f/2;Object(s["k"])(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:g,width:e.width},g+=e.width*(1+c)}))})),n}function vk(e,t,n){if(e&&t){var i=e[hk(t)];return null!=i&&null!=n?i[uk(n)]:i}}function yk(e,t){var n=pk(e,t),i=gk(n);Object(s["k"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=uk(e),a=i[hk(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function bk(e){return{seriesType:e,plan:Mf(),reset:function(e){if(_k(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),c=t.getCalculationInfo("stackResultDimension"),u=QS(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=wk(i,r),p=xk(e),f=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&CC(3*r),c=p&&s&&CC(3*r),y=p&&CC(r),b=n.master.getRect(),_=h?b.width:b.height,x=t.getStore(),w=0;while(null!=(i=e.next())){var S=x.get(u?g:o,i),C=x.get(a,i),k=d,O=void 0;u&&(O=+S-x.get(o,i));var M=void 0,T=void 0,D=void 0,I=void 0;if(h){var A=n.dataToPoint([S,C]);if(u){var E=n.dataToPoint([O,C]);k=E[0]}M=k,T=A[1]+v,D=A[0]-k,I=m,Math.abs(D)a){c=(d+l)/2;break}1===h&&(u=p-i[0].tickValue)}null==c&&(l?l&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),l=a.getLayout("offset"),c=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=l+c/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Cf);Cf.registerClass(Sk);var Ck=Sk,kk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(){return aC(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ec(Ck.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Ck),Ok=kk,Mk=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Tk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return o(t,e),t.prototype.getDefaultShape=function(){return new Mk},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=2*Math.PI,d=u?c-lMath.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),e.setTextConfig({rotation:h})}}function Ek(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Pk(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Lk(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(s["t"])(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(s["H"])(i,(function(e){return si(e,r)}))}}var Nk=Math.max,jk=Math.min;function Rk(e,t){var n=e.getArea&&e.getArea();if(zC(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var zk=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){zm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=Fk(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,p=Rk(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,_=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(e){var t=Uk[l.type](a,e),n=rO(l,r,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=Uk[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&Gk[l.type](i)){var s=!1;d&&(s=$k[l.type](p,i));var m=Bk[l.type](e,a,t,i,r,u,c.model,!1,f);h&&(m.forceLabelAnimation=!0),Kk(m,a,t,n,i,e,r,"polar"===l.type),_?m.attr({shape:i}):h?Vk(h,u,m,i,t,r,!1,!1):ql(m,{shape:i},e,t),a.setItemGraphicEl(t,m),o.add(m),m.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=Uk[l.type](a,t,i);if(g){var C=void 0;0===b.length?C=w(n):(C=b[n],C.useStyle(m.getItemStyle()),"cartesian2d"===l.type?C.setShape("r",v):C.setShape("cornerRadius",v),y[t]=C);var k=Uk[l.type](a,t),O=iO(r,k,l);Wl(C,{shape:O},u,t)}var M=s.getItemGraphicEl(n);if(a.hasValue(t)&&Gk[l.type](S)){var T=!1;if(d&&(T=$k[l.type](p,S),T&&o.remove(M)),M?Kl(M):M=Bk[l.type](e,a,t,S,r,u,c.model,!!M,f),h&&(M.forceLabelAnimation=!0),x){var D=M.getTextContent();if(D){var I=dc(D);null!=I.prevValue&&(I.prevValue=I.value)}}else Kk(M,a,t,i,S,e,r,"polar"===l.type);_?M.attr({shape:S}):h?Vk(h,u,M,S,t,r,!0,x):Wl(M,{shape:S},e,t,null),a.setItemGraphicEl(t,M),M.ignore=T,o.add(M)}else o.remove(M)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Xl(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Ci);S.removeAll();for(var C=0;Co)return!0;o=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Xl(t,e,ks(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Um),$k={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=Nk(t.x,e.x),s=jk(t.x+t.width,r),l=Nk(t.y,e.y),c=jk(t.y+t.height,o),u=sr?s:a,t.y=h&&l>o?c:l,t.width=u?0:s-a,t.height=h?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=jk(t.r,e.r),o=Nk(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},Bk={cartesian2d:function(e,t,n,i,r,o,a,l,c){var u=new as({shape:Object(s["m"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var h=u.shape,d=r?"height":"width";h[d]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var c=!r&&l?Dk:_g,u=new c({shape:i,z2:1});u.name="item";var h=Xk(r);if(u.calculateTextPosition=Ik(h,{isRoundCap:c===Dk}),o){var d=u.shape,p=r?"r":"endAngle",f={};d[p]=r?i.r0:i.startAngle,f[p]=i[p],(s?Wl:ql)(u,{shape:f},o)}return u}};function Fk(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Vk(e,t,n,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Wl:ql)(n,{shape:l},t,r,null);var u=t?e.baseAxis.model:null;(a?Wl:ql)(n,{shape:c},u,r)}function Hk(e,t){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Yk(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function Xk(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function Kk(e,t,n,i,r,o,a,l){var c=t.getItemVisual(n,"style");if(l){if(!o.get("roundCap")){var u=e.shape,h=Lk(i.getModel("itemStyle"),u,!0);Object(s["m"])(u,h),e.setShape(u)}}else{var d=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var p=i.getShallow("cursor");p&&e.attr("cursor",p);var f=l?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",g=nc(i);tc(e,g,{labelFetcher:o,labelDataIndex:n,defaultText:cC(o.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(l&&m){var v=i.get(["label","position"]);e.textConfig.inside="middle"===v||null,Ak(e,"outside"===v?f:v,Xk(a),i.get(["label","rotate"]))}pc(m,g,o.getRawValue(n),(function(e){return uC(t,e)}));var y=i.getModel(["emphasis"]);Dl(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Pl(e,i),Yk(r)&&(e.style.fill="none",e.style.stroke="none",Object(s["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function Zk(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var Jk=function(){function e(){}return e}(),Qk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return o(t,e),t.prototype.getDefaultShape=function(){return new Jk},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function nO(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,h=o.length/3;u=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function iO(e,t,n){if(zC(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function rO(e,t,n){var i="polar"===e.type?_g:as;return new i({shape:iO(t,n,e),silent:!0,z2:0})}var oO=zk;function aO(e){e.registerChartView(oO),e.registerSeriesModel(Ok),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,s["h"](yk,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bk("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sk("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var sO=2*Math.PI,lO=Math.PI/180;function cO(e,t){return Bu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uO(e,t){var n=cO(e,t),i=e.get("center"),r=e.get("radius");s["t"](r)||(r=[0,r]);var o,a,l=ji(n.width,t.getWidth()),c=ji(n.height,t.getHeight()),u=Math.min(l,c),h=ji(r[0],u/2),d=ji(r[1],u/2),p=e.coordinateSystem;if(p){var f=p.dataToPoint(i);o=f[0]||0,a=f[1]||0}else s["t"](i)||(i=[i,i]),o=ji(i[0],l)+n.x,a=ji(i[1],c)+n.y;return{cx:o,cy:a,r0:h,r:d}}function hO(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=cO(e,n),o=uO(e,n),a=o.cx,s=o.cy,l=o.r,c=o.r0,u=-e.get("startAngle")*lO,h=e.get("minAngle")*lO,d=0;t.each(i,(function(e){!isNaN(e)&&d++}));var p=t.getSum(i),f=Math.PI/(p||d)*2,g=e.get("clockwise"),m=e.get("roseType"),v=e.get("stillShowZeroSum"),y=t.getDataExtent(i);y[0]=0;var b=sO,_=0,x=u,w=g?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:c,r:m?NaN:l});else{i="area"!==m?0===p&&v?f:e*f:sO/d,in?a:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,f=Math.abs(h)e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function vO(e){return"center"===e.position}function yO(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*pO,l=i.getLayout("viewRect"),c=i.getLayout("r"),u=l.width,h=l.x,d=l.y,p=l.height;function f(e){e.ignore=!0}function g(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var l=i.getItemGraphicEl(e),d=l.shape,p=l.getTextContent(),m=l.getTextGuideLine(),v=i.getItemModel(e),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=ji(y.get("edgeDistance"),u),S=y.get("bleedMargin"),C=v.getModel("labelLine"),k=C.get("length");k=ji(k,u);var O=C.get("length2");if(O=ji(O,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":E>0?"left":"right"}var F=Math.PI,V=0,H=y.get("rotate");if(Object(s["z"])(H))V=H*(F/180);else if("center"===b)V=0;else if("radial"===H||!0===H){var W=E<0?-A+F:-A;V=W}else if("tangential"===H&&"outside"!==b&&"outer"!==b){var q=Math.atan2(E,P);q<0&&(q=2*F+q);var G=P>0;G&&(q=F+q),V=q-F}if(o=!!V,p.x=M,p.y=T,p.rotation=V,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:I});var U=p.states.select;U&&(U.x+=p.x,U.y+=p.y)}else{var Y=p.getBoundingRect().clone();Y.applyTransform(p.getComputedTransform());var X=(p.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,r.push({label:p,labelLine:m,position:b,len:k,len2:O,minTurnAngle:C.get("minTurnAngle"),maxSurfaceAngle:C.get("maxSurfaceAngle"),surfaceNormal:new be(E,P),linePoints:D,textAlign:I,labelDistance:_,labelAlignTo:x,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:L})}})),!o&&e.get("avoidLabelOverlap")&&gO(r,t,n,c,u,p,h,d);for(var m=0;m0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=i.r0}},t.type="pie",t}(Um),xO=_O;function wO(e,t,n){t=Object(s["t"])(t)&&{coordDimensions:t}||Object(s["m"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=HS(i,t).dimensions,o=new VS(r,e);return o.initData(i,n),o}var SO=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),CO=SO,kO=Ir(),OO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new CO(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return wO(this,{coordDimensions:["value"],encodeDefaulter:s["h"](ph,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=kO(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=Vi(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=r[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){cr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Cf),MO=OO;function TO(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(Object(s["z"])(i)&&!isNaN(i)&&i<0)}))}}}function DO(e){e.registerChartView(xO),e.registerSeriesModel(MO),Hv("pie",e.registerAction),e.registerLayout(Object(s["h"])(hO,"pie")),e.registerProcessor(dO("pie")),e.registerProcessor(TO("pie"))}var IO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return aC(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Cf),AO=IO,EO=4,PO=function(){function e(){}return e}(),LO=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.getDefaultShape=function(){return new PO},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]=0;s--){var l=2*s,c=i[l]-o/2,u=i[l+1]-a/2;if(e>=c&&t>=u&&e<=c+o&&t<=u+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),jO=NO,RO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=rk("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new jO:new yC,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Um),zO=RO,$O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Ku),BO=$O,FO=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),VO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Lr).models[0]},t.type="cartesian2dAxis",t}(Ku);s["K"](VO,FO);var HO={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},WO=s["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},HO),qO=s["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},HO),GO=s["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},qO),UO=s["i"]({logBase:10},qO),YO={category:WO,value:qO,time:GO,log:UO},XO=0,KO=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++XO}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&Object(s["H"])(i,ZO);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(s["C"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(s["f"])(this.categories))},e}();function ZO(e){return Object(s["A"])(e)&&null!=e.value?e.value:e+""}var JO=KO,QO={value:1,category:1,time:1,log:1};function eM(e,t,n,i){Object(s["k"])(QO,(function(r,a){var l=Object(s["I"])(Object(s["I"])({},YO[a],!0),i,!0),c=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return o(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Hu(this),i=n?qu(e):{},r=t.getTheme();Object(s["I"])(e,r.get(a+"Axis")),Object(s["I"])(e,this.getDefaultOption()),e.type=tM(e),n&&Wu(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=JO.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=l,n}(n);e.registerComponentModel(c)})),e.registerSubTypeDefaulter(t+"Axis",tM)}function tM(e){return e.type||(e.data?"category":"value")}var nM=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();to(nM);var iM=nM;function rM(e){return"interval"===e.type||"log"===e.type}function oM(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=Zi(o/t,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=sM(a),l=r.niceTickExtent=[Ri(Math.ceil(e[0]/a)*a,s),Ri(Math.floor(e[1]/a)*a,s)];return cM(l,e),r}function aM(e){var t=Math.pow(10,Ki(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Ri(n*t)}function sM(e){return $i(e)+2}function lM(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function cM(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),lM(e,0,t),lM(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function uM(e,t){return e>=t[0]&&e<=t[1]}function hM(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function dM(e,t){return e*(t[1]-t[0])+t[0]}var pM=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new JO({})),Object(s["t"])(i)&&(i=new JO({categories:Object(s["H"])(i,(function(e){return Object(s["A"])(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(s["C"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),uM(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),hM(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(dM(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(iM);iM.registerClass(pM);var fM=pM,gM=Ri,mM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return o(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return uM(e,this._extent)},t.prototype.normalize=function(e){return hM(e,this._extent)},t.prototype.scale=function(e){return dM(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=sM(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:gM(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h>>1;e[r][1]n&&(this._approxInterval=n);var o=_M.length,a=Math.min(yM(_M,this._approxInterval,0,o),o-1);this._interval=_M[a][1],this._minLevelUnit=_M[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(s["z"])(e)?e:+Yi(e)},t.prototype.contain=function(e){return uM(this.parse(e),this._extent)},t.prototype.normalize=function(e){return hM(this.parse(e),this._extent)},t.prototype.scale=function(e){return dM(e,this._extent)},t.type="time",t}(vM),_M=[["second",qc],["minute",Gc],["hour",Uc],["quarter-day",6*Uc],["half-day",12*Uc],["day",1.2*Yc],["half-week",3.5*Yc],["week",7*Yc],["month",31*Yc],["quarter",95*Yc],["half-year",Xc/2],["year",Xc]];function xM(e,t,n,i){var r=Yi(t),o=Yi(n),a=function(e){return lu(r,e,i)===lu(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},h=function(){return u()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function wM(e,t){return e/=Yc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function SM(e){var t=30*Yc;return e/=t,e>6?6:e>3?3:e>2?2:1}function CM(e){return e/=Uc,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function kM(e,t){return e/=t?Gc:qc,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function OM(e){return Zi(e,!0)}function MM(e,t,n){var i=new Date(e);switch(nu(t)){case"year":case"month":i[vu(n)](0);case"day":i[yu(n)](1);case"hour":i[bu(n)](0);case"minute":i[_u(n)](0);case"second":i[xu(n)](0),i[wu(n)](0)}return i.getTime()}function TM(e,t,n,i){var r=1e4,o=eu,a=0;function l(e,t,n,r,o,a,s){var l=new Date(t),c=t,u=l[r]();while(c1&&0===c&&o.unshift({value:o[0].value-d})}}for(c=0;c=i[0]&&b<=i[1]&&d++)}var _=(i[1]-i[0])/t;if(d>1.5*_&&p>_/1.5)break;if(u.push(v),d>_||e===o[f])break}h=[]}}}var x=Object(s["n"])(Object(s["H"])(u,(function(e){return Object(s["n"])(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),w=[],S=x.length-1;for(f=0;f0)i*=10;var o=[Ri(LM(t[0]/i)*i),Ri(PM(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){AM.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=jM(e)/jM(this.base),uM(e,this._extent)},t.prototype.normalize=function(e){return e=jM(e)/jM(this.base),hM(e,this._extent)},t.prototype.scale=function(e){return e=dM(e,this._extent),NM(this.base,e)},t.type="log",t}(iM),zM=RM.prototype;function $M(e,t){return EM(e,$i(t))}zM.getMinorTicks=AM.getMinorTicks,zM.getLabel=AM.getLabel,iM.registerClass(RM);var BM=RM,FM=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&l>0&&!c&&(a=0),a<0&&l<0&&!u&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,c=!0),null!=p&&(l=p,u=!0),{min:a,max:l,minFixed:c,maxFixed:u,isBlank:h}},e.prototype.modifyDataMinMax=function(e,t){this[HM[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=VM[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),VM={min:"_determinedMin",max:"_determinedMax"},HM={min:"_dataMin",max:"_dataMax"};function WM(e,t,n){var i=e.rawExtentInfo;return i||(i=new FM(e,t,n),e.rawExtentInfo=i,i)}function qM(e,t){return null==t?null:Object(s["l"])(t)?NaN:e.parse(t)}function GM(e,t){var n=e.type,i=WM(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var l=pk("bar",a),c=!1;if(s["k"](l,(function(e){c=c||e.getBaseAxis()===t.axis})),c){var u=gk(l),h=UM(r,o,t,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function UM(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=vk(i,n.axis);if(void 0===a)return{min:e,max:t};var l=1/0;s["k"](a,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;s["k"](a,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,h=t-e,d=1-(l+c)/o,p=h/d-h;return t+=p*(c/u),e-=p*(l/u),{min:e,max:t}}function YM(e,t){var n=t,i=GM(e,n),r=i.extent,o=n.get("splitNumber");e instanceof BM&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function XM(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new fM({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new DM({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(iM.getClass(t)||vM)}}function KM(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function ZM(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):s["C"](t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):s["w"](t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(JM(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function JM(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function QM(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof fM?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=ZM(e),c=1;r>40&&(c=Math.ceil(r/40));for(var u=0;ue[1]&&(e[1]=i[1])}))}var oT=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return s["H"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),s["n"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),aT=oT,sT=["x","y"];function lT(e){return"interval"===e.type||"time"===e.type}var cT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=sT,t}return o(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(lT(e)&&lT(t)){var n=e.getExtent(),i=t.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,c=(o[1]-r[1])/s,u=r[0]-n[0]*l,h=r[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=me([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new De(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return O(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return O(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new De(n,i,r,o)},t}(aT),uT=cT,hT=Ir();function dT(e){return"category"===e.type?fT(e):vT(e)}function pT(e,t){return"category"===e.type?mT(e,t):{ticks:s["H"](e.scale.getTicks(),(function(e){return e.value}))}}function fT(e){var t=e.getLabelModel(),n=gT(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function gT(e,t){var n,i,r=yT(e,"labels"),o=tT(t),a=bT(r,o);return a||(s["w"](o)?n=kT(e,o):(i="auto"===o?xT(e):o,n=CT(e,i)),_T(r,o,{labels:n,labelCategoryInterval:i}))}function mT(e,t){var n,i,r=yT(e,"ticks"),o=tT(t),a=bT(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),s["w"](o))n=kT(e,o,!0);else if("auto"===o){var l=gT(e,e.getLabelModel());i=l.labelCategoryInterval,n=s["H"](l.labels,(function(e){return e.tickValue}))}else i=o,n=CT(e,i,!0);return _T(r,o,{ticks:n,tickCategoryInterval:i})}function vT(e){var t=e.scale.getTicks(),n=ZM(e);return{labels:s["H"](t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function yT(e,t){return hT(e)[t]||(hT(e)[t]=[])}function bT(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,m=ii(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/u,y=p/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=hT(e.model),x=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function ST(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function CT(e,t,n){var i=ZM(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],u=r.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=nT(e),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&c!==o[0]&&g(o[0]);for(var f=c;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function kT(e,t,n){var i=e.scale,r=ZM(e),o=[];return s["k"](i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var OT=[0,1],MT=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Fi(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),TT(n,i.count())),Ni(e,OT,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),TT(n,i.count()));var r=Ni(e,n,OT,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=pT(this,t),i=n.ticks,r=Object(s["H"])(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return DT(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=Object(s["H"])(n,(function(e){return Object(s["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return dT(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return wT(this)},e}();function TT(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function DT(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,l=e.getExtent();if(1===r)t[0].coord=l[0],o=t[1]={coord:l[1]};else{var c=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/c;Object(s["k"])(t,(function(e){e.coord-=u/2}));var h=e.scale.getExtent();a=1+h[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var d=l[0]>l[1];p(t[0].coord,l[0])&&(i?t[0].coord=l[0]:t.shift()),i&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]}),p(l[1],o.coord)&&(i?o.coord=l[1]:t.pop()),i&&p(o.coord,l[1])&&t.push({coord:l[1]})}function p(e,t){return e=Ri(e),t=Ri(t),d?e>t:et[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(IT),ET=AT;function PT(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],l=r.position,c=a?"onZero":l,u=r.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,g="x"===u?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===u?g[p[c]]:d[0],"x"===u?g[p[c]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=a?g[p[l]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),s["O"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===c?-y:y,o.z2=1,o}function LT(e){return"cartesian2d"===e.get("coordinateSystem")}function NT(e){var t={xAxisModel:null,yAxisModel:null};return s["k"](t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Lr).models[0];t[i]=o})),t}var jT=Math.log;function RT(e,t,n){var i=vM.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=GM(e,t),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===e.type){var d=jT(e.base);c=[jT(c[0])/d,jT(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var p=i.getExtent.call(e);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var f=i.getInterval.call(e),g=c[0],m=c[1];if(u&&h)f=(m-g)/a;else if(u){m=c[0]+f*a;while(mc[0]&&isFinite(g)&&isFinite(c[0]))f=aM(f),g=c[1]-f*a}else{var v=e.getTicks().length-1;v>a&&(f=aM(f));var y=f*a;m=Math.ceil(c[1]/f)*f,g=Ri(m-y),g<0&&c[0]>=0?(g=0,m=Ri(y)):m>0&&c[1]<=0&&(m=0,g=-Ri(y))}var b=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*b,m+f*_),i.setInterval.call(e,f),(b||_)&&i.setNiceExtent.call(e,g+f,m-f)}var zT=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sT,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Object(s["F"])(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],l=e[a],c=l.model,u=l.scale;rM(u)&&c.get("alignTicks")&&null==c.get("interval")?r.push(l):(YM(u,c),rM(u)&&(t=l))}r.length&&(t||(t=r.pop(),YM(t.scale,t.model)),Object(s["k"])(r,(function(e){RT(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};Object(s["k"])(n.x,(function(e){BT(n,"y",e,r)})),Object(s["k"])(n.y,(function(e){BT(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=Bu(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function l(){Object(s["k"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),VT(e,t?o.x:o.y)}))}l(),r&&(Object(s["k"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=QM(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),l()),Object(s["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(s["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Gi(o-WT)?(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}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),GT={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,l=[o[0],0],c=[o[1],0],u=l[0]>c[0];a&&(O(l,l,a),O(c,c,a));var h=Object(s["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Ng({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});_m(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var f=t.get(["axisLine","symbolSize"]);Object(s["C"])(p)&&(p=[p,p]),(Object(s["C"])(f)||Object(s["z"])(f))&&(f=[f,f]);var g=ly(t.get(["axisLine","symbolOffset"])||0,f),m=f[0],v=f[1];Object(s["k"])([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],(function(t,i){if("none"!==p[i]&&null!=p[i]){var r=ay(p[i],-m/2,-v/2,m,v,h.stroke,!0),o=t.r+t.offset,a=u?c:l;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=QT(n,i,t,e),o=tD(n,i,t,e);if(YT(t,o,r),eD(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=ax(Object(s["H"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));ux(a)}},axisName:function(e,t,n,i){var r=Object(s["O"])(e.axisName,t.get("name"));if(r){var o,a,l=t.get("nameLocation"),c=e.nameDirection,u=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===l?d[0]-p*h:"end"===l?d[1]+p*h:(d[0]+d[1])/2,ZT(l)?e.labelOffset+c*h:0],g=t.get("nameRotate");null!=g&&(g=g*WT/180),ZT(l)?o=qT.innerTextLayout(e.rotation,null!=g?g:e.rotation,c):(o=UT(e.rotation,l,g||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(s["O"])(e.nameTruncateMaxWidth,v.maxWidth,a),_=new Cs({x:f[0],y:f[1],rotation:o.rotation,silent:qT.isLabelSilent(t),style:ic(u,{text:r,font:m,overflow:"truncate",width:b,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(jm({el:_,componentModel:t,itemName:r}),_.__fullText=r,_.anid="name",t.get("triggerEvent")){var x=qT.makeAxisEventDataBase(t);x.targetType="axisName",x.name=r,ks(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function UT(e,t,n,i){var r,o,a=qi(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return Gi(a-WT/2)?(o=l?"bottom":"top",r="center"):Gi(a-1.5*WT)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*WT&&a>WT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function YT(e,t,n){if(!nT(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(XT(o),XT(c)):KT(o,a)&&(i?(XT(a),XT(u)):(XT(o),XT(c))),!1===r?(XT(s),XT(h)):KT(l,s)&&(r?(XT(l),XT(d)):(XT(s),XT(h)))}}function XT(e){e&&(e.ignore=!0)}function KT(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=ue([]);return fe(r,r,-e.rotation),n.applyTransform(de([],r,e.getLocalTransform())),i.applyTransform(de([],r,t.getLocalTransform())),n.intersect(i)}}function ZT(e){return"middle"===e||"center"===e}function JT(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||e===t}function cD(e){var t=uD(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=dD(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&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=s["i"]({color:d.color},a));var f=s["I"](s["d"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(s["C"](c)){var g=f.name;f.name=c.replace("{value}",null!=g?g:"")}else s["w"](c)&&(f.name=c(f.name,f));var m=new Mc(f,null,this.ecModel);return s["K"](m,FO.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s["I"]({lineStyle:{color:"#bbb"}},zD.axisLine),axisLabel:$D(zD.axisLabel,!1),axisTick:$D(zD.axisTick,!1),splitLine:$D(zD.splitLine,!0),splitArea:$D(zD.splitArea,!0),indicator:[]},t}(Ku),FD=BD,VD=["axisLine","axisTickLabel","axisName"],HD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=s["H"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new nD(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));s["k"](i,(function(e){s["k"](VD,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),l=o.getModel("areaStyle"),c=r.get("show"),u=o.get("show"),h=a.get("color"),d=l.get("color"),p=s["t"](h)?h:[h],f=s["t"](d)?d:[d],g=[],m=[];if("circle"===i)for(var v=n[0].getTicksCoords(),y=t.cx,b=t.cy,_=0;_3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;iI(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);iI(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!eI(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;iI(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(P);function iI(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(ie(i.event),rI(e,t,n,i,r))}function rI(e,t,n,i,r){r.isAvailableBehavior=Object(s["c"])(oI,null,n,i),e.trigger(t,r)}function oI(e,t,n){var i=n[e];return!e||i&&(!Object(s["C"])(i)||t.event[i+"Key"])}var aI=nI;function sI(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function lI(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var cI,uI={axisPointer:1,tooltip:1,brush:1};function hI(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!uI.hasOwnProperty(i.mainType)&&r&&r.model!==n}function dI(e){if(Object(s["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var pI={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},fI=Object(s["F"])(pI),gI={"alignment-baseline":"textBaseline","stop-color":"stopColor"},mI=Object(s["F"])(gI),vI=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=dI(e);this._defsUsePending=[];var i=new Ci;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),SI(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(MI(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=DI(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(c=jI(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=i;i=new Ci,i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new as({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,l=e.nodeName.toLowerCase(),c=i;if("defs"===l&&(r=!0),"text"===l&&(o=!0),"defs"===l||"switch"===l)a=t;else{if(!r){var u=cI[l];if(u&&Object(s["q"])(cI,l)){a=u.call(this,e,t);var h=e.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:a};n.push(d),"g"===l&&(c=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a});t.add(a)}}var p=yI[l];if(p&&Object(s["q"])(yI,l)){var f=p.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=f)}}if(a&&a.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,n,c,r,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},e.prototype._parseText=function(e,t){var n=new Ga({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xI(t,n),SI(e,n,this._defsUsePending,!1,!1),CI(n,t);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,t.add(n),n},e.internalField=function(){cI={g:function(e,t){var n=new Ci;return xI(t,n),SI(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new as;return xI(t,n),SI(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Qf;return xI(t,n),SI(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Ng;return xI(t,n),SI(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new ng;return xI(t,n),SI(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=wI(i));var r=new Tg({shape:{points:n||[]},silent:!0});return xI(t,r),SI(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=wI(i));var r=new Ag({shape:{points:n||[]},silent:!0});return xI(t,r),SI(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new Za;return xI(t,n),SI(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Ci;return xI(t,a),SI(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Ci;return xI(t,a),SI(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=Uf(n);return xI(t,i),SI(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),yI={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new Xg(t,n,i,r);return bI(e,o),_I(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new Zg(t,n,i);return bI(e,r),_I(e,r),r}};function bI(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function _I(e,t){var n=e.firstChild;while(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={};LI(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function xI(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(s["i"])(t.__inheritedStyle,e.__inheritedStyle))}function wI(e){for(var t=DI(e),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=DI(a);switch(r=r||ce(),s){case"translate":pe(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ge(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fe(r,r,-parseFloat(l[0])*AI);break;case"skewX":var c=Math.tan(parseFloat(l[0])*AI);de(r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*AI);de(r,[1,u,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]);break}}t.setLocalTransform(r)}}var PI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function LI(e,t,n){var i=e.getAttribute("style");if(i){var r;PI.lastIndex=0;while(null!=(r=PI.exec(i))){var o=r[1],a=Object(s["q"])(pI,o)?pI[o]:null;a&&(t[a]=r[2]);var l=Object(s["q"])(gI,o)?gI[o]:null;l&&(n[l]=r[2])}}}function NI(e,t,n){for(var i=0;in&&(e=r,n=a)}if(e)return WI(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return Object(s["k"])(r,(function(t){"polygon"===t.type?HI(t.exterior,n,i,e):Object(s["k"])(t.points,(function(t){HI(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new De(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function iA(e,t){return e=eA(e),s["H"](s["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new GI(o[0],o.slice(1)));break;case"MultiPolygon":s["k"](i.coordinates,(function(e){e[0]&&r.push(new GI(e[0],e.slice(1)))}));break;case"LineString":r.push(new UI([i.coordinates]));break;case"MultiLineString":r.push(new UI(i.coordinates))}var a=new YI(n[t||"name"],r,n.cp);return a.properties=n,a}))}for(var rA=[126,25],oA="南海诸岛",aA=[[[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]]],sA=0;sA0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=s["f"](),n=s["f"](),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,l=e.geo.projection,c=l&&l.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function h(e){for(var t=[],n=!c&&l&&l.project,i=0;i=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;tc(t,nc(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=t.getTextContent();if(f&&(CA(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function IA(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):ks(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function AA(e,t,n,i,r){e.data||jm({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function EA(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Dl(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&jl(t,r,n),a}function PA(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var l=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&l.polygonStart(),s["k"](e,(function(e){l.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Cf),zA=RA;function $A(e,t){var n={};return s["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,c=-1/0,u=n[a].length,h=0;h1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var x=e.getBoxLayoutParams();x.aspect=b,p=Bu(x,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function JA(e,t){s["k"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var QA=function(){function e(){this.dimensions=UA}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new KA(o+r,o,s["m"]({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=ZA,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),s["k"](r,(function(e,r){var o=s["H"](e,(function(e){return e.get("nameMap")})),a=new KA(r,r,s["m"]({nameMap:s["J"](o)},i(e[0])));a.zoomLimit=s["O"].apply(null,s["H"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=ZA,a.resize(e[0],t),s["k"](e,(function(e){e.coordinateSystem=a,JA(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=s["f"](),a=0;a=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function dE(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){vE(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=yE(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function pE(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function fE(e){return arguments.length?e:SE}function gE(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function mE(e,t){return Bu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vE(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function yE(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,h=s.hierNode.modifier;while(s=bE(s),o=_E(o),s&&o){r=bE(r),a=_E(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-c+i(s,o);d>0&&(wE(xE(s,e,n),e,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!bE(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!_E(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=e)}return n}function bE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function _E(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function xE(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function wE(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function SE(e,t){return e.parentNode===t.parentNode?1:2}var CE=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),kE=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CE},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=ji(t.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(a[c]-r[c])*u,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=a[l],e.lineTo(h[0],h[1]),e.lineTo(a[0],a[1]);for(var d=1;db.x,w||(x-=Math.PI));var C=w?"left":"right",k=l.getModel("label"),O=k.get("rotate"),M=O*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:k.get("position")||C,rotation:null==O?-x:M,origin:"center"}),T.setStyle("verticalAlign","middle"))}var D=l.get(["emphasis","focus"]),I="relative"===D?s["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():null;I&&(ks(n).focus=I),DE(r,a,h,n,g,f,m,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Es||tl(n.__edge,t)}})}function DE(e,t,n,i,r,o,a,l){var c=t.getModel(),u=e.get("edgeShape"),h=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),g=c.getModel("lineStyle").getLineStyle(),m=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(m||(m=i.__edge=new Bg({shape:PE(h,d,p,r,r)})),Wl(m,{shape:PE(h,d,p,o,a)},e));else if("polyline"===u)if("orthogonal"===h){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],b=0;bt&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=n.getData().tree.root,r=e.targetNode;if(s["C"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ZE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function JE(e,t){var n=ZE(e);return s["r"](n,t)>=0}function QE(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var eP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return o(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Mc(n,this,this.ecModel),r=XE.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return Up("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=QE(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Cf),tP=eP;function nP(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function rP(e,t){e.eachSeriesByType("tree",(function(e){oP(e,t)}))}function oP(e,t){var n=mE(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=fE((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=fE());var s=e.getData().tree.root,l=s.children[0];if(l){hE(s),nP(l,dE,a),s.hierNode.modifier=-l.hierNode.prelim,iP(l,pE);var c=l,u=l,h=l;iP(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)}));var d=c===u?1:a(c,u)/2,p=d-c.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(u.getLayout().x+d+p),g=o/(h.depth-1||1),iP(l,(function(e){m=(e.getLayout().x+p)*f,v=(e.depth-1)*g;var t=gE(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=o/(u.getLayout().x+d+p),f=r/(h.depth-1||1),iP(l,(function(e){v=(e.getLayout().x+p)*g,m="LR"===y?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(u.getLayout().x+d+p),g=o/(h.depth-1||1),iP(l,(function(e){m=(e.getLayout().x+p)*f,v="TB"===y?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function aP(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(s["m"])(r,i)}))}))}function sP(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=oE(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function lP(e){e.registerChartView(LE),e.registerSeriesModel(tP),e.registerLayout(rP),e.registerVisual(aP),sP(e)}var cP=["treemapZoomToNode","treemapRender","treemapMove"];function uP(e){for(var t=0;t1)n=n.parentNode;var r=Ch(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var dP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};pP(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Mc({itemStyle:r},this,t);i=e.levels=fP(i,t);var a=s["H"](i||[],(function(e){return new Mc(e,o,t)}),this),l=XE.createTree(n,this,c);function c(e){e.wrapMethod("getItemModel",(function(e,t){var n=l.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return Up("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=QE(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},s["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=s["f"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){hP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Cf);function pP(e){var t=0;s["k"](e.children,(function(e){pP(e);var n=e.value;s["t"](n)&&(n=n[0]),t+=n}));var n=e.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["t"](e.value)?e.value[0]=n:e.value=n}function fP(e,t){var n=lr(t.get("color")),i=lr(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],s["k"](e,(function(e){var t=new Mc(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}var gP=dP,mP=8,vP=8,yP=5,bP=function(){function e(e){this.group=new Ci,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.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"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,a,s,l,c,i),Fu(o,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=wr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*mP,t.emptyItemWidth);t.totalWidth+=a+vP,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var l=0,c=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),h=$u(t.pos,t.box),d=t.totalWidth,p=t.renderList,f=i.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var m=p[g],v=m.node,y=m.width,b=m.text;d>h.width&&(d-=y-c,y=c,b=null);var _=new Tg({shape:{points:_P(l,0,y,u,g===p.length-1,0===g)},style:Object(s["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Cs({style:ic(r,{text:b})}),textConfig:{position:"inside"},z2:1e4*js,onclick:Object(s["h"])(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=ic(o,{text:b}),_.ensureState("emphasis").style=f,Dl(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),xP(_,e,v),l+=y+vP}},e.prototype.remove=function(){this.group.removeAll()},e}();function _P(e,t,n,i,r,o){var a=[[r?e:e-yP,t],[e+n,t],[e+n,t+i],[r?e:e-yP,t+i]];return!o&&a.splice(2,0,[e+n+yP,t+i/2]),!r&&a.push([e,t+i/2]),a}function xP(e,t,n){ks(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&QE(n,t)}}var wP=bP,SP=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;iMP||Math.abs(e.dy)>MP)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new De(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=ce();pe(s,s,[-t,-n]),ge(s,s,[e.scale,e.scale]),pe(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._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&&Pu(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wP(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(JE(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=RP(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),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},t.type="treemap",t}(Um);function RP(){return{nodeGroup:[],background:[],content:[]}}function zP(e,t,n,i,r,o,a,l,c,u){if(a){var h=a.getLayout(),d=e.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),h&&h.isInView){var f=h.width,g=h.height,m=h.borderWidth,v=h.invisible,y=a.getRawIndex(),b=l&&l.getRawIndex(),_=a.viewChildren,x=h.upperHeight,w=_&&_.length,S=p.getModel("itemStyle"),C=p.getModel(["emphasis","itemStyle"]),k=p.getModel(["blur","itemStyle"]),O=p.getModel(["select","itemStyle"]),M=S.get("borderRadius")||0,T=F("nodeGroup",kP);if(T){if(c.add(T),T.x=h.x||0,T.y=h.y||0,T.markRedraw(),NP(T).nodeWidth=f,NP(T).nodeHeight=g,h.isAboveViewRoot)return T;var D=F("background",OP,u,AP);D&&j(T,D,w&&h.upperLabelHeight);var I=p.getModel("emphasis"),A=I.get("focus"),E=I.get("blurScope"),P=I.get("disabled"),L="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():A;if(w)Nl(T)&&Ll(T,!1),D&&(Ll(D,!P),d.setItemGraphicEl(a.dataIndex,D),Il(D,L,E));else{var N=F("content",OP,u,EP);N&&R(T,N),D.disableMorphing=!0,D&&Nl(D)&&Ll(D,!1),Ll(T,!P),d.setItemGraphicEl(a.dataIndex,T),Il(T,L,E)}return T}}}function j(t,n,i){var r=ks(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:g,r:M}),v)z(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=LP(S);l.fill=s;var c=PP(C);c.fill=C.get("borderColor");var u=PP(k);u.fill=k.get("borderColor");var h=PP(O);if(h.fill=O.get("borderColor"),i){var d=f-2*m;$(n,s,o.opacity,{x:m,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,sl(n)}t.add(n)}function R(t,n){var i=ks(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:M}),v)z(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=LP(S);c.fill=l,c.decal=s.decal;var u=PP(C),h=PP(k),d=PP(O);$(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,sl(n)}t.add(n)}function z(e){!e.invisible&&o.push(e)}function $(t,n,i,r){var o=p.getModel(r?DP:TP),l=wr(p.get("name"),null),c=o.getShallow("show");tc(t,nc(p,r?DP:TP),{defaultText:c?l:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,f=Object(s["M"])(d.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:t.shape.height)-f[0]-f[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",B(d,r,h);var g=u.getState("emphasis");B(g?g.style:null,r,h)}}function B(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function F(e,i,o,a){var s=null!=b&&n[e][b],l=r[e];return s?(n[e][b]=null,V(l,s)):v||(s=new i,s instanceof jo&&(s.z2=$P(o,a)),H(l,s)),t[e][y]=s}function V(e,t){var n=e[y]={};t instanceof kP?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(s["m"])({},t.shape)}function H(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof Ci;if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function $P(e,t){return e*IP+t}var BP=jP,FP=s["k"],VP=s["A"],HP=-1,WP=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=s["d"](t);this.type=i,this.mappingMethod=n,this._normalizeData=nL[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(UP(r),qP(r)):"category"===n?r.categories?GP(r):UP(r,!0):(s["b"]("linear"!==n||r.dataExtent),UP(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return s["c"](this._normalizeData,this)},e.listVisualTypes=function(){return s["F"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){s["A"](e)?s["k"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=s["t"](t)?[]:s["A"](t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&FP(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(s["t"](e))e=e.slice();else{if(!VP(e))return[];var t=[];FP(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function UP(e,t){var n=e.visual,i=[];s["A"](n)?FP(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),tL(e,i)}function YP(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:QP([0,1])}}function XP(e){var t=this.option.visual;return t[Math.round(Ni(e,[0,1],[0,t.length-1],!0))]||{}}function KP(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function ZP(e){var t=this.option.visual;return t[this.option.loop&&e!==HP?e%t.length:e]}function JP(){return this.option.visual[0]}function QP(e){return{linear:function(t){return Ni(t,e,this.option.visual,!0)},category:ZP,piecewise:function(t,n){var i=eL.call(this,n);return null==i&&(i=Ni(t,e,this.option.visual,!0)),i},fixed:JP}}function eL(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=WP.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function tL(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=s["H"](t,(function(e){var t=$t["g"](e);return t||[0,0,0,1]}))),t}var nL={linear:function(e){return Ni(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=WP.findPieceIndex(e,t,!0);if(null!=n)return Ni(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?HP:t},fixed:s["L"]};function iL(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=gL(r,u,e,t,g,i);lL(e,o,n,i)}}))}else l=uL(u),h.fill=l}}function cL(e,t,n){var i=Object(s["m"])({},t),r=n.designatedVisualItemStyle;return Object(s["k"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function uL(e){var t=dL(e,"color");if(t){var n=dL(e,"colorAlpha"),i=dL(e,"colorSaturation");return i&&(t=Object($t["f"])(t,null,null,i)),n&&(t=Object($t["e"])(t,n)),t}}function hL(e,t){return null!=t?Object($t["f"])(t,null,null,e):null}function dL(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function pL(e,t,n,i,r,o){if(o&&o.length){var a=fL(t,"color")||null!=r.color&&"none"!==r.color&&(fL(t,"colorAlpha")||fL(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=t.get("colorMappingBy"),h={type:a.name,dataExtent:c,visual:a.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new rL(h);return aL(d).drColorMappingBy=u,d}}}function fL(e,t){var n=e.get(t);return Object(s["t"])(n)&&n.length?{name:t,range:n}:null}function gL(e,t,n,i,r,o){var a=Object(s["m"])({},t);if(r){var l=r.type,c="color"===l&&aL(r).drColorMappingBy,u="index"===c?i:"id"===c?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[l]=r.mapValueToVisual(u)}return a}var mL=Math.max,vL=Math.min,yL=s["O"],bL=s["k"],_L=["itemStyle","borderWidth"],xL=["itemStyle","gapWidth"],wL=["upperLabel","show"],SL=["upperLabel","height"],CL={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,l=Bu(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),c=a.size||[],u=ji(yL(l.width,c[0]),r),h=ji(yL(l.height,c[1]),o),d=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],f=KE(i,p,e),g="treemapRender"===d||"treemapMove"===d?i.rootRect:null,m=e.getViewRoot(),v=ZE(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?EL(e,f,m,u,h):g?[g.width,g.height]:[u,h],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),kL(m,_,!1,0),x=m.getLayout(),bL(v,(function(e,t){var n=(v[t+1]||m).getValue();e.setLayout(s["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=e.getData().tree.root;w.setLayout(PL(l,g,f),!0),e.setLayoutInfo(l),LL(w,new De(-l.x,-l.y,r,o),v,m,0)}};function kL(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(_L),c=s.get(xL)/2,u=NL(s),h=Math.max(l,u),d=l-c,p=h-c;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),r=mL(r-2*d,0),o=mL(o-d-p,0);var f=r*o,g=OL(e,s,f,t,n,i);if(g.length){var m={x:d,y:p,width:r,height:o},v=vL(r,o),y=1/0,b=[];b.area=0;for(var _=0,x=g.length;_=0;l--){var c=r["asc"===i?a-l-1:l].getValue();c/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function IL(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;oi&&(i=a));var l=e.area*e.area,c=t*t*n;return l?mL(c*i/l,l/(c*r)):1/0}function AL(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=t?e.area/t:0;(r||u>n[l[a]])&&(u=n[l[a]]);for(var h=0,d=e.length;hWi&&(c=Wi),a=o}ci&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(b[0]=-b[0],b[1]=-b[1]);var w=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var S=-Math.atan2(y[1],y[0]);c[0].8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*f+l[0],i.y=-u[1]*g+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*w+l[0],i.y=l[1]+C,h=y[0]<0?"right":"left",i.originX=-f*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,h="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*w+c[0],i.y=c[1]+C,h=y[0]>=0?"right":"left",i.originX=f*w,i.originY=-C;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function k(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Ci),MN=ON,TN=function(){function e(e){this.group=new Ci,this._LineCtor=e||MN}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=IN(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=IN(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||DN(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i0}function IN(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:nc(t)}}function AN(e){return isNaN(e[0])||isNaN(e[1])}function EN(e){return e&&!AN(e[0])&&!AN(e[1])}var PN=TN,LN=[],NN=[],jN=[],RN=Tt,zN=C,$N=Math.abs;function BN(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){LN[0]=RN(r[0],o[0],a[0],u),LN[1]=RN(r[1],o[1],a[1],u);var h=$N(zN(LN,t)-l);h=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function FN(e,t){var n=[],i=Et,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[d(l[0]),d(l[1])],l[2]&&l.__original.push(d(l[2])));var p=l.__original;if(null!=l[2]){if(h(r[0],p[0]),h(r[1],p[2]),h(r[2],p[1]),c&&"none"!==c){var f=nN(e.node1),v=BN(r,p[0],f*t);i(r[0][0],r[1][0],r[2][0],v,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],v,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){f=nN(e.node2),v=BN(r,p[1],f*t);i(r[0][0],r[1][0],r[2][0],v,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],v,n),r[1][1]=n[1],r[2][1]=n[2]}h(l[0],r[0]),h(l[1],r[2]),h(l[2],r[1])}else{if(h(o[0],p[0]),h(o[1],p[1]),m(a,o[1],o[0]),_(a,a),c&&"none"!==c){f=nN(e.node1);g(o[0],o[0],a,f*t)}if(u&&"none"!==u){f=nN(e.node2);g(o[1],o[1],a,-f*t)}h(l[0],o[0]),h(l[1],o[1])}}))}function VN(e){return"view"===e.type}var HN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){var n=new yC,i=new PN,r=this.group;this._controller=new aI(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(VN(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Wl(s,l,e)}FN(e.getGraph(),tN(e));var c=e.getData();o.updateData(c);var u=e.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),oN(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(n,[r.x,r.y]),QL(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(ks(r).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(ks(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(e){sN(e,f,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!hI(t,n,e)})),VN(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){sI(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){lI(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),FN(e.getGraph(),tN(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=tN(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){FN(e.getGraph(),tN(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Um),WN=HN;function qN(e){return"_EC_"+e}var GN=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[qN(e)]){var i=new UN(e,t);return i.hostGraph=this,this.nodes.push(i),n[qN(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[qN(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(s["z"](e)&&(e=this.nodes[e]),s["z"](t)&&(t=this.nodes[t]),e instanceof UN||(e=i[qN(e)]),t instanceof UN||(t=i[qN(t)]),e&&t){var o=e.id+"-"+t.id,a=new YN(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof UN&&(e=e.id),t instanceof UN&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof UN||(t=this._nodesMap[qN(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}s["K"](UN,XN("hostGraph","data")),s["K"](YN,XN("hostGraph","edgeData"));var KN=GN;function ZN(e,t,n,i,r){for(var o=new KN(i),a=0;a "+p)),u++)}var f,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)f=aC(e,n);else{var m=Uh.get(g),v=m&&m.dimensions||[];s["r"](v,"value")<0&&v.concat(["value"]);var y=HS(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new VS(y,n),f.initData(e)}var b=new VS(["value"],n);return b.initData(c,l),r&&r(f,b),qE({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var JN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new CO(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),cr(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){XL(this);var o=ZN(i,n,this,!0,a);return s["k"](o.edges,(function(e){KL(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Mc.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Up("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var c=uf({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=s["H"](this.option.categories||[],(function(e){return null!=e.value?e:s["m"]({value:0},e)})),t=new VS(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Cf),QN=JN,ej={type:"graphRoam",event:"graphRoam",update:"none"};function tj(e){e.registerChartView(WN),e.registerSeriesModel(QN),e.registerProcessor(RL),e.registerVisual(zL),e.registerVisual(BL),e.registerLayout(eN),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,lN),e.registerLayout(hN),e.registerCoordinateSystem("graphView",{dimensions:qA.dimensions,create:pN}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},s["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},s["L"]),e.registerAction(ej,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=oE(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var nj=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ij=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return o(t,e),t.prototype.getDefaultShape=function(){return new nj},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(Ha),rj=ij;function oj(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=ji(n[0],t.getWidth()),s=ji(n[1],t.getHeight()),l=ji(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function aj(e,t){var n=null==e?"":e+"";return t&&(Object(s["C"])(t)?n=t.replace("{value}",n):Object(s["w"])(t)&&(n=t(e))),n}var sj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=oj(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),h=u.get("roundCap"),d=h?Dk:_g,p=u.get("show"),f=u.getModel("lineStyle"),g=f.get("width"),m=[l,c];ga(m,!a),l=m[0],c=m[1];for(var v=c-l,y=l,b=[],_=0;p&&_=e&&(0===t?0:i[t-1][0])Math.PI/2&&($+=Math.PI)):"tangential"===z?$=-k-Math.PI/2:Object(s["z"])(z)&&($=z*Math.PI/180),0===$?d.add(new Cs({style:ic(_,{text:L,x:j,y:R,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:N}),silent:!0})):d.add(new Cs({style:ic(_,{text:L,x:j,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:j,originY:R,rotation:$}))}if(b.get("show")&&A!==x){E=b.get("distance");E=E?E+c:c;for(var B=0;B<=w;B++){u=Math.cos(k),h=Math.sin(k);var F=new Ng({shape:{x1:u*(g-E)+p,y1:h*(g-E)+f,x2:u*(g-C-E)+p,y2:h*(g-C-E)+f},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:i((A+B/w)/x)}),d.add(F),k+=M}k-=M}else k+=O}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,l,c){var u=this.group,h=this._data,d=this._progressEls,p=[],f=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),v=e.getData(),y=v.mapDimension("value"),b=+e.get("min"),_=+e.get("max"),x=[b,_],w=[o,a];function S(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=ji(a.get("width"),r.r),l=ji(a.get("length"),r.r),c=e.get(["pointer","icon"]),u=a.get("offsetCenter"),h=ji(u[0],r.r),d=ji(u[1],r.r),p=a.get("keepAspect");return i=c?ay(c,h-s/2,d-l,s,l,null,p):new rj({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function C(e,t){var n=g.get("roundCap"),i=n?Dk:_g,a=g.get("overlap"),s=a?g.get("width"):c/v.count(),u=a?r.r-s:r.r-(e+1)*s,h=a?r.r:r.r-e*s,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:l,r0:u,r:h}});return a&&(d.z2=_-v.get(y,e)%_),d}(m||f)&&(v.diff(h).add((function(t){var n=v.get(y,t);if(f){var i=S(t,o);ql(i,{rotation:-((isNaN(+n)?w[0]:Ni(n,x,w,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(m){var r=C(t,o),a=g.get("clip");ql(r,{shape:{endAngle:Ni(n,x,w,a)}},e),u.add(r),Os(e.seriesIndex,v.dataType,t,r),p[t]=r}})).update((function(t,n){var i=v.get(y,t);if(f){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=S(t,a);s.rotation=a,Wl(s,{rotation:-((isNaN(+i)?w[0]:Ni(i,x,w,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var l=d[n],c=l?l.shape.endAngle:o,b=C(t,c),_=g.get("clip");Wl(b,{shape:{endAngle:Ni(i,x,w,_)}},e),u.add(b),Os(e.seriesIndex,v.dataType,t,b),p[t]=b}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var l=v.getItemGraphicEl(e),c=v.getItemVisual(e,"style"),u=c.fill;if(l instanceof Za){var h=l.style;l.useStyle(Object(s["m"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else l.useStyle(c),"pointer"!==l.type&&l.setColor(u);l.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",i(Ni(v.get(y,e),x,[0,1],!0))),l.z2EmphasisLift=0,Pl(l,t),Dl(l,r,o,a)}if(m){var d=p[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Pl(d,t),Dl(d,r,o,a)}})),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=ay(o,t.cx-r/2+ji(a[0],t.r),t.cy-r/2+ji(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Ci,h=[],d=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){h[e]=new Cs({silent:!0}),d[e]=new Cs({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Ci,m=i(Ni(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=r.cx+ji(y[0],r.r),_=r.cy+ji(y[1],r.r),x=h[t];x.attr({z2:f?0:2,style:ic(v,{x:b,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(x)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),C=r.cx+ji(S[0],r.r),k=r.cy+ji(S[1],r.r),O=ji(w.get("width"),r.r),M=ji(w.get("height"),r.r),T=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,D=(x=d[t],w.get("formatter"));x.attr({z2:f?0:2,style:ic(w,{x:C,y:k,text:aj(o,D),width:isNaN(O)?null:O,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:T})}),pc(x,{normal:w},o,(function(e){return aj(e,D)})),p&&fc(x,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return aj(a?a.interpolatedValue:o,D)}}),g.add(x)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Um),lj=sj,cj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return o(t,e),t.prototype.getInitialData=function(e,t){return wO(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Cf),uj=cj;function hj(e){e.registerChartView(lj),e.registerSeriesModel(uj)}var dj=["itemStyle","opacity"],pj=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Ag,a=new Cs;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return o(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(dj);l=null==l?1:l,n||Kl(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,ql(i,{style:{opacity:l}},r,t)):Wl(i,{style:{opacity:l},shape:{points:a.points}},r,t),Pl(i,o),this._updateLabel(e,t),Dl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;tc(r,nc(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new be(h[0][0],h[0][1]):null},Wl(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),rx(n,ox(a),{stroke:u})},t}(Tg),fj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new pj(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);Xl(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Um),gj=fj,mj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new CO(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return wO(this,{coordDimensions:["value"],encodeDefaulter:s["h"](ph,this)})},t.prototype._defaultLabelLine=function(e){cr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Cf),vj=mj;function yj(e,t){return Bu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function bj(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,l=e.count();aVj)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&qj(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function qj(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Gj=Hj,Uj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&s["I"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){s["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=s["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);s["k"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Ku),Yj=Uj,Xj=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(IT),Kj=Xj;function Zj(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=Qj(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=Qj(s,[0,a]),r=o=Qj(s,[r,o]),i=0}t[0]=Qj(t[0],n),t[1]=Qj(t[1],n);var l=Jj(t,i);t[i]+=e;var c,u=r||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,t[i]=Qj(t[i],h),c=Jj(t,i),null!=r&&(c.sign!==l.sign||c.spano&&(t[1-i]=t[i]+c.sign*o),t}function Jj(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Qj(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var eR=s["k"],tR=Math.min,nR=Math.max,iR=Math.floor,rR=Math.ceil,oR=Ri,aR=Math.PI,sR=function(){function e(e,t,n){this.type="parallel",this._axesMap=s["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;eR(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new Kj(e,XM(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)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();eR(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),YM(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Bu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],c=this.dimensions.length,u=lR(t.get("axisExpandWidth"),l),h=lR(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=t.get("axisExpandWindow");if(p)e=lR(p[1]-p[0],l),p[1]=p[0]+e;else{e=lR(u*(h-1),l);var f=t.get("axisExpandCenter")||iR(c/2);p=[u*f-e/2],p[1]=p[0]+e}var g=(s-e)/(c-h);g<3&&(g=0);var m=[iR(oR(p[0]/u,1))+1,rR(oR(p[1]/u,1))-1],v=g/u*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:p,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),eR(n,(function(t,n){var o=(i.axisExpandable?uR:cR)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:aR/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],c=s[r],u=ce();fe(u,u,c),pe(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],l=[];s["k"](o,(function(t){a.push(e.mapDimension(t)),l.push(r.get(t).model)}));for(var c=this.hasAxisBrushed(),u=n;ur*(1-u[0])?(l="jump",a=s-r*(1-u[2])):(a=s-r*u[1])>=0&&(a=s-r*(1-u[1]))<=0&&(a=0),a*=t.axisExpandWidth/c,a?Zj(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[nR(0,p-d/2)],i[1]=tR(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function lR(e,t){return tR(nR(e,t[0]),t[1])}function cR(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function uR(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=0;n--)zi(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;iwR}function FR(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function VR(e,t,n,i){var r=new Ci;return r.add(new as({name:"main",style:GR(n),silent:!0,draggable:!0,cursor:"move",drift:Object(s["h"])(ZR,e,t,r,["n","s","w","e"]),ondragend:Object(s["h"])($R,t,{isEnd:!0})})),Object(s["k"])(i,(function(n){r.add(new as({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["h"])(ZR,e,t,r,n),ondragend:Object(s["h"])($R,t,{isEnd:!0})}))})),r}function HR(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=bR(r,SR),a=n[0][0],s=n[1][0],l=a-r/2,c=s-r/2,u=n[0][1],h=n[1][1],d=u-o+r/2,p=h-o+r/2,f=u-a,g=h-s,m=f+r,v=g+r;qR(e,t,"main",a,s,f,g),i.transformable&&(qR(e,t,"w",l,c,o,v),qR(e,t,"e",d,c,o,v),qR(e,t,"n",l,c,m,o),qR(e,t,"s",l,p,m,o),qR(e,t,"nw",l,c,o,o),qR(e,t,"ne",d,c,o,o),qR(e,t,"sw",l,p,o,o),qR(e,t,"se",d,p,o,o))}function WR(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(GR(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(s["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?XR(e,n[0]):KR(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?OR[o]+"-resize":null})}))}function qR(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(tz(ez(e,t,[[i,r],[i+o,r+a]])))}function GR(e){return Object(s["i"])({strokeNoScale:!0},e.brushStyle)}function UR(e,t,n,i){var r=[yR(e,n),yR(t,i)],o=[bR(e,n),bR(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function YR(e){return Sm(e.group)}function XR(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=km(n[t],YR(e));return i[r]}function KR(e,t){var n=[XR(e,t[0]),XR(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function ZR(e,t,n,i,r,o){var a=n.__brushOption,l=e.toRectRange(a.range),c=QR(t,r,o);Object(s["k"])(i,(function(e){var t=kR[e];l[t[0]][t[1]]+=c[t[0]]})),a.range=e.fromRectRange(UR(l[0][0],l[1][0],l[0][1],l[1][1])),LR(t,n),$R(t,{isEnd:!1})}function JR(e,t,n,i){var r=t.__brushOption.range,o=QR(e,n,i);Object(s["k"])(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),LR(e,t),$R(e,{isEnd:!1})}function QR(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function ez(e,t,n){var i=RR(e,t);return i&&i!==vR?i.clipPath(n,e._transform):Object(s["d"])(n)}function tz(e){var t=yR(e[0][0],e[1][0]),n=yR(e[0][1],e[1][1]),i=bR(e[0][0],e[1][0]),r=bR(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function nz(e,t,n){if(e._brushType&&!cz(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=jR(e,t,n);if(!e._dragging)for(var a=0;ai.getWidth()||n<0||n>i.getHeight()}var uz={lineX:hz(0),lineY:hz(1),rect:{createCover:function(e,t){function n(e){return e}return VR({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=FR(e);return UR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){HR(e,t,n,i)},updateCommon:WR,contain:rz},polygon:{createCover:function(e,t){var n=new Ci;return n.add(new Ag({name:"main",style:GR(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Tg({name:"main",draggable:!0,drift:Object(s["h"])(JR,e,t),ondragend:Object(s["h"])($R,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:ez(e,t,n)})},updateCommon:WR,contain:rz}};function hz(e){return{createCover:function(t,n){return VR({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=FR(t),i=yR(n[0][e],n[1][e]),r=bR(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=RR(t,n);if(a!==vR&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),HR(t,n,l,r)},updateCommon:WR,contain:rz}}var dz=DR;function pz(e){return e=mz(e),function(t){return Dm(t,e)}}function fz(e,t){return e=mz(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function gz(e,t,n){var i=mz(e);return function(e,r){return i.contain(r[0],r[1])&&!hI(e,t,n)}}function mz(e){return De.create(e)}var vz=["axisLine","axisTickLabel","axisName"],yz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new dz(n.getZr())).on("brush",s["c"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!bz(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Ci,this.group.add(this._axisGroup),e.get("show")){var o=xz(e,t),a=o.coordinateSystem,l=e.getAreaSelectStyle(),c=l.width,u=e.axis.dim,h=a.getAxisLayout(u),d=s["m"]({strokeContainThreshold:c},h),p=new nD(e,d);s["k"](vz,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,e,o,c,n),Tm(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=De.create({x:a[0],y:-r/2,width:s,height:r});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:pz(c),isTargetByCursor:gz(c,o,i),getLinearBrushOtherExtent:fz(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(_z(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=s["H"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Of);function bz(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function _z(e){var t=e.axis;return s["H"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function xz(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var wz=yz,Sz={type:"axisAreaSelect",event:"axisAreaSelected"};function Cz(e){e.registerAction(Sz,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var kz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Oz(e){e.registerComponentView(Gj),e.registerComponentModel(Yj),e.registerCoordinateSystem("parallel",fR),e.registerPreprocessor($j),e.registerComponentModel(mR),e.registerComponentView(wz),eM(e,"parallel",mR,kz),Cz(e)}function Mz(e){N_(Oz),e.registerChartView(Aj),e.registerSeriesModel(Nj),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,zj)}var Tz=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Dz=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultShape=function(){return new Tz},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){ul(this)},t.prototype.downplay=function(){hl(this)},t}(Ha),Iz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,l=a.width,c=a.height,u=e.getData(),h=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new Dz,i=ks(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,p,f,g,m,v,y=t.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),x=t.node1.getLayout(),w=t.node1.getModel(),S=w.get("localX"),C=w.get("localY"),k=t.node2.getLayout(),O=t.node2.getModel(),M=O.get("localX"),T=O.get("localY"),D=t.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=d,"vertical"===d?(r=(null!=S?S*l:x.x)+D.sy,a=(null!=C?C*c:x.y)+x.dy,u=(null!=M?M*l:k.x)+D.ty,p=null!=T?T*c:k.y,f=r,g=a*(1-_)+p*_,m=u,v=a*_+p*(1-_)):(r=(null!=S?S*l:x.x)+x.dx,a=(null!=C?C*c:x.y)+D.sy,u=null!=M?M*l:k.x,p=(null!=T?T*c:k.y)+D.ty,f=r*(1-_)+u*_,g=a,m=r*_+u*(1-_),v=p),n.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:f,cpy1:g,cpx2:m,cpy2:v}),n.useStyle(b.getItemStyle()),Az(n.style,d,t);var I=""+y.get("value"),A=nc(y,"edgeLabel");tc(n,A,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,a){return e.getFormattedLabel(t,n,"edge",r,Object(s["Q"])(o,A.normal&&A.normal.get("formatter"),I),a)}},labelDataIndex:t.dataIndex,defaultText:I}),n.setTextConfig({position:"inside"});var E=y.getModel("emphasis");Pl(n,y,"lineStyle",(function(e){var n=e.getItemStyle();return Az(n,d,t),n})),o.add(n),h.setItemGraphicEl(t.dataIndex,n);var P=E.get("focus");Dl(n,"adjacency"===P?t.getAdjacentDataIndices():"trajectory"===P?t.getTrajectoryDataIndices():P,E.get("blurScope"),E.get("disabled"))})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),s=i.getModel("emphasis"),h=new as({shape:{x:null!=r?r*l:n.x,y:null!=a?a*c:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});tc(h,nc(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Pl(h,i),o.add(h),u.setItemGraphicEl(t.dataIndex,h),ks(h).dataType="node";var d=s.get("focus");Dl(h,"adjacency"===d?t.getAdjacentDataIndices():"trajectory"===d?t.getTrajectoryDataIndices():d,s.get("blurScope"),s.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/c})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(Ez(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Um);function Az(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(s["C"])(i)&&Object(s["C"])(r)&&(e.fill=new Xg(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}function Ez(e,t,n){var i=new as({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ql(i,{shape:{width:e.width+20}},t,n),i}var Pz=Iz,Lz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new Mc(r[a],this,t));if(i&&n){var s=ZN(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Up("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Up("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Cf),Nz=Lz;function jz(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=Rz(e,t);e.layoutInfo=r;var o=r.width,a=r.height,l=e.getGraph(),c=l.nodes,u=l.edges;$z(c);var h=s["n"](c,(function(e){return 0===e.getLayout().value})),d=0!==h.length?0:e.get("layoutIterations"),p=e.get("orient"),f=e.get("nodeAlign");zz(c,u,n,i,o,a,d,p,f)}))}function Rz(e,t){return Bu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zz(e,t,n,i,r,o,a,s,l){Bz(e,t,n,r,o,s,l),qz(e,t,o,r,i,a,s),r$(e,s)}function $z(e){s["k"](e,(function(e){var t=n$(e.outEdges,t$),n=n$(e.inEdges,t$),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function Bz(e,t,n,i,r,o,a){for(var s=[],l=[],c=[],u=[],h=0,d=0;d=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yh-1?p:h-1;a&&"left"!==a&&Vz(e,a,o,S);var C="vertical"===o?(r-n)/S:(i-n)/S;Wz(e,C,o)}function Fz(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Vz(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var l=0;l0;o--)l*=.99,Xz(s,l,a),Yz(s,r,n,i,a),i$(s,l,a),Yz(s,r,n,i,a)}function Gz(e,t){var n=[],i="vertical"===t?"y":"x",r=Br(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),s["k"](r.keys,(function(e){n.push(r.buckets.get(e))})),n}function Uz(e,t,n,i,r,o){var a=1/0;s["k"](e,(function(e){var t=e.length,l=0;s["k"](e,(function(e){l+=e.getLayout().value}));var c="vertical"===o?(i-(t-1)*r)/l:(n-(t-1)*r)/l;c0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[h]+t;var p="vertical"===r?i:n;if(l=c-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(d=u-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[h]+t-c,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}}))}function Xz(e,t,n){s["k"](e.slice().reverse(),(function(e){s["k"](e,(function(e){if(e.outEdges.length){var i=n$(e.outEdges,Kz,n)/n$(e.outEdges,t$);if(isNaN(i)){var r=e.outEdges.length;i=r?n$(e.outEdges,Zz,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-e$(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-e$(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function Kz(e,t){return e$(e.node2,t)*e.getValue()}function Zz(e,t){return e$(e.node2,t)}function Jz(e,t){return e$(e.node1,t)*e.getValue()}function Qz(e,t){return e$(e.node1,t)}function e$(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function t$(e){return e.getValue()}function n$(e,t,n){var i=0,r=e.length,o=-1;while(++oo&&(o=t)})),s["k"](n,(function(t){var n=new rL({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}i.length&&s["k"](i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function a$(e){e.registerChartView(Pz),e.registerSeriesModel(Nz),e.registerLayout(jz),e.registerVisual(o$),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var s$=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),l=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===l?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var c=["x","y"],u="horizontal"===e.layout?0:1,h=this._baseAxisDim=c[u],d=c[1-u],p=[r,o],f=p[u].get("type"),g=p[1-u].get("type"),m=e.data;if(m&&i){var v=[];s["k"](m,(function(e,t){var n;s["t"](e)?(n=e.slice(),e.unshift(t)):s["t"](e.value)?(n=s["m"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,b=[{name:h,type:mS(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:mS(g),dimsDef:y.slice()}];return wO(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:s["h"](dh,b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),l$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Cf);Object(s["K"])(l$,s$,!0);var c$=l$,u$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=p$(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Kl(n),f$(s,n,i,e)):n=p$(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Um),h$=function(){function e(){}return e}(),d$=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return o(t,e),t.prototype.getDefaultShape=function(){return new h$},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();im){var x=[y,_];i.push(x)}}}return{boxData:n,outliers:i}}var S$={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==nh){var n="";0,Eh(n)}var i=w$(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function C$(e){e.registerSeriesModel(c$),e.registerChartView(m$),e.registerLayout(y$),e.registerTransform(S$)}var k$=["color","borderColor"],O$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){zm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&I$(s,a))return;var l=D$(a,n,!0);ql(l,{shape:{points:a.ends}},e,n),A$(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(t.hasValue(a)){var u=t.getItemLayout(a);o&&I$(s,u)?i.remove(c):(c?(Wl(c,{shape:{points:u.ends}},e,a),Kl(c)):c=D$(u,a),A$(c,t,a,r),i.add(c),t.setItemGraphicEl(a,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),N$(e,this.group);var t=e.get("clip",!0)?RC(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=D$(o,n);A$(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){N$(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Um),M$=function(){function e(){}return e}(),T$=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new M$},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Ha);function D$(e,t,n){var i=e.ends;return new T$({shape:{points:n?E$(i,e):i},z2:100})}function I$(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(k$);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var R$=O$,z$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Cf);Object(s["K"])(z$,s$,!0);var $$=z$;function B$(e){e&&s["t"](e.series)&&s["k"](e.series,(function(e){s["A"](e)&&"k"===e.type&&(e.type="candlestick")}))}var F$=["itemStyle","borderColor"],V$=["itemStyle","borderColor0"],H$=["itemStyle","borderColorDoji"],W$=["itemStyle","color"],q$=["itemStyle","color0"],G$={seriesType:"candlestick",plan:Mf(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?W$:q$)}function i(e,t){return t.get(0===e?H$:e>0?F$:V$)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,l=o.getItemStyle();l.fill=n(a,o),l.stroke=i(a,o)||l.fill;var c=t.ensureUniqueItemVisual(r,"style");Object(s["m"])(c,l)}}}}}},U$=G$,Y$={seriesType:"candlestick",plan:Mf(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=K$(e,n),r=0,o=1,a=["x","y"],l=n.getDimensionIndex(n.mapDimension(a[r])),c=Object(s["H"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=c[0],h=c[1],d=c[2],p=c[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(l<0||c.length<4))return{progress:e.pipelineContext.large?g:f};function f(e,n){var a,s=n.getStore();while(null!=(a=e.next())){var c=s.get(l,a),f=s.get(u,a),g=s.get(h,a),m=s.get(d,a),v=s.get(p,a),y=Math.min(f,g),b=Math.max(f,g),_=M(y,c),x=M(b,c),w=M(m,c),S=M(v,c),C=[];T(C,x,0),T(C,_,1),C.push(I(S),I(x),I(w),I(_));var k=n.getItemModel(a),O=!!k.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:X$(s,a,f,g,h,O),initBaseline:f>g?x[o]:_[o],ends:C,brushRect:D(m,v,c)})}function M(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function T(e,t,n){var o=t.slice(),a=t.slice();o[r]=wm(o[r]+i/2,1,!1),a[r]=wm(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function D(e,t,n){var a=M(e,n),s=M(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function I(e){return e[r]=wm(e[r],1),e}}function g(n,i){var a,s,c=CC(4*n.count),f=0,g=[],m=[],v=i.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(s=n.next())){var b=v.get(l,s),_=v.get(u,s),x=v.get(h,s),w=v.get(d,s),S=v.get(p,s);isNaN(b)||isNaN(w)||isNaN(S)?(c[f++]=NaN,f+=3):(c[f++]=X$(v,s,_,x,h,y),g[r]=b,g[o]=w,a=t.dataToPoint(g,null,m),c[f++]=a?a[0]:NaN,c[f++]=a?a[1]:NaN,g[o]=S,a=t.dataToPoint(g,null,m),c[f++]=a?a[1]:NaN)}i.setLayout("largePoints",c)}}};function X$(e,t,n,i,r,o){var a;return a=n>i?-1:n0?e.get(r,t-1)<=i?1:-1:1,a}function K$(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=ji(Object(s["P"])(e.get("barMaxWidth"),r),r),a=ji(Object(s["P"])(e.get("barMinWidth"),1),r),l=e.get("barWidth");return null!=l?ji(l,r):Math.max(Math.min(r/2,o),a)}var Z$=Y$;function J$(e){e.registerChartView(R$),e.registerSeriesModel($$),e.registerPreprocessor(B$),e.registerVisual(U$),e.registerLayout(Z$)}function Q$(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var eB=function(e){function t(t,n){var i=e.call(this)||this,r=new pC(t,n),o=new Ci;return i.add(r),i.add(o),i.updateData(t,n),i}return o(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/c*1e3),o!==this._period||a!==this._loop||l!==this._roundTrip){i.stopAnimation();var h=void 0;h=s["w"](u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,l)}this._period=o,this._loop=a,this._roundTrip=l}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return w(e.__p1,e.__cp1)+w(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Tt,l=Dt;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var c=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),u=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;ot)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),c=n[o],u=n[o+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var h=e.__t<1?u[0]-c[0]:c[0]-u[0],d=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(lB),dB=hB,pB=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),fB=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pB},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(i[n++],i[n++]);for(var a=1;a0){var h=(s+c)/2-(l-u)*r,d=(l+u)/2-(c-s)*r;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var c=i[s++],u=i[s++],h=1;h0){var f=(c+d)/2-(u-p)*r,g=(u+p)/2-(d-c)*r;if(_a(c,u,f,g,d,p,o,e,t))return a}else if(ya(c,u,d,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),mB=gB,vB={seriesType:"lines",plan:Mf(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var c=e.get("clip",!0)&&RC(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=yB.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new mB:new PN(r?i?dB:uB:i?lB:MN),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Um),_B=bB,xB="undefined"===typeof Uint32Array?Array:Uint32Array,wB="undefined"===typeof Float64Array?Array:Float64Array;function SB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(s["H"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(s["J"])([n,e[0],e[1]])})))}var CB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.init=function(t){t.data=t.data||[],SB(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(SB(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(s["e"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Cf),kB=CB;function OB(e){return e instanceof Array||(e=[e,e]),e}var MB={seriesType:"lines",reset:function(e){var t=OB(e.get("symbol")),n=OB(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=OB(n.getShallow("symbol",!0)),r=OB(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},TB=MB;function DB(e){e.registerChartView(_B),e.registerSeriesModel(kB),e.registerLayout(yB),e.registerVisual(TB)}var IB=256,AB=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Qn["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var p=0;p0){var M=o(y)?s:l;y>0&&(y=y*k+S),_[x++]=M[O],_[x++]=M[O+1],_[x++]=M[O+2],_[x++]=M[O+3]*y*256}else x+=4}return h.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Qn["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}(),EB=AB;function PB(e,t,n){var i=e[1]-e[0];t=s["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function NB(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var jB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):NB(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(NB(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){zm(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,c=e.coordinateSystem,u=zC(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=nc(e),_=e.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),C=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],k=n;ks[1]||Dl[1])continue;var I=c.dataToPoint([T,D]);O=new as({shape:{x:I[0]-o/2,y:I[1]-a/2,width:o,height:a},style:M})}else{if(isNaN(f.get(C[1],k)))continue;O=new as({z2:1,shape:c.dataToRect([f.get(C[0],k)]).contentShape,style:M})}if(f.hasItemOption){var A=f.getItemModel(k),E=A.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),m=A.getModel(["blur","itemStyle"]).getItemStyle(),v=A.getModel(["select","itemStyle"]).getItemStyle(),y=A.get(["itemStyle","borderRadius"]),x=E.get("focus"),w=E.get("blurScope"),S=E.get("disabled"),b=nc(A)}O.shape.r=y;var P=e.getRawValue(k),L="-";P&&null!=P[2]&&(L=P[2]+""),tc(O,b,{labelFetcher:e,labelDataIndex:k,defaultOpacity:M.opacity,defaultText:L}),O.ensureState("emphasis").style=g,O.ensureState("blur").style=m,O.ensureState("select").style=v,Dl(O,x,w,S),O.incremental=r,r&&(O.states.emphasis.hoverLayer=!0),p.add(O),f.setItemGraphicEl(k,O),this._progressiveEls&&this._progressiveEls.push(O)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new EB;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-u,g=p-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=u,r[1]-=h,r.push(i),r})),y=n.getExtent(),b="visualMap.continuous"===n.type?LB(y,n.option.range):PB(y,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new Za({style:{width:f,height:g,x:u,y:h,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(Um),RB=jB,zB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return aC(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Uh.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Cf),$B=zB;function BB(e){e.registerChartView(RB),e.registerSeriesModel($B)}var FB=["itemStyle","borderWidth"],VB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],HB=new Qf,WB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),c=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:VB[+l],categoryDim:VB[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=nF(r,e),n=qB(r,e,t,u),o=oF(r,u,n);r.setItemGraphicEl(e,o),i.add(o),hF(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=nF(r,e),s=qB(r,e,a,u),l=lF(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?aF(n,u,s):n=oF(r,u,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),hF(n,u,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&sF(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){sF(i,ks(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Um);function qB(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};GB(n,o,r,i,d),YB(e,t,r,o,a,d.boundingLength,d.pxSign,u,i,d),XB(n,d.symbolScale,c,i,d);var p=d.symbolSize,f=ly(n.get("symbolOffset"),p);return KB(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function GB(e,t,n,i,r){var o,a=i.valueDim,l=e.get("symbolBoundingData"),c=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(s["t"](l)){var d=[UB(c,l[0])-u,UB(c,l[1])-u];d[1]0?1:-1}function UB(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function YB(e,t,n,i,r,o,a,l,c,u){var h,d=c.valueDim,p=c.categoryDim,f=Math.abs(n[p.wh]),g=e.getItemVisual(t,"symbolSize");h=s["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],h[p.index]=ji(h[p.index],f),h[d.index]=ji(h[d.index],i?f:Math.abs(o)),u.symbolSize=h;var m=u.symbolScale=[h[0]/l,h[1]/l];m[d.index]*=(c.isHorizontal?-1:1)*a}function XB(e,t,n,i,r){var o=e.get(FB)||0;o&&(HB.attr({scaleX:t[0],scaleY:t[1],rotation:n}),HB.updateTransform(),o/=HB.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function KB(e,t,n,i,r,o,a,l,c,u,h,d){var p=h.categoryDim,f=h.valueDim,g=d.pxSign,m=Math.max(t[f.index]+l,0),v=m;if(i){var y=Math.abs(c),b=s["O"](e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=ji(b,t[f.index]),w=Math.max(m+2*x,0),S=_?0:2*x,C=tr(i),k=C?i:dF((y+S)/w),O=y-k*m;x=O/2/(_?k:Math.max(k-1,1)),w=m+2*x,S=_?0:2*x,C||"fixed"===i||(k=u?dF((Math.abs(u)+S)/w):0),v=k*w-S,d.repeatTimes=k,d.symbolMargin=x}var M=g*(v/2),T=d.pathPosition=[];T[p.index]=n[p.wh]/2,T[f.index]="start"===a?M:"end"===a?c-M:c/2,o&&(T[0]+=o[0],T[1]+=o[1]);var D=d.bundlePosition=[];D[p.index]=n[p.xy],D[f.index]=n[f.xy];var I=d.barRectShape=s["m"]({},n);I[f.wh]=g*Math.max(Math.abs(n[f.wh]),Math.abs(T[f.index]+M)),I[p.wh]=n[p.wh];var A=d.clipShape={};A[p.xy]=-n[p.xy],A[p.wh]=h.ecSize[p.wh],A[f.xy]=0,A[f.wh]=n[f.wh]}function ZB(e){var t=e.symbolPatternSize,n=ay(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function JB(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(cF(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:i<0)&&(r=c-1-e),t[l.index]=h*(r-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function QB(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?uF(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=ZB(n),r.add(o),uF(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 eF(e,t,n){var i=s["m"]({},t.barRectShape),r=e.__pictorialBarRect;r?uF(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new as({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function tF(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,a=s["m"]({},n.clipShape),l=t.valueDim,c=n.animationModel,u=n.dataIndex;if(o)Wl(o,{shape:a},c,u);else{a[l.wh]=0,o=new as({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var h={};h[l.wh]=n.clipShape[l.wh],i[r?"updateProps":"initProps"](o,{shape:h},c,u)}}}function nF(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=iF,n.isAnimationEnabled=rF,n}function iF(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function rF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function oF(e,t,n,i){var r=new Ci,o=new Ci;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?JB(r,t,n):QB(r,t,n),eF(r,n,i),tF(r,t,n,i),r.__pictorialShapeStr=lF(e,n),r.__pictorialSymbolMeta=n,r}function aF(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;Wl(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?JB(e,t,n,!0):QB(e,t,n,!0),eF(e,n,!0),tF(e,t,n,!0)}function sF(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];cF(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),s["k"](o,(function(e){Ul(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function lF(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function cF(e,t,n){s["k"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function uF(e,t,n,r,o,a){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&i[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function hF(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),l=r.getModel(["blur","itemStyle"]).getItemStyle(),c=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");cF(e,(function(e){if(e instanceof Za){var t=e.style;e.useStyle(s["m"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=c,u&&(e.cursor=u),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;tc(g,nc(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:cC(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Dl(e,h,d,o.get("disabled"))}function dF(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var pF=WB,fF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ec(Ck.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Ck),gF=fF;function mF(e){e.registerChartView(pF),e.registerSeriesModel(gF),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(s["h"])(yk,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bk("pictorialBar"))}var vF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),l=i.getLayout("layoutInfo"),c=l.rect,u=l.boundaryGap;function h(e){return e.name}o.x=0,o.y=c.y+u[0];var d=new dS(this._layersSeries||[],a,h,h),p=[];function f(t,n,s){var l=r._layers;if("remove"!==t){for(var c,u,h=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var c=0;co&&(o=h)}return{y0:r,max:o}}function OF(e){e.registerChartView(bF),e.registerSeriesModel(wF),e.registerLayout(SF),e.registerProcessor(dO("themeRiver"))}var MF=2,TF=4,DF=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=MF,o.textConfig={inside:!0},ks(o).seriesIndex=n.seriesIndex;var a=new Cs({z2:TF,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return o(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;ks(o).dataIndex=t.dataIndex;var a=t.getModel(),l=a.getModel("emphasis"),c=t.getLayout(),u=s["m"]({},c);u.label=null;var h=t.getVisual("style");h.lineJoin="bevel";var d=t.getVisual("decal");d&&(h.decal=Xy(d,r));var p=Lk(a.getModel("itemStyle"),u,!0);s["m"](u,p),s["k"](Ls,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=Lk(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=c.r0,ql(o,{shape:{r:c.r}},n,t.dataIndex)):(Wl(o,{shape:u},n),Kl(o)),o.useStyle(h),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=l.get("focus"),m="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;Dl(this,m,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,l=Math.cos(a),c=Math.sin(a),u=this,h=u.getTextContent(),d=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=p&&Math.abs(o)Math.PI/2?"right":"left"):C&&"center"!==C?"left"===C?(b=r.r0+S,a>Math.PI/2&&(C="right")):"right"===C&&(b=r.r-S,a>Math.PI/2&&(C="left")):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,C="center"),m.style.align=C,m.style.verticalAlign=g(p,"verticalAlign")||"middle",m.x=b*l+r.cx,m.y=b*c+r.cy;var k=g(p,"rotate"),O=0;"radial"===k?(O=wa(-a),O>Math.PI/2&&O<1.5*Math.PI&&(O+=Math.PI)):"tangential"===k?(O=Math.PI/2-a,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):s["z"](k)&&(O=k*Math.PI/180),m.rotation=wa(O)})),h.dirtyStyle()},t}(_g),IF=DF,AF="sunburstRootToNode",EF="sunburstHighlight",PF="sunburstUnhighlight";function LF(e){e.registerAction({type:AF,update:"updateView"},(function(e,t){function n(t,n){var i=KE(e,[AF],t);if(i){var r=t.getViewRoot();r&&(e.direction=JE(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:EF,update:"none"},(function(e,t,n){function i(t){var n=KE(e,[EF],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(s["m"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(s["m"])(e,{type:"highlight"}))})),e.registerAction({type:PF,update:"updateView"},(function(e,t,n){e=Object(s["m"])({},e),n.dispatchAction(Object(s["m"])(e,{type:"downplay"}))}))}var NF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,l=e.getViewRoot(),c=this.group,u=e.get("renderLabelForZeroData"),h=[];l.eachNode((function(e){h.push(e)}));var d=this._oldChildren||[];function p(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];f(r,o)}0===e.length&&0===t.length||new dS(t,e,n,n).add(i).update(i).remove(s["h"](i,null)).execute()}function f(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):g(r);else if(i){var s=new IF(i,e,t,n);c.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function g(e){e&&e.piece&&(c.remove(e.piece),e.piece=null)}function m(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new IF(i,e,t,n),c.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(c.remove(r.virtualPiece),r.virtualPiece=null)}p(h,d),m(a,l),this._initEvents(),this._oldChildren=h},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Pu(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AF,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(Um),jF=NF,RF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};zF(n);var i=this._levelModels=s["H"](e.levels||[],(function(e){return new Mc(e,this,t)}),this),r=XE.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=QE(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){hP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Cf);function zF(e){var t=0;s["k"](e.children,(function(e){zF(e);var n=e.value;s["t"](n)&&(n=n[0]),t+=n}));var n=e.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["t"](e.value)?e.value[0]=n:e.value=n}var $F=RF,BF=Math.PI/180;function FF(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");s["t"](i)||(i=[0,i]),s["t"](t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),l=ji(t[0],r),c=ji(t[1],o),u=ji(i[0],a/2),h=ji(i[1],a/2),d=-e.get("startAngle")*BF,p=e.get("minAngle")*BF,f=e.getData().tree.root,g=e.getViewRoot(),m=g.depth,v=e.get("sort");null!=v&&VF(g,v);var y=0;s["k"](g.children,(function(e){!isNaN(e.getValue())&&y++}));var b=g.getValue(),_=Math.PI/(b||y)*2,x=g.depth>0,w=g.height-(x?-1:1),S=(h-u)/(w||1),C=e.get("clockwise"),k=e.get("stillShowZeroSum"),O=C?1:-1,M=function(t,n){if(t){var i=n;if(t!==f){var r=t.getValue(),o=0===b&&k?_:r*_;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&Object(s["C"])(o)&&(o=Object($t["c"])(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var l=t.ensureUniqueItemVisual(r.dataIndex,"style");Object(s["m"])(l,a)}))}))}function qF(e){e.registerChartView(jF),e.registerSeriesModel($F),e.registerLayout(Object(s["h"])(FF,"sunburst")),e.registerProcessor(Object(s["h"])(dO,"sunburst")),e.registerVisual(WF),LF(e)}var GF={color:"fill",borderColor:"stroke"},UF={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},YF=Ir(),XF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return aC(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=YF(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Cf),KF=XF;function ZF(e,t){return t=t||[0,0],s["H"](["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function JF(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:s["c"](ZF,e)}}}function QF(e,t){return t=t||[0,0],s["H"]([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function eV(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:s["c"](QF,e)}}}function tV(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function nV(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(s["c"])(tV,e)}}}function iV(e,t){return t=t||[0,0],s["H"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function rV(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:s["c"](iV,e)}}}function oV(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function aV(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(s["q"])(e,"text")))}function sV(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Object(s["q"])(a,"text")&&(o.text=a.text),Object(s["q"])(a,"rich")&&(o.rich=a.rich),Object(s["q"])(a,"textFill")&&(o.fill=a.textFill),Object(s["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(s["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(s["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(s["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(s["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var l=Object(s["q"])(a,"textPosition");n?i.position=l?a.textPosition:"inside":l&&(i.position=a.textPosition),Object(s["q"])(a,"textPosition")&&(i.position=a.textPosition),Object(s["q"])(a,"textOffset")&&(i.offset=a.textOffset),Object(s["q"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(s["q"])(a,"textDistance")&&(i.distance=a.textDistance)}return lV(o,e),Object(s["k"])(o.rich,(function(e){lV(e,e)})),{textConfig:i,textContent:r}}function lV(e,t){t&&(t.font=t.textFont||t.font,Object(s["q"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(s["q"])(t,"textAlign")&&(e.align=t.textAlign),Object(s["q"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(s["q"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(s["q"])(t,"textWidth")&&(e.width=t.textWidth),Object(s["q"])(t,"textHeight")&&(e.height=t.textHeight),Object(s["q"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(s["q"])(t,"textPadding")&&(e.padding=t.textPadding),Object(s["q"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(s["q"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(s["q"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(s["q"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(s["q"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(s["q"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(s["q"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function cV(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";uV(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(s["k"])(t.rich,(function(e){uV(e,e)})),i}function uV(e,t){t&&(Object(s["q"])(t,"fill")&&(e.textFill=t.fill),Object(s["q"])(t,"stroke")&&(e.textStroke=t.fill),Object(s["q"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(s["q"])(t,"font")&&(e.font=t.font),Object(s["q"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(s["q"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(s["q"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(s["q"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(s["q"])(t,"align")&&(e.textAlign=t.align),Object(s["q"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(s["q"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(s["q"])(t,"width")&&(e.textWidth=t.width),Object(s["q"])(t,"height")&&(e.textHeight=t.height),Object(s["q"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(s["q"])(t,"padding")&&(e.textPadding=t.padding),Object(s["q"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(s["q"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(s["q"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(s["q"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(s["q"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(s["q"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(s["q"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(s["q"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(s["q"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(s["q"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(s["q"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var hV={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},dV=Object(s["F"])(hV),pV=(Object(s["N"])(Xn,(function(e,t){return e[t]=1,e}),{}),Xn.join(", "),["","style","shape","extra"]),fV=Ir();function gV(e,t,n,i,r){var o=e+"Animation",a=Vl(e,i,r)||{},l=fV(t).userDuring;return a.duration>0&&(a.during=l?Object(s["c"])(kV,{el:t,userDuring:l}):null,a.setToFinal=!0,a.scope=e),Object(s["m"])(a,n[o]),a}function mV(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,l=n.isAnimationEnabled(),c=fV(e),u=t.style;c.userDuring=t.during;var h={},d={};if(DV(e,t,d),MV("shape",t,d),MV("extra",t,d),!o&&l&&(TV(e,t,h),OV("shape",e,t,h),OV("extra",e,t,h),IV(e,t,u,h)),d.style=u,_V(e,d,a),wV(e,t),l)if(o){var p={};Object(s["k"])(pV,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(p[e]=p[e]||{}),Object(s["m"])(e?p[e]:p,n.enterFrom))}));var f=gV("enter",e,t,n,r);f.duration>0&&e.animateFrom(p,f)}else xV(e,t,r||0,n,h);vV(e,t),u?e.dirty():e.markRedraw()}function vV(e,t){for(var n=fV(e).leaveToProps,i=0;i0&&e.animateFrom(r,o)}}function wV(e,t){Object(s["q"])(t,"silent")&&(e.silent=t.silent),Object(s["q"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof jo&&Object(s["q"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof Ha&&Object(s["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var SV={},CV={setTransform:function(e,t){return SV.el[e]=t,this},getTransform:function(e){return SV.el[e]},setShape:function(e,t){var n=SV.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=SV.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=SV.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=SV.el.style;if(t)return t[e]},setExtra:function(e,t){var n=SV.el.extra||(SV.el.extra={});return n[e]=t,this},getExtra:function(e){var t=SV.el.extra;if(t)return t[e]}};function kV(){var e=this,t=e.el;if(t){var n=fV(t).userDuring,i=e.userDuring;n===i?(SV.el=t,i(CV)):e.el=e.userDuring=null}}function OV(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var l=n.transition,c=r.transition;if(c)if(!o&&(o=i[e]={}),bV(c))Object(s["m"])(o,a);else for(var u=lr(c),h=0;h=0){!o&&(o=i[e]={});var f=Object(s["F"])(a);for(h=0;h=0)){var p=e.getAnimationStyleProps(),f=p?p.style:null;if(f){!r&&(r=i.style={});var g=Object(s["F"])(n);for(u=0;u=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function S(n,i){null==i&&(i=l);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,c=b(i,RV).getItemStyle();null!=o&&(c.fill=o),null!=a&&(c.opacity=a);var u={inheritColor:Object(s["C"])(o)?o:"#000"},h=_(i,RV),d=ic(h,null,u,!1,!0);d.text=h.getShallow("show")?Object(s["P"])(e.getFormattedLabel(i,RV),cC(t,i)):null;var p=rc(h,u,!1);return O(n,c),c=cV(c,d,p),n&&k(c,n),c.legacy=!0,c}function C(n,i){null==i&&(i=l);var r=b(i,jV).getItemStyle(),o=_(i,jV),a=ic(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(s["Q"])(e.getFormattedLabel(i,jV),e.getFormattedLabel(i,RV),cC(t,i)):null;var c=rc(o,null,!0);return O(n,r),r=cV(r,a,c),n&&k(r,n),r.legacy=!0,r}function k(e,t){for(var n in t)Object(s["q"])(t,n)&&(e[n]=t[n])}function O(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function M(e,n){if(null==n&&(n=l),Object(s["q"])(GF,e)){var i=t.getItemVisual(n,"style");return i?i[GF[e]]:null}if(Object(s["q"])(UF,e))return t.getItemVisual(n,e)}function T(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return dk(Object(s["i"])({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function I(e){return hc(e,n)}}function rH(e){var t={};return Object(s["k"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function oH(e,t,n,i,r,o,a){if(i){var s=aH(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Dl(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function aH(e,t,n,i,r,o){var a=-1,l=t;t&&sH(t,i,r)&&(a=Object(s["r"])(o.childrenRef(),t),t=null);var c=!t,u=t;u?u.clearStates():(u=JV(i),l&&XV(l,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),qV.normal.cfg=qV.normal.conOpt=qV.emphasis.cfg=qV.emphasis.conOpt=qV.blur.cfg=qV.blur.conOpt=qV.select.cfg=qV.select.conOpt=null,qV.isLegacy=!1,cH(u,n,i,r,c,qV),lH(u,n,i,r,c),QV(e,u,n,i,qV,r,c),Object(s["q"])(i,"info")&&(YF(u).info=i.info);for(var h=0;h=0?o.replaceAt(u,a):o.add(u),u}function sH(e,t,n){var i=YF(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&_H(o)&&bH(o)!==i.customPathData||"image"===r&&Object(s["q"])(a,"image")&&a.image!==i.customImagePath}function lH(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&sH(a,o,i)&&(a=null),a||(a=JV(o),e.setClipPath(a)),QV(null,a,t,o,null,i,r)}}function cH(e,t,n,i,r,o){if(!e.isGroup){uH(n,null,o),uH(n,jV,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===a)u&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=JV(a),e.setTextContent(u)),QV(null,u,t,a,null,i,r);for(var h=a&&a.style,d=0;d=u;p--){var f=t.childAt(p);fH(t,f,r)}}}function fH(e,t,n){t&&yV(t,YF(e).option,n)}function gH(e){new dS(e.oldChildren,e.newChildren,mH,mH,e).add(vH).update(vH).remove(yH).execute()}function mH(e,t){var n=e&&e.name;return null!=n?n:WV+t}function vH(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;aH(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function yH(e){var t=this.context,n=t.oldChildren[e];n&&yV(n,YF(n).option,t.seriesModel)}function bH(e){return e&&(e.pathData||e.d)}function _H(e){return e&&(Object(s["q"])(e,"pathData")||Object(s["q"])(e,"d"))}function xH(e){e.registerChartView(ZV),e.registerSeriesModel(KF)}var wH=Ir(),SH=s["d"],CH=s["c"],kH=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,l=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(l&&l.hide());a&&a.show(),l&&l.show();var c={};this.makeElOption(c,r,e,t,n);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=s["h"](OH,t,h);this.updatePointerEl(a,c,d),this.updateLabelEl(a,c,d,t)}else a=this._group=new Ci,this.createPointerEl(a,c,e,t),this.createLabelEl(a,c,e,t),n.getZr().add(a);IH(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.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=uD(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var a=wH(e).pointerEl=new i[o.type](SH(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=wH(e).labelEl=new Cs(SH(t.label));e.add(r),TH(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=wH(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=wH(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),TH(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,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)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=Am(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ie(e.event)},onmousedown:CH(this._onHandleDragMove,this,0,0),drift:CH(this._onHandleDragMove,this),ondragend:CH(this._onHandleDragEnd,this)}),i.add(r)),IH(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");s["t"](l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,Jm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){OH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,DH(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(DH(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(DH(i)),wH(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Qm(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function OH(e,t,n,i){MH(wH(n).lastProp,i)||(wH(n).lastProp=i,t?Wl(n,i,e):(n.stopAnimation(),n.attr(i)))}function MH(e,t){if(s["A"](e)&&s["A"](t)){var n=!0;return s["k"](t,(function(t,i){n=n&&MH(e[i],t)})),!!n}return e===t}function TH(e,t){e[t.get(["label","show"])?"show":"hide"]()}function DH(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function IH(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}var AH=kH;function EH(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function PH(e,t,n,i,r){var o=n.get("value"),a=NH(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=ku(s.get("padding")||0),c=s.getFont(),u=ii(a,c),h=r.position,d=u.width+l[1]+l[3],p=u.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),LH(h,d,p,i);var m=s.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:ic(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function LH(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function NH(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var l={value:JM(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};s["k"](i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&l.seriesData.push(r)})),s["C"](a)?o=a.replace("{value}",o):s["w"](a)&&(o=a(l))}return o}function jH(e,t,n){var i=ce();return fe(i,i,n.rotation),pe(i,i,n.position),Cm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function RH(e,t,n,i,r,o){var a=nD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),PH(t,i,r,o,{position:jH(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function zH(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function $H(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function BH(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var FH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=VH(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var u=EH(i),h=HH[s](o,c,l);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=PT(a.model,n);RH(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=PT(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=jH(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=VH(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(AH);function VH(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var HH={line:function(e,t,n){var i=zH([t,n[0]],[t,n[1]],WH(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:$H([t-i/2,n[0]],[i,r],WH(e))}}};function WH(e){return"x"===e.dim?0:1}var qH=FH,GH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Ku),UH=GH,YH=Ir(),XH=s["k"];function KH(e,t,n){if(!a["a"].node){var i=t.getZr();YH(i).records||(YH(i).records={}),ZH(i,t);var r=YH(i).records[e]||(YH(i).records[e]={});r.handler=n}}function ZH(e,t){function n(n,i){e.on(n,(function(n){var r=tW(t);XH(YH(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),JH(r.pendings,t)}))}YH(e).initialized||(YH(e).initialized=!0,n("click",s["h"](eW,"click")),n("mousemove",s["h"](eW,"mousemove")),n("globalout",QH))}function JH(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function QH(e,t,n){e.handler("leave",null,n)}function eW(e,t,n,i){t.handler(e,n,i)}function tW(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function nW(e,t){if(!a["a"].node){var n=t.getZr(),i=(YH(n).records||{})[e];i&&(YH(n).records[e]=null)}}var iW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";KH("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){nW("axisPointer",t)},t.prototype.dispose=function(e,t){nW("axisPointer",t)},t.type="axisPointer",t}(Of),rW=iW;function oW(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Dr(o,e);if(null==a||a<0||s["t"](a))return{point:[]};var l=o.getItemGraphicEl(a),c=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(c&&c.dataToPoint)if(e.isStacked){var u=c.getBaseAxis(),h=c.getOtherAxis(u),d=h.dim,p=u.dim,f="x"===d||"radius"===d?1:0,g=o.mapDimension(p),m=[];m[f]=o.get(g,a),m[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=c.dataToPoint(m)||[]}else i=c.dataToPoint(o.getValues(s["H"](c.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:l}}var aW=Ir();function sW(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||Object(s["c"])(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){vW(r)&&(r=oW({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var c=vW(r),u=o.axesInfo,h=l.axesInfo,d="leave"===i||vW(r),p={},f={},g={list:[],map:{}},m={showPointer:Object(s["h"])(uW,f),showTooltip:Object(s["h"])(hW,g)};Object(s["k"])(l.coordSysMap,(function(e,t){var n=c||e.containPoint(r);Object(s["k"])(l.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=gW(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||c||(a=i.pointToData(r)),null!=a&&lW(e,a,m,!1,p)}}))}));var v={};return Object(s["k"])(h,(function(e,t){var n=e.linkGroup;n&&!f[t]&&Object(s["k"])(n.axesInfo,(function(t,i){var r=f[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,mW(t),mW(e)))),v[e.key]=o}}))})),Object(s["k"])(v,(function(e,t){lW(h[t],e,m,!0,p)})),dW(f,h,p),pW(g,r,e,a),fW(h,a,n),p}}function lW(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=cW(t,e),l=a.payloadBatch,c=a.snapToValue;l[0]&&null==r.seriesIndex&&Object(s["m"])(r,l[0]),!i&&e.snap&&o.containData(c)&&null!=c&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,a,c)}else n.showPointer(e,t)}function cW(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,l=-1;return Object(s["k"])(t.seriesModels,(function(t,c){var u,h,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);h=p.dataIndices,u=p.nestestValue}else{if(h=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!h.length)return;u=t.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var f=e-u,g=Math.abs(f);g<=a&&((g=0&&l<0)&&(a=g,l=f,r=u,o.length=0),Object(s["k"])(h,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function uW(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function hW(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,c=pD(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim: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 dW(e,t,n){var i=n.axesInfo=[];Object(s["k"])(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function pW(e,t,n,i){if(!vW(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function fW(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=aW(i)[r]||{},a=aW(i)[r]={};Object(s["k"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(s["k"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var l=[],c=[];Object(s["k"])(o,(function(e,t){!a[t]&&c.push(e)})),Object(s["k"])(a,(function(e,t){!o[t]&&l.push(e)})),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function gW(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function mW(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function vW(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function yW(e){mD.registerAxisPointerClass("CartesianAxisPointer",qH),e.registerComponentModel(UH),e.registerComponentView(rW),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(s["t"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=iD(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sW)}function bW(e){N_(TD),N_(yW)}var _W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),c=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var h=EH(i),d=wW[u](o,a,c,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),f=xW(t,n,i,a,p);PH(e,n,i,r,f)},t}(AH);function xW(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=ce();fe(d,d,s),pe(d,d,[i.cx,i.cy]),l=Cm([a,-r],d);var p=t.getModel("axisLabel").get("rotate")||0,f=nD.innerTextLayout(s,p*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var wW={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:zH(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:BH(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:BH(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},SW=_W,CW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Ku),kW=CW,OW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Lr).models[0]},t.type="polarAxis",t}(Ku);s["K"](OW,FO);var MW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="angleAxis",t}(OW),TW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="radiusAxis",t}(OW),DW=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(IT);DW.prototype.dataToRadius=IT.prototype.dataToCoord,DW.prototype.radiusToData=IT.prototype.coordToData;var IW=DW,AW=Ir(),EW=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=ii(null==o?"":o+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),d=AW(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},t}(IT);EW.prototype.dataToAngle=IT.prototype.dataToCoord,EW.prototype.angleToData=IT.prototype.coordToData;var PW=EW,LW=["radius","angle"],NW=function(){function e(e){this.dimensions=LW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new IW,this._angleAxis=new PW,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),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(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=la)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=jW(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=jW(t);return i===this?this.pointToData(n):null},e}();function jW(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var RW=NW;function zW(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=ji(i[0],r),e.cy=ji(i[1],o);var a=e.getRadiusAxis(),l=Math.min(r,o)/2,c=t.get("radius");null==c?c=[0,"100%"]:s["t"](c)||(c=[0,c]);var u=[ji(c[0],l),ji(c[1],l)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function $W(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();s["k"](iT(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),s["k"](iT(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),YM(i.scale,i.model),YM(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 BW(e){return"angleAxis"===e.mainType}function FW(e,t){if(e.type=t.get("type"),e.scale=XM(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),BW(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var VW={dimensions:LW,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new RW(i+"");r.update=$W;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");FW(o,s),FW(a,l),zW(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Lr).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},HW=VW,WW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function qW(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function GW(e){var t=e.getRadiusAxis();return t.inverse?0:1}function UW(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var YW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),l=s["H"](n.getViewLabels(),(function(e){e=s["d"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));UW(l),UW(o),s["k"](WW,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||XW[t](this.group,e,i,o,a,r,l)}),this)}},t.type="angleAxis",t}(mD),XW={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=GW(n),c=l?0:1;a=0===o[c]?new Qf({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Sg({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),c=o[GW(n)],u=s["H"](i,(function(e){return new Ng({shape:qW(n,[c,c+l],e.coord)})}));e.add(ym(u,{style:s["i"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),l=t.getModel("minorTick"),c=(a.get("inside")?-1:1)*l.get("length"),u=o[GW(n)],h=[],d=0;dg?"left":"right",y=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";if(l&&l[d]){var b=l[d];s["A"](b)&&b.textStyle&&(a=new Mc(b.textStyle,c,c.ecModel))}var _=new Cs({silent:nD.isLabelSilent(t),style:ic(a,{x:f[0],y:f[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:y})});if(e.add(_),h){var x=nD.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=i.rawLabel,ks(_).eventData=x}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),l=a.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d=0?"p":"n",O=_;y&&(i[s][C]||(i[s][C]={p:_,n:_}),O=i[s][C][k]);var M=void 0,T=void 0,D=void 0,I=void 0;if("radius"===h.dim){var A=h.dataToCoord(S)-_,E=o.dataToCoord(C);Math.abs(A)=I})}}}))}function aq(e){var t={};s["k"](e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=rq(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[a]=c;var h=iq(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=ji(e.get("barWidth"),l),p=ji(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)}));var n={};return s["k"](t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=ji(e.categoryGap,r),a=ji(e.gap,1),l=e.remainedWidth,c=e.autoWidthCount,u=(l-o)/(c+(c-1)*a);u=Math.max(u,0),s["k"](i,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Cq(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Cq(t);return i===this?this.pointToData(n):null},e}();function Cq(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var kq=Sq;function Oq(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new kq(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Lr).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var Mq={create:Oq,dimensions:wq},Tq=Mq,Dq=["x","y"],Iq=["width","height"],Aq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Lq(a,1-Pq(o)),l=a.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=EH(i),h=Eq[c](o,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=dq(n);RH(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=dq(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=jH(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=Pq(r),s=Lq(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=Lq(o,1-a),u=(c[1]+c[0])/2,h=[u,u];return h[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(AH),Eq={line:function(e,t,n){var i=zH([t,n[0]],[t,n[1]],Pq(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:$H([t-i/2,n[0]],[i,r],Pq(e))}}};function Pq(e){return e.isHorizontal()?0:1}function Lq(e,t){var n=e.getRect();return[n[Dq[t]],n[Dq[t]]+n[Iq[t]]]}var Nq=Aq,jq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="single",t}(Of);function Rq(e){N_(yW),mD.registerAxisPointerClass("SingleAxisPointer",Nq),e.registerComponentView(jq),e.registerComponentView(vq),e.registerComponentModel(bq),eM(e,"single",bq,bq.defaultOption),e.registerCoordinateSystem("single",Tq)}var zq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n,i){var r=qu(t);e.prototype.init.apply(this,arguments),$q(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),$q(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Ku);function $q(e,t){var n,i=e.cellSize;n=s["t"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=s["H"]([0,1],(function(e){return Vu(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Wu(e,t,{type:"box",ignoreSize:r})}var Bq=zq,Fq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new as({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(t.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)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Ag({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(s["C"])(e)&&e?Iu(e,t):Object(s["w"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[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]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.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,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new Cs({z2:30,style:ic(r,{text:g})});m.attr(this._yearTextPositionControl(m,h[a],n,a,o)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),l=r.get("position"),c=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(s["C"])(o)||(o&&(t=Hc(o)||t),o=t.get(["time","monthAbbr"])||[]);var h="start"===l?0:1,d="horizontal"===n?0:1;a="start"===l?-a:a;for(var p="center"===c,f=0;f=i.start.time&&n.timea.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/Hq)-Math.floor(n[0].time/Hq)+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){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function qq(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var Gq=Wq;function Uq(e){e.registerComponentModel(Bq),e.registerComponentView(Vq),e.registerCoordinateSystem("calendar",Gq)}function Yq(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Xq(e,t){var n;return s["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function Kq(e,t,n){var i=s["m"]({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(s["I"](r,i,!0),Wu(r,i,{ignoreSize:!0}),Gu(n,r),Qq(n,r),Qq(n,r,"shape"),Qq(n,r,"style"),Qq(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var Zq=["transition","enterFrom","leaveTo"],Jq=Zq.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qq(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?Zq:Jq,r=0;r=0;c--){u=n[c],h=wr(u.id,null),d=null!=h?r.get(h):null;if(d){p=d.parent,m=iG(p);var v=p===i?{width:o,height:a}:{width:m.width,height:m.height},y={},b=Fu(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!iG(d).isNew&&b){for(var _=u.transition,x={},w=0;w=0)?x[S]=C:d[S]=C}Wl(d,x,e,0)}else d.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){sG(n,iG(n).option,t,e._lastGraphicModel)})),this._elMap=s["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Of);function oG(e){var t=s["q"](nG,e)?nG[e]:fm(e);var n=new t({});return iG(n).type=e,n}function aG(e,t,n,i){var r=oG(n);return t.add(r),i.set(e,r),iG(r).id=e,iG(r).isNew=!0,r}function sG(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){sG(e,t,n,i)})),yV(e,t,i),n.removeKey(iG(e).id))}function lG(e,t,n,i){e.isGroup||s["k"]([["cursor",jo.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];s["q"](t,i)?e[i]=s["P"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),s["k"](s["F"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=s["w"](i)?i:null}})),s["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function cG(e){return e=s["m"]({},e),s["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Nu),(function(t){delete e[t]})),e}function uG(e,t,n){var i=ks(e).eventData;e.silent||e.ignore||i||(i=ks(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function hG(e){e.registerComponentModel(tG),e.registerComponentView(rG),e.registerPreprocessor((function(e){var t=e.graphic;Object(s["t"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var dG=["x","y","radius","angle","single"],pG=["cartesian2d","polar","singleAxis"];function fG(e){var t=e.get("coordinateSystem");return Object(s["r"])(pG,t)>=0}function gG(e){return e+"Axis"}function mG(e,t){var n,i=Object(s["f"])(),r=[],o=Object(s["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&c(e)&&(l(e),n=!0)}function l(e){o.set(e.uid,!0),r.push(e),u(e)}function c(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function vG(e){var t=e.ecModel,n={infoList:[],infoMap:Object(s["f"])()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(gG(e),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 yG=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),bG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(t,e),t.prototype.init=function(e,t,n){var i=_G(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=_G(e);Object(s["I"])(this.option,e,!0),Object(s["I"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(s["f"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(s["k"])(dG,(function(n){var i=this.getReferringComponents(gG(n),Nr);if(i.specified){t=!0;var r=new yG;Object(s["k"])(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new yG;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Lr).models[0];a&&Object(s["k"])(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Lr).models[0]&&o.add(e.componentIndex)}))}}}i&&Object(s["k"])(dG,(function(t){if(i){var r=n.findComponents({mainType:gG(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new yG;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(s["k"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(gG(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(s["k"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(gG(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(s["k"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(u&&!h&&!d)return!0;u&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n}))}else TG(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));TG(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;TG(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ni(n[0]+o,n,[0,100],!0):null!=r&&(o=Ni(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Fi(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function AG(e,t,n){var i=[1/0,-1/0];TG(n,(function(e){rT(i,e.getData(),t)}));var r=e.getAxisModel(),o=WM(r.axis.scale,r,i).calculate();return[o.min,o.max]}var EG=IG,PG={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(gG(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new EG(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=Object(s["f"])();return Object(s["k"])(n,(function(e){Object(s["k"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},LG=PG;function NG(e){e.registerAction("dataZoom",(function(e,t){var n=mG(t,e);Object(s["k"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var jG=!1;function RG(e){jG||(jG=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,LG),NG(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function zG(e){e.registerComponentModel(SG),e.registerComponentView(MG),RG(e)}var $G=function(){function e(){}return e}(),BG={};function FG(e,t){BG[e]=t}function VG(e){return BG[e]}var HG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;s["k"](this.option.feature,(function(e,n){var i=VG(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),s["I"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Ku),WG=HG;function qG(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Bu(i,o,r);zu(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Fu(e,i,o,r)}function GG(e,t){var n=ku(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new as({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var UG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),l=e.get("feature")||{},c=this._features||(this._features={}),u=[];s["k"](l,(function(e,t){u.push(t)})),new dS(this._featureNames||[],u).add(h).update(h).remove(s["h"](h,null)).execute(),this._featureNames=u,qG(r,e,n),r.add(GG(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),l=e.getTextContent(),c=l&&l.ensureState("emphasis");if(c&&!s["w"](c)&&t){var u=c.style||(c.style={}),h=ii(t,Cs.makeFont(u)),d=e.x+r.x,p=e.y+r.y+o,f=!1;p+h.height>n.getHeight()&&(a.position="top",f=!0);var g=f?-5-h.height:o+10;d+h.width/2>n.getWidth()?(a.position=["100%",g],u.align="right"):d-h.width/2<0&&(a.position=[0,g],u.align="left")}}))}function h(r,o){var a,s=u[r],h=u[o],p=l[s],f=new Mc(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===s&&(p.title=i.newTitle),s&&!h){if(YG(s))a={onclick:f.option.onclick,featureName:s};else{var g=VG(s);if(!g)return;a=new g}c[s]=a}else if(a=c[h],!a)return;a.uid=Dc("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var m=a instanceof $G;s||!h?!f.get("show")||m&&a.unusable?m&&a.remove&&a.remove(t,n):(d(f,a,s),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?ul:hl)(i[e])},a instanceof $G&&a.render&&a.render(f,t,n,i)):m&&a.dispose&&a.dispose(t,n)}function d(i,l,c){var u,h,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),f=l instanceof $G&&l.getIcons?l.getIcons():i.get("icon"),g=i.get("title")||{};s["C"](f)?(u={},u[c]=f):u=f,s["C"](g)?(h={},h[c]=g):h=g;var m=i.iconPaths={};s["k"](u,(function(c,u){var f=Am(c,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(d.getItemStyle());var g=f.ensureState("emphasis");g.style=p.getItemStyle();var v=new Cs({style:{text:h[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(v),jm({el:f,componentModel:e,itemName:u,formatterParamsExtra:{title:h[u]}}),f.__title=h[u],f.on("mouseover",(function(){var t=p.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?ul:hl)(f),r.add(f),f.on("click",s["c"](l.onclick,l,t,n,u)),m[u]=f}))}},t.prototype.updateView=function(e,t,n,i){s["k"](this._features,(function(e){e instanceof $G&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){s["k"](this._features,(function(n){n instanceof $G&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){s["k"](this._features,(function(n){n instanceof $G&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Of);function YG(e){return 0===e.indexOf("my")}var XG=UG,KG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",l=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),c=a["a"].browser;if(Object(s["w"])(MouseEvent)&&(c.newEdge||!c.ie&&!c.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||r){var d=l.split(","),p=d[0].indexOf("base64")>-1,f=r?decodeURIComponent(d[1]):d[1];p&&(f=window.atob(f));var g=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var m=f.length,v=new Uint8Array(m);while(m--)v[m]=f.charCodeAt(m);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(f),x.close(),_.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var w=n.get("lang"),S='',C=window.open();C.document.write(S),C.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}($G),ZG=KG,JG="__ec_magicType_stack__",QG=[["line","bar"],["stack"]],eU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return s["k"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(tU[n]){var o,a={series:[]},l=function(e){var t=e.subType,r=e.id,o=tU[n](t,r,e,i);o&&(s["i"](o,e.option),a.series.push(o));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var c=l.getAxesByScale("ordinal")[0];if(c){var u=c.dim,h=u+"Axis",d=e.getReferringComponents(h,Lr).models[0],p=d.componentIndex;a[h]=a[h]||[];for(var f=0;f<=p;f++)a[h][p]=a[h][p]||{};a[h][p].boundaryGap="bar"===n}}};s["k"](QG,(function(e){s["r"](e,n)>=0&&s["k"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},l);var c=n;"stack"===n&&(o=s["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(c="tiled")),t.dispatchAction({type:"changeMagicType",currentType:c,newOption:a,newTitle:o,featureName:"magicType"})}},t}($G),tU={line:function(e,t,n,i){if("bar"===e)return s["I"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return s["I"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===JG;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),s["I"]({id:t,stack:r?"":JG},i.get(["option","stack"])||{},!0)}};C_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var nU=eU,iU=new Array(60).join("-"),rU="\t";function oU(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function aU(e){var t=[];return s["k"](e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(s["H"](e.series,(function(e){return e.name}))),l=[i.model.getCategories()];s["k"](e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var c=[a.join(rU)],u=0;u=0)return!0}var hU=new RegExp("["+rU+"]+","g");function dU(e){for(var t=e.split(/\n+/g),n=cU(t.shift()).split(hU),i=[],r=s["H"](n,(function(e){return{name:e,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function xU(e){var t=CU(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return yU(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function wU(e){bU(e).snapshots=null}function SU(e){return CU(e).length}function CU(e){var t=bU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var kU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){wU(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}($G);C_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var OU=kU,MU=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],TU=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=IU(t,e);Object(s["k"])(AU,(function(e,t){(!n||!n.include||Object(s["r"])(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=LU[e.brushType](0,n,t);e.__rangeOffset={offset:jU[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(s["k"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(s["k"])(i.coordSyses,(function(i){var r=LU[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(s["k"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=LU[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?jU[e.brushType](i.values,r.offset,zU(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(s["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:pz(i),isTargetByCursor:gz(i,e,n.coordSysModel),getLinearBrushOtherExtent:fz(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(s["r"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=IU(t,e),r=0;re[1]&&e.reverse(),e}function IU(e,t){return Er(e,t,{includeMainTypes:MU})}var AU={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=Object(s["f"])(),a={},l={};(n||i||r)&&(Object(s["k"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(s["k"])(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),l[t.id]=!0})),Object(s["k"])(r,(function(e){o.set(e.id,e),a[e.id]=!0,l[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];Object(s["k"])(r.getCartesians(),(function(e,t){(Object(s["r"])(n,e.getAxis("x").model)>=0||Object(s["r"])(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:PU.grid,xAxisDeclared:a[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){Object(s["k"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:PU.geo})}))}},EU=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],PU={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Sm(e)),t}},LU={lineX:Object(s["h"])(NU,0),lineY:Object(s["h"])(NU,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[DU([r[0],o[0]]),DU([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(s["H"])(n,(function(n){var o=e?t.pointToData(n,i):t.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}));return{values:o,xyMinMax:r}}};function NU(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=DU(Object(s["H"])([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var jU={lineX:Object(s["h"])(RU,0),lineY:Object(s["h"])(RU,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(s["H"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function RU(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function zU(e,t){var n=$U(e),i=$U(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function $U(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var BU=TU,FU=s["k"],VU=kr("toolbox-dataZoom_"),HU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new dz(n.getZr()),this._brushController.on("brush",s["c"](this._onBrush,this)).mount()),UU(e,t,this,i,n),GU(e,t)},t.prototype.onclick=function(e,t,n){WU[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new BU(qU(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),_U(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=Zj(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];FU(e,(function(e,n){t.push(s["d"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}($G),WU={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(xU(this.ecModel))}};function qU(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function GU(e,t){e.setIconStatus("back",SU(t)>1?"emphasis":"normal")}function UU(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new BU(qU(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}bh("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=qU(i),a=Er(e,o);return FU(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),FU(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:VU+t+o};a[n]=o,r.push(a)}}));var YU=HU;function XU(e){e.registerComponentModel(WG),e.registerComponentView(XG),FG("saveAsImage",ZG),FG("magicType",nU),FG("dataView",vU),FG("dataZoom",YU),FG("restore",OU),N_(zG)}var KU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Ku),ZU=KU;function JU(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function QU(e){if(a["a"].domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n-1?(c+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100;c+=";"+a+":-"+f+"px";var g=t+" solid "+r+"px;",m=["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",c+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'
'}function cY(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=a["a"].transformSupported?","+oY+i:",left"+i+",top"+i),rY+":"+r}function uY(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!a["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=a["a"].transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+oY+":"+s+";":[["top",0],["left",0],[eY,s]]}function hY(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+l+"px "+o+"px "+r),Object(s["k"])(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function dY(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),h=e.getModel("textStyle"),d=lf(e,"html"),p=c+"px "+u+"px "+a+"px "+l;return i.push("box-shadow:"+p),t&&r&&i.push(cY(r,n)),o&&i.push("background-color:"+o),Object(s["k"])(["width","color","radius"],(function(t){var n="border-"+t,r=Cu(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(hY(h)),null!=d&&i.push("padding:"+ku(d).join("px ")+"px"),i.join(";")+";"}function pY(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&$(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var fY=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,a["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;pY(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!s._enterable){var t=r.handler,n=r.painter.getViewportRoot();Q(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=iY(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=aY+dY(e,!this._firstShow,this._longHide)+uY(r[0],r[1],!0)+"border-color:"+Eu(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(Object(s["C"])(r)&&"item"===n.get("trigger")&&!JU(n)&&(a=lY(n,i,r)),Object(s["C"])(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(s["t"])(e)||(e=[e]);for(var l=0;l=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!a["a"].node&&n.getDom()){var r=CY(i,n);this._ticket="";var o=i.dataByCoordSys,s=DY(i,t,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var c=xY;c.x=i.x,c.y=i.y,c.update(),ks(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},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(e,t,n,i))return;var u=oW(i,t),h=u.point[0],d=u.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,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(CY(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),c=SY([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,Gv(n,(function(e){return null!=ks(e).dataIndex?(o=e,!0):null!=ks(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(s["c"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=SY([t.tooltipOption],i),a=this._renderMode,l=[],c=Up("section",{blocks:[],noHeader:!0}),u=[],h=new cf;Object(s["k"])(e,(function(e){Object(s["k"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=NH(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Up("section",{header:o,noHeader:!Object(s["T"])(o),sortBlocks:!0,blocks:[]});c.blocks.push(d),Object(s["k"])(e.seriesDataIndices,(function(c){var p=n.getSeriesByIndex(c.seriesIndex),f=c.dataIndexInside,g=p.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=e.axisDim,g.axisIndex=e.axisIndex,g.axisType=e.axisType,g.axisId=e.axisId,g.axisValue=JM(t.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",Eu(g.color),a);var m=ip(p.formatTooltip(f,!0,null)),v=m.frag;if(v){var y=SY([p],i).get("valueFormatter");d.blocks.push(y?Object(s["m"])({valueFormatter:y},v):v)}m.text&&u.push(m.text),l.push(g)}}))}}))})),c.blocks.reverse(),u.reverse();var d=t.position,p=o.get("order"),f=Qp(c,h,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var g="richText"===a?"\n\n":"
",m=u.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",r[0],r[1],d,null,h)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=ks(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),l=r.dataModel||a,c=r.dataIndex,u=r.dataType,h=l.getData(u),d=this._renderMode,p=e.positionDefault,f=SY([h.getItemModel(c),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=f.get("trigger");if(null==g||"item"===g){var m=l.getDataParams(c,u),v=new cf;m.marker=v.makeTooltipMarker("item",Eu(m.color),d);var y=ip(l.formatTooltip(c,!1,u)),b=f.get("order"),_=f.get("valueFormatter"),x=y.frag,w=x?Qp(_?Object(s["m"])({valueFormatter:_},x):x,v,d,b,i.get("useUTC"),f.get("textStyle")):y.text,S="item_"+l.name+"_"+c;this._showOrMove(f,(function(){this._showTooltipContent(f,w,m,S,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=ks(t),r=i.tooltipConfig,o=r.option||{};if(Object(s["C"])(o)){var a=o;o={content:a,formatter:a}}var l=[o],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&l.push(c),l.push({formatter:o.content});var u=e.positionDefault,h=SY(l,this._tooltipModel,u?{position:u}:null),d=h.get("content"),p=Math.random()+"",f=new cf;this._showOrMove(h,(function(){var n=Object(s["d"])(h.get("formatterParams")||{});this._showTooltipContent(h,d,n,p,e.offsetX,e.offsetY,e.position,t,f)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,l,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var h=e.get("formatter");a=a||e.get("position");var d=t,p=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),f=p.color;if(h)if(Object(s["C"])(h)){var g=e.ecModel.get("useUTC"),m=Object(s["t"])(n)?n[0]:n,v=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,v&&(d=ou(m.axisValue,d,g)),d=Du(d,n,!0)}else if(Object(s["w"])(h)){var y=Object(s["c"])((function(t,i){t===this._ticket&&(u.setContent(i,c,e,f,a),this._updatePosition(e,a,r,o,u,n,l))}),this);this._ticket=i,d=h(n,i,y)}else d=h;u.setContent(d,c,e,f,a),u.show(e,f),this._updatePosition(e,a,r,o,u,n,l)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||Object(s["t"])(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(s["t"])(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),h=e.get("align"),d=e.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Object(s["w"])(t)&&(t=t([n,i],o,r.el,p,{viewSize:[l,c],contentSize:u.slice()})),Object(s["t"])(t))n=ji(t[0],l),i=ji(t[1],c);else if(Object(s["A"])(t)){var f=t;f.width=u[0],f.height=u[1];var g=Bu(f,{width:l,height:c});n=g.x,i=g.y,h=null,d=null}else if(Object(s["C"])(t)&&a){var m=MY(t,p,u,e.get("borderWidth"));n=m[0],i=m[1]}else{m=kY(n,i,r,l,c,h?null:20,d?null:20);n=m[0],i=m[1]}if(h&&(n-=TY(h)?u[0]/2:"right"===h?u[0]:0),d&&(i-=TY(d)?u[1]/2:"bottom"===d?u[1]:0),JU(e)){m=OY(n,i,r,l,c);n=m[0],i=m[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&Object(s["k"])(n,(function(n,o){var a=n.dataByAxis||[],l=e[o]||{},c=l.dataByAxis||[];r=r&&a.length===c.length,r&&Object(s["k"])(a,(function(e,n){var o=c[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length,r&&Object(s["k"])(a,(function(e,t){var n=l[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&Object(s["k"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!a["a"].node&&t.getDom()&&(Qm(this,"_updatePosition"),this._tooltipContent.dispose(),nW("itemTooltip",t))},t.type="tooltip",t}(Of);function SY(e,t,n){var i,r=t.ecModel;n?(i=new Mc(n,r,r),i=new Mc(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Mc&&(a=a.get("tooltip",!0)),Object(s["C"])(a)&&(a={formatter:a}),a&&(i=new Mc(a,i,r)))}return i}function CY(e,t){return e.dispatchAction||Object(s["c"])(t.dispatchAction,t)}function kY(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],c=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+c+a>r?t-=c+a:t+=a),[e,t]}function OY(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function MY(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-r/2,l=t.y+u/2-o/2;break;case"top":s=t.x+c/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-r/2,l=t.y+u+a;break;case"left":s=t.x-r-a,l=t.y+u/2-o/2;break;case"right":s=t.x+c+a,l=t.y+u/2-o/2}return[s,l]}function TY(e){return"center"===e||"middle"===e}function DY(e,t,n){var i=Pr(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=jr(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=ks(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var IY=wY;function AY(e){N_(yW),e.registerComponentModel(ZU),e.registerComponentView(IY),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s["L"])}var EY=["rect","polygon","keep","clear"];function PY(e,t){var n=lr(e?e.brush:[]);if(n.length){var i=[];s["k"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;s["t"](r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),l=a.type||(a.type=[]);l.push.apply(l,i),LY(l),t&&!l.length&&l.push.apply(l,EY)}}function LY(e){var t={};s["k"](e,(function(e){t[e]=1})),e.length=0,s["k"](t,(function(t,n){e.push(n)}))}var NY=s["k"];function jY(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function RY(e,t,n){var i={};return NY(t,(function(t){var o=i[t]=r();NY(e[t],(function(e,i){if(rL.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new rL(r),"opacity"===i&&(r=s["d"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new rL(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function zY(e,t,n){var i;s["k"](n,(function(e){t.hasOwnProperty(e)&&jY(t[e])&&(i=!0)})),i&&s["k"](n,(function(n){t.hasOwnProperty(n)&&jY(t[n])?e[n]=s["d"](t[n]):delete e[n]}))}function $Y(e,t,n,i,r,o){var a,l={};function c(e){return Bv(n,a,e)}function u(e,t){Vv(n,a,e,t)}function h(e,s){a=null==o?e:s;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),p=t[d],f=l[d],g=0,m=f.length;gt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&tX(t)}};function tX(e){return new De(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var nX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new dz(t.getZr())).on("brush",s["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){YY(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:s["d"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:s["d"](n),$from:t})},t.type="brush",t}(Of),iX=nX,rX="#ddd",oX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return o(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&zY(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:rX},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=s["H"](e,(function(e){return aX(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=aX(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ku);function aX(e,t){return s["I"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Mc(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var sX=oX,lX=["rect","polygon","lineX","lineY","keep","clear"],cX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,s["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return s["k"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:lX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}($G),uX=cX;function hX(e){e.registerComponentView(iX),e.registerComponentModel(sX),e.registerPreprocessor(PY),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,XY),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},s["L"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},s["L"]),FG("brush",uX)}var dX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ku),pX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),l=s["P"](e.get("textBaseline"),e.get("textVerticalAlign")),c=new Cs({style:ic(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=c.getBoundingRect(),h=e.get("subtext"),d=new Cs({style:ic(o,{text:h,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),f=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!p&&!g,d.silent=!f&&!g,p&&c.on("click",(function(){Pu(p,"_"+e.get("target"))})),f&&d.on("click",(function(){Pu(f,"_"+e.get("subtarget"))})),ks(c).eventData=ks(d).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(d);var m=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=Bu(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),l||(l=e.get("top")||e.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?y.y+=y.height:"middle"===l&&(y.y+=y.height/2),l=l||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var b={align:a,verticalAlign:l};c.setStyle(b),d.setStyle(b),m=i.getBoundingRect();var _=y.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new as({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(Of);function fX(e){e.registerComponentModel(dX),e.registerComponentView(pX)}var gX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],Object(s["k"])(n,(function(t,n){var i,o=wr(hr(t),"");Object(s["A"])(t)?(i=Object(s["d"])(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new VS([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ku),mX=gX,vX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline.slider",t.defaultOption=Ec(mX.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(mX);Object(s["K"])(vX,np.prototype);var yX=vX,bX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline",t}(Of),_X=bX,xX=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return o(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(IT),wX=xX,SX=Math.PI,CX=Ir(),kX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return Up("nameValue",{noName:!0,value:t})},Object(s["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=MX(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:SX/2},p="vertical"===r?o.height:o.width,f=e.getModel("controlStyle"),g=f.get("show",!0),m=g?f.get("itemSize"):0,v=g?f.get("itemGap"):0,y=m+v,b=e.get(["label","rotate"])||0;b=b*SX/180;var _=f.get("position",!0),x=g&&f.get("showPlayBtn",!0),w=g&&f.get("showPrevBtn",!0),S=g&&f.get("showNextBtn",!0),C=0,k=p;"left"===_||"bottom"===_?(x&&(a=[0,0],C+=y),w&&(l=[C,0],C+=y),S&&(c=[k-m,0],k-=y)):(x&&(a=[k-m,0],k-=y),w&&(l=[0,0],C+=y),S&&(c=[k-m,0],k-=y));var O=[C,k];return e.get("inverse")&&O.reverse(),{viewRect:o,mainLength:p,orient:r,rotation:d[r],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||h[r],playPosition:a,prevBtnPosition:l,nextBtnPosition:c,axisExtent:O,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=ce(),a=r.x,l=r.y+r.height;pe(o,o,[-a,-l]),fe(o,o,-SX/2),pe(o,o,[a,l]),r=r.clone(),r.applyTransform(o)}var c=v(r),u=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=[n.x,n.y],p=[i.x,i.y];p[0]=d[0]=c[0][0];var f=e.labelPosOpt;if(null==f||Object(s["C"])(f)){var g="+"===f?0:1;y(d,u,c,1,g),y(p,h,c,1,1-g)}else{g=f>=0?0:1;y(d,u,c,1,g),p[1]=d[1]+f}function m(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(d),i.setPosition(p),n.rotation=i.rotation=e.rotation,m(n),m(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=OX(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new wX("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Ci;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Ng({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(s["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Ng({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(s["i"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(s["k"])(a,(function(e){var a=n.dataToCoord(e.value),l=o.getItemModel(e.value),c=l.getModel("itemStyle"),u=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(s["c"])(r._changeTimeline,r,e.value)},p=DX(l,c,t,d);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),Ml(p);var f=ks(p);l.get("tooltip")?(f.dataIndex=e.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(p)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),l=n.getViewLabels();this._tickLabels=[],Object(s["k"])(l,(function(i){var o=i.tickValue,l=a.getItemModel(o),c=l.getModel("label"),u=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),p=new Cs({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(s["c"])(r._changeTimeline,r,o),silent:!1,style:ic(c,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=ic(u),p.ensureState("progress").style=ic(h),t.add(p),Ml(p),CX(p).dataIndex=o,r._tickLabels.push(p)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),u=i.get("inverse",!0);function h(e,n,c,u){if(e){var h=si(Object(s["P"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-h/2,h,h],p=TX(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:c});p.ensureState("emphasis").style=l,t.add(p),Ml(p)}}h(e.nextBtnPosition,"next",Object(s["c"])(this._changeTimeline,this,u?"-":"+")),h(e.prevBtnPosition,"prev",Object(s["c"])(this._changeTimeline,this,u?"+":"-")),h(e.playPosition,c?"stop":"play",Object(s["c"])(this._handlePlayClick,this,!c),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),l=this,c={onCreate:function(e){e.draggable=!0,e.drift=Object(s["c"])(l._handlePointerDrag,l),e.ondragend=Object(s["c"])(l._handlePointerDragend,l),IX(e,l._progressLine,o,n,i,!0)},onUpdate:function(e){IX(e,l._progressLine,o,n,i)}};this._currentPointer=DX(a,a,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=zi(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var YX={min:Object(s["h"])(UX,"min"),max:Object(s["h"])(UX,"max"),average:Object(s["h"])(UX,"average"),median:Object(s["h"])(UX,"median")};function XX(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!GX(t)&&!Object(s["t"])(t.coord)&&Object(s["t"])(r)){var o=KX(t,n,i,e);if(t=Object(s["d"])(t),t.type&&YX[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(s["r"])(r,o.baseAxis.dim),l=Object(s["r"])(r,o.valueAxis.dim),c=YX[t.type](n,o.baseDataDim,o.valueDataDim,a,l);t.coord=c[0],t.value=c[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(s["t"])(r))for(var u=t.coord,h=0;h<2;h++)YX[u[h]]&&(u[h]=tK(n,n.mapDimension(r[h]),u[h]));else t.coord=[];return t}}function KX(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(ZX(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function ZX(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function JX(e,t){return!(e&&e.containData&&t.coord&&!qX(t))||e.containData(t.coord)}function QX(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!qX(t)&&!qX(n))||e.containZone(t.coord,n.coord)}function eK(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return sp(o,t[r])}:function(e,n,i,r){return sp(e.value,t[r])}}function tK(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var nK=Ir(),iK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this.markerGroupMap=Object(s["f"])()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){nK(e).keep=!1})),t.eachSeries((function(e){var r=VX.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!nK(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){nK(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(s["k"])(e,(function(e){var i=VX.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?dl(e):pl(e))}))}}))},t.type="marker",t}(Of),rK=iK;function oK(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=ji(a.get("x"),n.getWidth()),l=ji(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var c=e.get(i.dimensions[0],r),u=e.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var aK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=VX.getMarkerModelFromSeries(e,"markPoint");t&&(oK(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new yC),u=sK(r,e,t);t.setData(u),oK(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),c=n.getShallow("symbolKeepAspect");if(Object(s["w"])(i)||Object(s["w"])(r)||Object(s["w"])(o)||Object(s["w"])(l)){var h=t.getRawValue(e),d=t.getDataParams(e);Object(s["w"])(i)&&(i=i(h,d)),Object(s["w"])(r)&&(r=r(h,d)),Object(s["w"])(o)&&(o=o(h,d)),Object(s["w"])(l)&&(l=l(h,d))}var p=n.getModel("itemStyle").getItemStyle(),f=Fv(a,"color");p.fill||(p.fill=f),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:l,symbolKeepAspect:c,style:p})})),c.updateData(u),this.group.add(c.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){ks(e).dataModel=t}))})),this.markKeep(c),c.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(rK);function sK(e,t,n){var i;i=e?Object(s["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["m"])(Object(s["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new VS(i,n),o=Object(s["H"])(n.get("data"),Object(s["h"])(XX,t));e&&(o=Object(s["n"])(o,Object(s["h"])(JX,e)));var a=eK(!!e,i);return r.initData(o,null,a),r}var lK=aK;function cK(e){e.registerComponentModel(WX),e.registerComponentView(lK),e.registerPreprocessor((function(e){zX(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var uK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(VX),hK=uK,dK=Ir(),pK=function(e,t,n,i){var r,o=e.getData();if(Object(s["t"])(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var l=void 0,c=void 0;if(null!=i.yAxis||null!=i.xAxis)l=t.getAxis(null!=i.yAxis?"y":"x"),c=Object(s["O"])(i.yAxis,i.xAxis);else{var u=KX(i,o,t,e);l=u.valueAxis;var h=eC(o,u.valueDataDim);c=tK(o,h,a)}var d="x"===l.dim?0:1,p=1-d,f=Object(s["d"])(i),g={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,g.coord[p]=1/0;var m=n.get("precision");m>=0&&Object(s["z"])(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[d]=g.coord[d]=c,r=[f,g,{type:a,valueIndex:i.valueIndex,value:c}]}else r=[]}var v=[XX(e,r[0]),XX(e,r[1]),Object(s["m"])({},r[2])];return v[2].type=v[2].type||null,Object(s["I"])(v[2],v[0]),Object(s["I"])(v[2],v[1]),v};function fK(e){return!isNaN(e)&&!isFinite(e)}function gK(e,t,n,i){var r=1-e,o=i.dimensions[e];return fK(t[r])&&fK(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function mK(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(gK(1,n,i,e)||gK(0,n,i,e)))return!0}return JX(e,t[0])&&JX(e,t[1])}function vK(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=ji(s.get("x"),r.getWidth()),c=ji(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,h=e.get(u[0],t),d=e.get(u[1],t);o=a.dataToPoint([h,d])}if(zC(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;fK(e.get(u[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):fK(e.get(u[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];e.setItemLayout(t,o)}var yK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=VX.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=dK(t).from,o=dK(t).to;r.each((function(t){vK(r,t,!0,e,n),vK(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new PN);this.group.add(c.group);var u=bK(r,e,t),h=u.from,d=u.to,p=u.line;dK(t).from=h,dK(t).to=d,t.setData(p);var f=t.get("symbol"),g=t.get("symbolSize"),m=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,r){var o=t.getItemModel(n);vK(t,n,r,e,i);var l=o.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=Fv(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(s["P"])(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:Object(s["P"])(o.get("symbolRotate",!0),m[r?0:1]),symbolSize:Object(s["P"])(o.get("symbolSize"),g[r?0:1]),symbol:Object(s["P"])(o.get("symbol",!0),f[r?0:1]),style:l})}Object(s["t"])(f)||(f=[f,f]),Object(s["t"])(g)||(g=[g,g]),Object(s["t"])(m)||(m=[m,m]),Object(s["t"])(v)||(v=[v,v]),u.from.each((function(e){y(h,e,!0),y(d,e,!1)})),p.each((function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[h.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=h.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(e,"symbolOffset"),fromSymbolRotate:h.getItemVisual(e,"symbolRotate"),fromSymbolSize:h.getItemVisual(e,"symbolSize"),fromSymbol:h.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),c.updateData(p),u.line.eachItemGraphicEl((function(e){ks(e).dataModel=t,e.traverse((function(e){ks(e).dataModel=t}))})),this.markKeep(c),c.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(rK);function bK(e,t,n){var i;i=e?Object(s["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["m"])(Object(s["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new VS(i,n),o=new VS(i,n),a=new VS([],n),l=Object(s["H"])(n.get("data"),Object(s["h"])(pK,t,e,n));e&&(l=Object(s["n"])(l,Object(s["h"])(mK,e)));var c=eK(!!e,i);return r.initData(Object(s["H"])(l,(function(e){return e[0]})),null,c),o.initData(Object(s["H"])(l,(function(e){return e[1]})),null,c),a.initData(Object(s["H"])(l,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var _K=yK;function xK(e){e.registerComponentModel(hK),e.registerComponentView(_K),e.registerPreprocessor((function(e){zX(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(VX),SK=wK,CK=Ir(),kK=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var a=XX(e,r),l=XX(e,o),c=a.coord,u=l.coord;c[0]=Object(s["O"])(c[0],-1/0),c[1]=Object(s["O"])(c[1],-1/0),u[0]=Object(s["O"])(u[0],1/0),u[1]=Object(s["O"])(u[1],1/0);var h=Object(s["J"])([{},a,l]);return h.coord=[a.coord,l.coord],h.x0=a.x,h.y0=a.y,h.x1=l.x,h.y1=l.y,h}};function OK(e){return!isNaN(e)&&!isFinite(e)}function MK(e,t,n,i){var r=1-e;return OK(t[r])&&OK(n[r])}function TK(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return zC(e,"cartesian2d")?!(!n||!i||!MK(1,n,i,e)&&!MK(0,n,i,e))||QX(e,r,o):JX(e,r)||JX(e,o)}function DK(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=ji(s.get(n[0]),r.getWidth()),c=ji(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),h=e.getValues(["x1","y1"],t),d=a.clampData(u),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:u[0]:f[0]=d[0]>p[0]?u[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:u[1]:f[1]=d[1]>p[1]?u[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=e.get(n[0],t),m=e.get(n[1],t),v=[g,m];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(zC(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");g=e.get(n[0],t),m=e.get(n[1],t);OK(g)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):OK(m)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var IK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],AK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=VX.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=Object(s["H"])(IK,(function(r){return DK(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,{group:new Ci});this.group.add(c.group),this.markKeep(c);var u=EK(r,e,t);t.setData(u),u.each((function(t){var n=Object(s["H"])(IK,(function(n){return DK(u,t,n,e,i)})),o=r.getAxis("x").scale,l=r.getAxis("y").scale,c=o.getExtent(),h=l.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],p=[l.parse(u.get("y0",t)),l.parse(u.get("y1",t))];zi(d),zi(p);var f=!(c[0]>d[1]||c[1]p[1]||h[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Ku),RK=jK,zK=s["h"],$K=s["k"],BK=Ci,FK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new BK),this.group.add(this._selectorGroup=new BK),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),l=e.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,l);var c=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),d=Bu(c,u,h),p=this.layoutInner(e,r,d,i,a,l),f=Bu(s["i"]({width:p.width,height:p.height},c),u,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=GG(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var l=this.getContentGroup(),c=s["f"](),u=t.get("selectedMode"),h=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&h.push(e.id)})),$K(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new BK;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(a)[0];if(!c.get(a)){if(p){var f=p.getData(),g=f.getVisual("legendLineStyle")||{},m=f.getVisual("legendIcon"),v=f.getVisual("style"),y=this._createItem(p,a,o,r,t,e,g,v,m,u,i);y.on("click",zK(WK,a,null,i,h)).on("mouseover",zK(GK,p.name,null,i,h)).on("mouseout",zK(UK,p.name,null,i,h)),c.set(a,!0)}else n.eachRawSeries((function(n){if(!c.get(a)&&n.legendVisualProvider){var l=n.legendVisualProvider;if(!l.containName(a))return;var d=l.indexOfName(a),p=l.getItemVisual(d,"style"),f=l.getItemVisual(d,"legendIcon"),g=Object($t["g"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=s["m"](s["m"]({},p),{fill:Object($t["h"])(g,"rgba")}));var m=this._createItem(n,a,o,r,t,e,{},p,f,u,i);m.on("click",zK(WK,null,a,i,h)).on("mouseover",zK(GK,null,a,i,h)).on("mouseout",zK(UK,null,a,i,h)),c.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();$K(e,(function(e){var i=e.type,r=new Cs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);tc(r,{normal:a,emphasis:s},{defaultText:e.title}),Ml(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,l,c,u,h){var d=e.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),g=r.isSelected(t),m=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon");c=y||c||"roundRect";var b=VK(c,i,a,l,d,g,h),_=new BK,x=i.getModel("textStyle");if(!s["w"](e.getLegendIcon)||y&&"inherit"!==y){var w="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;_.add(HK({itemWidth:p,itemHeight:f,icon:c,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else _.add(e.getLegendIcon({itemWidth:p,itemHeight:f,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}));var S="left"===o?p+5:-5,C=o,k=r.get("formatter"),O=t;s["C"](k)&&k?O=k.replace("{name}",null!=t?t:""):s["w"](k)&&(O=k(t));var M=g?x.getTextColor():i.get("inactiveColor");_.add(new Cs({style:ic(x,{text:O,x:S,y:f/2,fill:M,align:C,verticalAlign:"middle"},{inheritColor:M})}));var T=new as({shape:_.getBoundingRect(),invisible:!0}),D=i.getModel("tooltip");return D.get("show")&&jm({el:T,componentModel:r,itemName:t,itemTooltipOption:D.option}),_.add(T),_.eachChild((function(e){e.silent=!0})),T.silent=!u,this.getContentGroup().add(_),Ml(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();zu(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){zu("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:c[p]+=u[f]+d,h[1-p]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[f]=l[f]+d+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+h[1-p]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Of);function VK(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),$K(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Xy(h,a):i.decal,"inherit"===c.fill&&(c.fill=i[r]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity),s(c,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function HK(e){var t=e.icon||"roundRect",n=ay(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function WK(e,t,n,i){UK(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),GK(e,t,n,i)}function qK(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],g=[-d.x,-d.y];t||(g[i]=c[l]);var m=[0,0],v=[-p.x,-p.y],y=s["P"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var b=e.get("pageButtonPosition",!0);"end"===b?v[i]+=n[r]-p[r]:m[i]+=p[r]+y}v[1-i]+=d[o]/2-p[o]/2,c.setPosition(g),u.setPosition(m),h.setPosition(v);var _={x:0,y:0};if(_[r]=f?n[r]:d[r],_[o]=Math.max(d[o],p[o]),_[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],f){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-y,0),x[o]=_[o],u.setClipPath(new as({shape:x})),u.__rectSize=x[r]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&Wl(c,{x:w.contentPosition[0],y:w.contentPosition[1]},f?e:null),this._updatePageInfoView(e,w),_},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;s["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,l=t.pageCount;i&&r&&i.setStyle("text",s["C"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==l?"":l+""):r({current:a,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=iZ[r],a=rZ[r],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=y(c);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=u;++f)v=y(l[f]),(!v&&m.e>g.s+i||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)v=y(l[f]),v&&b(m,v.s)||!(g.i=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(YK),aZ=oZ;function sZ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function lZ(e){N_(JK),e.registerComponentModel(tZ),e.registerComponentView(aZ),sZ(e)}function cZ(e){N_(JK),N_(lZ)}var uZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.inside",t.defaultOption=Ec(xG.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(xG),hZ=uZ,dZ=Ir();function pZ(e,t,n){dZ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function fZ(e,t){for(var n=dZ(e).coordSysRecordMap,i=n.keys(),r=0;ri[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function _Z(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=dZ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(s["f"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=vG(e);Object(s["k"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,mZ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(s["f"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=bZ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),Jm(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else gZ(i,e)}))}))}var xZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return o(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),pZ(i,t,{pan:Object(s["c"])(wZ.pan,this),zoom:Object(s["c"])(wZ.zoom,this),scrollMove:Object(s["c"])(wZ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){fZ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(kG),wZ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=CZ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Zj(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:SZ((function(e,t,n,i,r,o){var a=CZ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:SZ((function(e,t,n,i,r,o){var a=CZ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function SZ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return Zj(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var CZ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},kZ=xZ;function OZ(e){RG(e),e.registerComponentModel(hZ),e.registerComponentView(kZ),_Z(e)}var MZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ec(xG.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(xG),TZ=MZ,DZ=as,IZ=7,AZ=1,EZ=30,PZ=7,LZ="horizontal",NZ="vertical",jZ=5,RZ=["line","bar","candlestick","scatter"],zZ={easing:"cubicOut",duration:100,delay:0},$Z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return o(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(s["c"])(this._onBrush,this),this._onBrushEnd=Object(s["c"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),Jm(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Qm(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ci;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?PZ:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===LZ?{right:o.width-r.x-r.width,top:o.height-EZ-IZ-i,width:r.width,height:EZ}:{right:IZ,top:r.y,width:EZ,height:r.height},l=qu(e.option);Object(s["k"])(["right","top","width","height"],(function(e){"ph"===l[e]&&(l[e]=a[e])}));var c=Bu(l,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===NZ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=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!==LZ||r?n===LZ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==NZ||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=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new DZ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new DZ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(s["c"])(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)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=r.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=p[1]/(r.count()-1),v=0,y=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:Ni(e,c,d,!0);n&&!h&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new Ci,i=new Tg({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Ag({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();Object(s["k"])(a,(function(e){if(!n&&!(!0!==t&&Object(s["r"])(RZ,e.get("type"))<0)){var a,l=i.getComponent(gG(r),o).axis,c=BZ(r),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(a=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),n={thisAxis:l,series:e,thisDim:r,otherDim:c,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,c=a.get("borderRadius")||0,u=a.get("brushSelect"),h=t.filler=new DZ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new DZ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:c},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:AZ,fill:"rgba(0,0,0,0)"}})),Object(s["k"])([0,1],(function(t){var o=a.get("handleIcon");!iy[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var l=ay(o,-1,0,2,2,null,!0);l.attr({cursor:FZ(this._orient),draggable:!0,drift:Object(s["c"])(this._onDragMove,this,t),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1),z2:5});var c=l.getBoundingRect(),u=a.get("handleSize");this._handleHeight=ji(u,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Ml(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),r.add(n[t]=l);var d=a.getModel("textStyle");e.add(i[t]=new Cs({silent:!0,invisible:!0,style:ic(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=h;if(u){var p=ji(a.get("moveHandleSize"),o[1]),f=t.moveHandle=new as({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),g=.8*p,m=t.moveHandleIcon=ay(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));d=t.moveZone=new as({invisible:!0,shape:{y:o[1]-v,height:p+v}}),d.on("mouseover",(function(){l.enterEmphasis(f)})).on("mouseout",(function(){l.leaveEmphasis(f)})),r.add(f),r.add(m),r.add(d)}d.attr({draggable:!0,cursor:FZ(this._orient),drift:Object(s["c"])(this._onDragMove,this,"all"),ondragstart:Object(s["c"])(this._showDataInfo,this,!0),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ni(e[0],[0,100],t,!0),Ni(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Zj(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Ni(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ni(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=zi([Ni(i[0],r,a,!0),Ni(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=zi(n.slice()),r=this._size;Object(s["k"])([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.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]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,l=[0,i[0],i[1],r[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new be(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=zi([Ni(n.x,r,o,!0),Ni(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ie(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new DZ({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(e,t),l=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?zZ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=vG(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(kG);function BZ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function FZ(e){return"vertical"===e?"ns-resize":"ew-resize"}var VZ=$Z;function HZ(e){e.registerComponentModel(TZ),e.registerComponentView(VZ),RG(e)}function WZ(e){N_(OZ),N_(HZ)}var qZ={get:function(e,t,n){var i=s["d"]((GZ[e]||{})[t]);return n&&s["t"](i)?i[i.length-1]:i}},GZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},UZ=qZ,YZ=rL.mapVisual,XZ=rL.eachVisual,KZ=s["t"],ZZ=s["k"],JZ=zi,QZ=Ni,eJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&zY(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=s["c"](e,this),this.controllerVisuals=RY(this.option.controller,t,e),this.targetVisuals=RY(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=lr(e),t},t.prototype.eachTargetSeries=function(e,t){s["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,l=r.formatter;n=n||["<",">"],s["t"](e)&&(e=e.slice(),i=!0);var c=t?e:i?[u(e[0]),u(e[1])]:u(e);return s["C"](l)?l.replace("{value}",i?c[0]:c).replace("{value2}",i?c[1]:c):s["w"](l)?i?l(e[0],e[1]):l(e):i?e[0]===a[0]?n[0]+" "+c[1]:e[1]===a[1]?n[1]+" "+c[0]:c[0]+" - "+c[1]:c;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=JZ([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});s["I"](i,n),s["I"](r,n);var o=this.isCategory();function a(n){KZ(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function l(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},ZZ(i,(function(e,t){if(rL.isValidType(t)){var n=UZ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";ZZ(this.stateList,(function(r){var l=this.itemSize,c=e[r];c||(c=e[r]={color:o?i:[i]}),null==c.symbol&&(c.symbol=t&&s["d"](t)||(o?a:[a])),null==c.symbolSize&&(c.symbolSize=n&&s["d"](n)||(o?l[0]:[l[0],l[0]])),c.symbol=YZ(c.symbol,(function(e){return"none"===e?a:e}));var u=c.symbolSize;if(null!=u){var h=-1/0;XZ(u,(function(e){e>h&&(h=e)})),c.symbolSize=YZ(u,(function(e){return QZ(e,[0,h],[0,l[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),l.call(this,i,"inRange","outOfRange"),c.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ku),tJ=eJ,nJ=[20,140],iJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=nJ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=nJ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):s["t"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),s["k"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=zi((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=rJ(this,"outOfRange",this.getExtent()),n=rJ(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;ae[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Ci("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();dJ([0,1],(function(l){var c=r[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=hJ(e[l],[0,a[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/a[0],c.x=a[0]-h/2;var d=Cm(n.handleLabelPoints[l],Sm(c,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",u),d=this.getControllerVisual(e,"symbolSize"),p=hJ(e,o,s,!0),f=a[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=f;var m=Cm(l.indicatorLabelPoint,Sm(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:f,y:p,style:{fill:h}},w={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(x,S),v.animateTo(w,S)}else c.attr(x),v.attr(w);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var k=0;kr[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,h=[];(t||_J(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=Tr(u,h);this._dispatchHighDown("downplay",uJ(d[0],n)),this._dispatchHighDown("highlight",uJ(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Gv(e.target,(function(e){var n=ks(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function OJ(e,t,n,i){for(var r=t.targetVisuals[i],o=rL.prepareVisualTypes(r),a={color:Fv(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(SJ,CJ),Object(s["k"])(kJ,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(TJ))}function EJ(e){e.registerComponentModel(oJ),e.registerComponentView(wJ),AJ(e)}var PJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],LJ[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=s["d"](r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=s["H"](this._pieceList,(function(e){return e=s["d"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=rL.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}s["k"](t.pieces,(function(e){s["k"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),s["k"](n,(function(e,n){var i=!1;s["k"](this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&s["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=UZ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,s["k"](i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;s["k"](i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=s["d"](e)},t.prototype.getValueState=function(e){var t=rL.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=rL.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,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],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return s["k"](r,(function(e){var t=e.interval;t&&(t[0]>a&&l([a,t[0]],"outOfRange"),l(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Ec(tJ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tJ),LJ={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,l=i[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function NJ(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var jJ=PJ,RJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),l=t.itemSize,c=this._getViewData(),u=c.endsText,h=s["O"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],l,h,a),s["k"](c.viewPieceList,(function(i){var c=i.piece,u=new Ci;u.onclick=s["c"](this._onItemClick,this,c),this._enableHoverLink(u,i.indexInModelPieceList);var d=t.getRepresentValue(c);if(this._createItemSymbol(u,d,[0,0,l[0],l[1]]),h){var p=this.visualMapModel.getValueState(d);u.add(new Cs({style:{x:"right"===a?-n:l[0]+n,y:l[1]/2,text:c.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],l,h,a),zu(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:uJ(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return cJ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Ci,a=this.visualMapModel.textStyleModel;o.add(new Cs({style:ic(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=s["H"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(ay(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=s["d"](n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,s["k"](r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(sJ),zJ=RJ;function $J(e){e.registerComponentModel(jJ),e.registerComponentView(zJ),AJ(e)}function BJ(e){N_(EJ),N_($J)}var FJ={label:{enabled:!0},decal:{show:!1}},VJ=Ir(),HJ={};function WJ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=s["d"](FJ);s["I"](i.label,e.getLocaleModel().get("aria"),!1),s["I"](n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=s["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),VJ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(s["w"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Ch(t.ecModel,t.name,HJ,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},l=VJ(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var c=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",s=Ch(t.ecModel,r,l,c),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,s))}))}}function u(e,t){var n=e?s["m"](s["m"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=s["i"](r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,h=e.getSeriesCount(),d=r.get(["data","maxCount"])||10,p=r.get(["series","maxCount"])||10,f=Math.min(h,p);if(!(h<1)){var g=l();if(g){var m=r.get(["general","withTitle"]);u=a(m,{title:g})}else u=r.get(["general","withoutTitle"]);var v=[],y=h>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(y,{seriesCount:h}),e.eachSeries((function(e,t){if(t1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:c(e.subType)});var s=e.getData();if(s.count()>d){var l=r.get(["data","partialData"]);n+=a(l,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var u=r.get(["data","separator","middle"]),p=r.get(["data","separator","end"]),g=[],m=0;m":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YJ=function(){function e(e){var t=this._condVal=Object(s["C"])(e)?new RegExp(e):Object(s["B"])(e)?e:null;if(null==t){var n="";0,Eh(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(s["C"])(t)?this._condVal.test(e):!!Object(s["z"])(t)&&this._condVal.test(e+"")},e}(),XJ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),KJ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function f(e,n,i,r){fQ(e,i)&&fQ(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=nC:M2&&l.push(t),l}function mQ(e,t,n,i,r,o,a,s,l,c){if(fQ(e,n)&&fQ(t,i)&&fQ(r,a)&&fQ(o,s))l.push(a,s);else{var u=2/c,h=u*u,d=a-e,p=s-t,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-e,m=i-t,v=r-a,y=o-s,b=g*g+m*m,_=v*v+y*y;if(b=0&&C=0)l.push(a,s);else{var k=[],O=[];kt(e,n,r,a,.5,k),kt(t,i,o,s,.5,O),mQ(k[0],O[0],k[1],O[1],k[2],O[2],k[3],O[3],l,c),mQ(k[4],O[4],k[5],O[5],k[6],O[6],k[7],O[7],l,c)}}}}function vQ(e,t){var n=gQ(e),i=[];t=t||1;for(var r=0;r0)for(c=0;cMath.abs(c),h=yQ([l,c],u?0:1,t),d=(u?s:c)/h.length,p=0;pr,a=yQ([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=e[s]/a.length,d=0;d1?null:new be(g*l+e,g*c+t)}function SQ(e,t,n){var i=new be;be.sub(i,n,t),i.normalize();var r=new be;be.sub(r,e,t);var o=r.dot(i);return o}function CQ(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function kQ(e,t,n){for(var i=e.length,r=[],o=0;oa?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),kQ(t,c,u)}function MQ(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);MQ(e,o[0],r,i),MQ(e,o[1],n-r,i)}return i}function TQ(e,t){for(var n=[],i=0;i0)for(var x=i/n,w=-i/2;w<=i/2;w+=x){var S=Math.sin(w),C=Math.cos(w),k=0;for(b=0;b0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function UQ(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(s["H"])(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=Object(s["H"])(o,(function(o,a){return{cp:o,z:GQ(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function YQ(e){return AQ(e.path,e.count)}function XQ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function KQ(e,t,n){var i=[];function r(e){for(var t=0;t=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var e0={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i0){var l,c,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);JQ(e)&&(l=e,c=t),JQ(t)&&(l=t,c=e);for(var d=l?l===e:e.length>t.length,p=l?QQ(c,l):QQ(d?t:e,[d?e:t]),f=0,g=0;gi0))for(var i=n.getIndices(),r=o0(n),o=0;o0&&r.group.traverse((function(e){e instanceof Ha&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function p0(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function f0(e){return Object(s["t"])(e)?e.sort().join(","):e}function g0(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function m0(e,t){var n=Object(s["f"])(),i=Object(s["f"])(),r=Object(s["f"])();return Object(s["k"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],l=p0(t),c=f0(l);i.set(c,{dataGroupId:o,data:a}),Object(s["t"])(l)&&Object(s["k"])(l,(function(e){r.set(e,{key:c,dataGroupId:o,data:a})}))})),Object(s["k"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),a=p0(e),l=f0(a),c=i.get(l);if(c)n.set(l,{oldSeries:[{dataGroupId:c.dataGroupId,divide:g0(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:g0(o),data:o}]});else if(Object(s["t"])(a)){0;var u=[];Object(s["k"])(a,(function(e){var t=i.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:g0(t.data),data:t.data})})),u.length&&n.set(l,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:g0(o)}]})}else{var h=r.get(a);if(h){var d=n.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:g0(h.data)}],newSeries:[]},n.set(h.key,d)),d.newSeries.push({dataGroupId:t,data:o,divide:g0(o)})}}}})),n}function v0(e,t){for(var n=0;n=0&&r.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:g0(t.oldData[n]),dim:e.dimension})})),Object(s["k"])(lr(e.to),(function(e){var i=v0(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:g0(r),dim:e.dimension})}})),r.length>0&&o.length>0&&d0(r,o,i)}function b0(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(s["k"])(lr(n.seriesTransition),(function(e){Object(s["k"])(lr(e.to),(function(e){for(var t=n.updatedSeries,i=0;il)r.f(e,n=i[l++],t[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"393a":function(e,t,n){"use strict";var i=n("e444"),r=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),l=n("26dd"),c=n("92f0"),u=n("ce7a"),h=n("cc15")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,y,b,_){l(n,t,v);var x,w,S,C=function(e){if(!d&&e in T)return T[e];switch(e){case f:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=y==g,M=!1,T=e.prototype,D=T[h]||T[p]||y&&T[y],I=D||C(y),A=y?O?C("entries"):I:void 0,E="Array"==t&&T.entries||D;if(E&&(S=u(E.call(new e)),S!==Object.prototype&&S.next&&(c(S,k,!0),i||"function"==typeof S[h]||a(S,h,m))),O&&D&&D.name!==g&&(M=!0,I=function(){return D.call(this)}),i&&!_||!d&&!M&&T[h]||a(T,h,I),s[t]=I,s[k]=m,y)if(x={values:O?I:C(g),keys:b?I:C(f),entries:A},_)for(w in x)w in T||o(T,w,x[w]);else r(r.P+r.F*(d||M),t,x);return x}},"39ad":function(e,t,n){var i=n("6ca1"),r=n("d16a"),o=n("9d11");e.exports=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c4e":function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&i(e)?p(c(e),e,t):e}function h(e,t,n){var r=e.slice();return t.forEach((function(t,o){"undefined"===typeof r[o]?r[o]=u(t,n):i(t)?r[o]=p(e[o],t,n):-1===e.indexOf(t)&&r.push(u(t,n))})),r}function d(e,t,n){var r={};return i(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(o){i(t[o])&&e[o]?r[o]=p(e[o],t[o],n):r[o]=u(t[o],n)})),r}function p(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),o=n||{arrayMerge:h},a=i===r;if(a){if(i){var s=o.arrayMerge||h;return s(e,t,n)}return d(e,t,n)}return u(t,n)}p.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return p(e,n,t)}))};var f=p;e.exports=f},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),o=n("7dd0"),a="String Iterator",s=r.set,l=r.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3ce4":function(e,t,n){"use strict";var i=n("1020"),r=n("073e");t.highlight=a,t.highlightAuto=s,t.registerLanguage=l,t.listLanguages=c,t.registerAlias=u,h.prototype.addText=f,h.prototype.addKeyword=d,h.prototype.addSublanguage=p,h.prototype.openNode=g,h.prototype.closeNode=m,h.prototype.closeAllNodes=y,h.prototype.finalize=y,h.prototype.toHTML=v;var o="hljs-";function a(e,t,n){var a,s=i.configure({}),l=n||{},c=l.prefix;if("string"!==typeof e)throw r("Expected `string` for name, got `%s`",e);if(!i.getLanguage(e))throw r("Unknown language: `%s` is not registered",e);if("string"!==typeof t)throw r("Expected `string` for value, got `%s`",t);if(null!==c&&void 0!==c||(c=o),i.configure({__emitter:h,classPrefix:c}),a=i.highlight(t,{language:e,ignoreIllegals:!0}),i.configure(s||{}),a.errorRaised)throw a.errorRaised;return{relevance:a.relevance,language:a.language,value:a.emitter.rootNode.children}}function s(e,t){var n,s,l,c,u=t||{},h=u.subset||i.listLanguages(),d=u.prefix,p=h.length,f=-1;if(null!==d&&void 0!==d||(d=o),"string"!==typeof e)throw r("Expected `string` for value, got `%s`",e);s={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};while(++fs.relevance&&(s=l),l.relevance>n.relevance&&(s=n,n=l));return s.language&&(n.secondBest=s),n}function l(e,t){i.registerLanguage(e,t)}function c(){return i.listLanguages()}function u(e,t){var n,r=e;for(n in t&&(r={},r[e]=t),r)i.registerAliases(r[n],{languageName:n})}function h(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function d(e,t){this.openNode(t),this.addText(e),this.closeNode()}function p(e,t){var n=this.stack,i=n[n.length-1],r=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:r}:r;i.children=i.children.concat(o)}function f(e){var t,n,i=this.stack;""!==e&&(t=i[i.length-1],n=t.children[t.children.length-1],n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e}))}function g(e){var t=this.stack,n=this.options.classPrefix+e,i=t[t.length-1],r={type:"element",tagName:"span",properties:{className:[n]},children:[]};i.children.push(r),t.push(r)}function m(){this.stack.pop()}function v(){return""}function y(){}},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t){e.exports={}},4010:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i=n("6dd8"),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var a="undefined"===typeof window,s=function(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var o=r,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"408c":function(e,t,n){var i=n("2b3e"),r=function(){return i.Date.now()};e.exports=r},"417f":function(e,t,n){"use strict";t.__esModule=!0;var i=n("2b0e"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",c=void 0,u=0;function h(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return c=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,c)}))})),t.default={bind:function(e,t,n){s.push(e);var i=u++;e[l]={id:i,documentHandler:h(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=h(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function h(e,t,n){return e+(t-e)*n}function d(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var f=new i["a"](20),g=null;function m(e,t){g&&p(g,t),g=f.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=f.get(e);if(n)return p(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in r)return p(t,r[i]),m(e,t),t;var o=i.length;if("#"!==i.charAt(0)){var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var u=i.substr(0,a),h=i.substr(a+1,s-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==h.length)return 3===h.length?d(t,+h[0],+h[1],+h[2],1):d(t,0,0,0,1);g=c(h.pop());case"rgb":return h.length>=3?(d(t,l(h[0]),l(h[1]),l(h[2]),3===h.length?g:c(h[3])),m(e,t),t):void d(t,0,0,0,1);case"hsla":return 4!==h.length?void d(t,0,0,0,1):(h[3]=c(h[3]),y(h,t),m(e,t),t);case"hsl":return 3!==h.length?void d(t,0,0,0,1):(y(h,t),m(e,t),t);default:return}}d(t,0,0,0,1)}else{if(4===o||5===o){var v=parseInt(i.slice(1,4),16);return v>=0&&v<=4095?(d(t,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===o?parseInt(i.slice(4),16)/15:1),m(e,t),t):void d(t,0,0,0,1)}if(7===o||9===o){v=parseInt(i.slice(1,7),16);return v>=0&&v<=16777215?(d(t,(16711680&v)>>16,(65280&v)>>8,255&v,9===o?parseInt(i.slice(7),16)/255:1),m(e,t),t):void d(t,0,0,0,1)}}}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=c(e[1]),r=c(e[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return t=t||[],d(t,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function b(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?t=d-h:r===s?t=1/3+u-d:o===s&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,c];return null!=e[3]&&p.push(e[3]),p}}function _(e,t){var n=v(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return k(n,4===n.length?"rgba":"rgb")}}function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=t[r],c=t[a],u=i-r;return n[0]=o(h(l[0],c[0],u)),n[1]=o(h(l[1],c[1],u)),n[2]=o(h(l[2],c[2],u)),n[3]=s(h(l[3],c[3],u)),n}}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(t[r]),c=v(t[a]),u=i-r,d=k([o(h(l[0],c[0],u)),o(h(l[1],c[1],u)),o(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return n?{color:d,leftIndex:r,rightIndex:a,value:i}:d}}function S(e,t,n,i){var r=v(e);if(e)return r=b(r),null!=t&&(r[0]=a(t)),null!=n&&(r[1]=c(n)),null!=i&&(r[2]=c(i)),k(y(r),"rgba")}function C(e,t){var n=v(e);if(n&&null!=t)return n[3]=s(t),k(n,"rgba")}function k(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function O(e,t){var n=v(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}},"41f8":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=o;var r=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))&&(0,r.hasOwn)(e,"componentOptions")}},"428f":function(e,t,n){var i=n("da84");e.exports=i},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4416:function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},"442c":function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return P})),n.d(t,"g",(function(){return I}));var i=n("b923"),r=n("6f27"),o=n("6ffb");const a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let a=s(e,n);if(!a)return!1;let l=h(a);if(!l){let n=a.blockRange(),r=n&&Object(i["k"])(n);return null!=r&&(t&&t(e.tr.lift(n,r).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&O(e,l,t))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(i["l"])(e.doc,a.before(),a.after(),r["Slice"].empty);if(n&&n.slice.size{let{$head:i,empty:r}=e.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;a=h(i)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let a=d(e,n);if(!a)return!1;let s=g(a);if(!s)return!1;let l=s.nodeAfter;if(O(e,s,t))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(i["l"])(e.doc,a.before(),a.after(),r["Slice"].empty);if(n&&n.slice.size{let{$head:i,empty:r}=e.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),a=o&&Object(i["k"])(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)},v=(e,t)=>{let{$head:n,$anchor:i}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(i))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function y(e){for(let t=0;t{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),a=n.indexAfter(-1),s=y(r.contentMatchAt(a));if(!s||!r.canReplaceWith(a,a,s))return!1;if(t){let i=n.after(),r=e.tr.replaceWith(i,i,s.createAndFill());r.setSelection(o["Selection"].near(r.doc.resolve(i),1)),t(r.scrollIntoView())}return!0},_=(e,t)=>{let n=e.selection,{$from:i,$to:r}=n;if(n instanceof o["AllSelection"]||i.parent.inlineContent||r.parent.inlineContent)return!1;let a=y(r.parent.contentMatchAt(r.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!i.parentOffset&&r.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Object(i["g"])(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Object(i["k"])(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};function w(e){return(t,n)=>{let{$from:r,$to:a}=t.selection;if(t.selection instanceof o["NodeSelection"]&&t.selection.node.isBlock)return!(!r.parentOffset||!Object(i["g"])(t.doc,r.pos))&&(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=t.tr;(t.selection instanceof o["TextSelection"]||t.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==r.depth?null:y(r.node(-1).contentMatchAt(r.indexAfter(-1))),u=e&&e(a.parent,s),h=u?[u]:s&&c?[{type:c}]:void 0,d=Object(i["g"])(l.doc,l.mapping.map(r.pos),1,h);if(h||d||!Object(i["g"])(l.doc,l.mapping.map(r.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),d=!0),d&&(l.split(l.mapping.map(r.pos),1,h),!s&&!r.parentOffset&&r.parent.type!=c)){let e=l.mapping.map(r.before()),t=l.doc.resolve(e);c&&r.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&l.setNodeMarkup(l.mapping.map(r.before()),c)}n(l.scrollIntoView())}return!0}}const S=w(),C=(e,t)=>(t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0);function k(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(i["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0))}function O(e,t,n){let a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(k(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,s=r["Fragment"].empty;for(let e=a.length-1;e>=0;e--)s=r["Fragment"].from(a[e].create(null,s));s=r["Fragment"].from(l.copy(s));let c=e.tr.step(new i["b"](t.pos-1,o,t.pos,o,new r["Slice"](s,1,0),a.length,!0)),h=o+2*a.length;Object(i["f"])(c.doc,h)&&c.join(h),n(c.scrollIntoView())}return!0}let d=o["Selection"].findFrom(t,1),p=d&&d.$from.blockRange(d.$to),f=p&&Object(i["k"])(p);if(null!=f&&f>=t.depth)return n&&n(e.tr.lift(p,f).scrollIntoView()),!0;if(h&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=r["Fragment"].empty;for(let e=a.length-1;e>=0;e--)o=r["Fragment"].from(a[e].copy(o));let s=e.tr.step(new i["b"](t.pos-a.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new r["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function M(e){return function(t,n){let i=t.selection,r=e<0?i.$from:i.$to,a=r.depth;while(r.node(a).isInline){if(!a)return!1;a--}return!!r.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?r.start(a):r.end(a)))),!0)}}const T=M(-1),D=M(1);function I(e,t=null){return function(n,r){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(i["i"])(s,e,t);return!!l&&(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0)}}function A(e,t=null){return function(n,i){let r=!1;for(let o=0;o{if(r)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)r=!0;else{let t=n.doc.resolve(o),i=t.index();r=t.parent.canReplaceWith(i,i+1,e)}})}if(!r)return!1;if(i){let r=n.tr;for(let i=0;i{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}function P(e,t=null){return function(n,i){let{empty:r,$cursor:o,ranges:a}=n.selection;if(r&&!o||!E(n.doc,a,e))return!1;if(i)if(o)e.isInSet(n.storedMarks||o.marks())?i(n.tr.removeStoredMark(e)):i(n.tr.addStoredMark(e.create(t)));else{let r=!1,o=n.tr;for(let t=0;!r&&t\n \n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},M=O,T=Object(b["a"])(M,x,w,!1,null,null,null);T.options.__file="packages/cascader-panel/src/cascader-menu.vue";var D=T.exports,I=n(21),A=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i1?i-1:0),o=1;o0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},A(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(I["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),N=L;function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var R=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},z=function(){function e(t,n){j(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(g["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new N(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new N(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(g["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:R(this.nodes,e)},e.prototype.getNodeByValue=function(e){if(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(g["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null}return null},e}(),$=z,B=n(9),F=n.n(B),V=n(40),H=n.n(V),W=n(31),q=n.n(W),G=Object.assign||function(e){for(var t=1;t0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");q()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return Object(g["isEmpty"])(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},te=ee,ne=Object(b["a"])(te,i,r,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var ie=ne.exports;ie.install=function(e){e.component(ie.name,ie)};t["default"]=ie},6:function(e,t){e.exports=n("6b7c")},9:function(e,t){e.exports=n("7f4d")}})},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[a])?t:r(n)}},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n("f0d9"),r=h(i),o=n("2b0e"),a=h(o),s=n("3c4e"),l=h(s),c=n("9d7e"),u=h(c);function h(e){return e&&e.__esModule?e:{default:e}}var d=(0,u.default)(a.default),p=r.default,f=!1,g=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return f||(f=!0,a.default.locale(a.default.config.lang,(0,l.default)(p,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(e,t){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=p,o=0,a=i.length;o0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(c=c||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});var p=function(){if(!r.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=p();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=d},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4ccc":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Du})),n.d(t,"b",(function(){return Zd})),n.d(t,"c",(function(){return Eu})),n.d(t,"d",(function(){return iu})),n.d(t,"e",(function(){return zf})),n.d(t,"f",(function(){return Mu})),n.d(t,"g",(function(){return Tp})),n.d(t,"h",(function(){return Rd})),n.d(t,"i",(function(){return Np})),n.d(t,"j",(function(){return Qd})),n.d(t,"k",(function(){return Au})),n.d(t,"l",(function(){return Pu})),n.d(t,"m",(function(){return mu})),n.d(t,"n",(function(){return tp})),n.d(t,"o",(function(){return Yd})),n.d(t,"t",(function(){return Ap})),n.d(t,"u",(function(){return pp})),n.d(t,"v",(function(){return Jd}));var i=n("2b0e"),r=n("cd42");n.d(t,"s",(function(){return r["l"]}));var o=n("f23d");n.d(t,"p",(function(){return o["p"]})),n.d(t,"q",(function(){return o["q"]})),n.d(t,"r",(function(){return o["r"]}));var a=n("6ffb"),s=n("986d"),l=n("299c"),c=n.n(l),u=n("eedf"),h=n.n(u),d=n("dcdc"),p=n.n(d),f=n("df33"),g=n.n(f),m=n("18ff"),v=n.n(m),y=n("defb"),b=n.n(y),_=n("b370"),x=n.n(_),w=n("6ac9"),S=n.n(w),C=n("89a9"),k=n.n(C),O=n("6ed5"),M=n.n(O),T=n("6f27"),D=n("fc88"),I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e,t){return e(t={exports:{}},t.exports),t.exports}function P(e){return e&&e.default||e}var L=function(e){return e&&e.Math==Math&&e},N=L("object"==typeof globalThis&&globalThis)||L("object"==typeof window&&window)||L("object"==typeof self&&self)||L("object"==typeof I&&I)||Function("return this")(),j=function(e){try{return!!e()}catch(e){return!0}},R=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),z={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,B={f:$&&!z.call({1:2},1)?function(e){var t=$(this,e);return!!t&&t.enumerable}:z},F=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V={}.toString,H=function(e){return V.call(e).slice(8,-1)},W="".split,q=j((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==H(e)?W.call(e,""):Object(e)}:Object,G=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},U=function(e){return q(G(e))},Y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},X=function(e,t){if(!Y(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!Y(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!Y(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!Y(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},K={}.hasOwnProperty,Z=function(e,t){return K.call(e,t)},J=N.document,Q=Y(J)&&Y(J.createElement),ee=function(e){return Q?J.createElement(e):{}},te=!R&&!j((function(){return 7!=Object.defineProperty(ee("div"),"a",{get:function(){return 7}}).a})),ne=Object.getOwnPropertyDescriptor,ie={f:R?ne:function(e,t){if(e=U(e),t=X(t,!0),te)try{return ne(e,t)}catch(e){}if(Z(e,t))return F(!B.f.call(e,t),e[t])}},re=function(e){if(!Y(e))throw TypeError(String(e)+" is not an object");return e},oe=Object.defineProperty,ae={f:R?oe:function(e,t,n){if(re(e),t=X(t,!0),re(n),te)try{return oe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},se=R?function(e,t,n){return ae.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},le=function(e,t){try{se(N,e,t)}catch(n){N[e]=t}return t},ce=N["__core-js_shared__"]||le("__core-js_shared__",{}),ue=Function.toString;"function"!=typeof ce.inspectSource&&(ce.inspectSource=function(e){return ue.call(e)});var he,de,pe,fe=ce.inspectSource,ge=N.WeakMap,me="function"==typeof ge&&/native code/.test(fe(ge)),ve=E((function(e){(e.exports=function(e,t){return ce[e]||(ce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ye=0,be=Math.random(),_e=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ye+be).toString(36)},xe=ve("keys"),we=function(e){return xe[e]||(xe[e]=_e(e))},Se={},Ce=N.WeakMap;if(me){var ke=new Ce,Oe=ke.get,Me=ke.has,Te=ke.set;he=function(e,t){return Te.call(ke,e,t),t},de=function(e){return Oe.call(ke,e)||{}},pe=function(e){return Me.call(ke,e)}}else{var De=we("state");Se[De]=!0,he=function(e,t){return se(e,De,t),t},de=function(e){return Z(e,De)?e[De]:{}},pe=function(e){return Z(e,De)}}var Ie,Ae,Ee={set:he,get:de,has:pe,enforce:function(e){return pe(e)?de(e):he(e,{})},getterFor:function(e){return function(t){var n;if(!Y(t)||(n=de(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Pe=E((function(e){var t=Ee.get,n=Ee.enforce,i=String(String).split("String");(e.exports=function(e,t,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof t||Z(r,"name")||se(r,"name",t),n(r).source=i.join("string"==typeof t?t:"")),e!==N?(a?!l&&e[t]&&(s=!0):delete e[t],s?e[t]=r:se(e,t,r)):s?e[t]=r:le(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||fe(this)}))})),Le=N,Ne=function(e){return"function"==typeof e?e:void 0},je=function(e,t){return arguments.length<2?Ne(Le[e])||Ne(N[e]):Le[e]&&Le[e][t]||N[e]&&N[e][t]},Re=Math.ceil,ze=Math.floor,$e=function(e){return isNaN(e=+e)?0:(e>0?ze:Re)(e)},Be=Math.min,Fe=function(e){return e>0?Be($e(e),9007199254740991):0},Ve=Math.max,He=Math.min,We=function(e,t){var n=$e(e);return n<0?Ve(n+t,0):He(n,t)},qe=function(e){return function(t,n,i){var r,o=U(t),a=Fe(o.length),s=We(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Ge={includes:qe(!0),indexOf:qe(!1)},Ue=Ge.indexOf,Ye=function(e,t){var n,i=U(e),r=0,o=[];for(n in i)!Z(Se,n)&&Z(i,n)&&o.push(n);for(;t.length>r;)Z(i,n=t[r++])&&(~Ue(o,n)||o.push(n));return o},Xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ke=Xe.concat("length","prototype"),Ze={f:Object.getOwnPropertyNames||function(e){return Ye(e,Ke)}},Je={f:Object.getOwnPropertySymbols},Qe=je("Reflect","ownKeys")||function(e){var t=Ze.f(re(e)),n=Je.f;return n?t.concat(n(e)):t},et=function(e,t){for(var n=Qe(t),i=ae.f,r=ie.f,o=0;o=74)&&(Ie=xt.match(/Chrome\/(\d+)/))&&(Ae=Ie[1]);var kt=Ae&&+Ae,Ot=yt("species"),Mt=function(e){return kt>=51||!j((function(){var t=[];return(t.constructor={})[Ot]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Tt=yt("isConcatSpreadable"),Dt=kt>=51||!j((function(){var e=[];return e[Tt]=!1,e.concat()[0]!==e})),It=Mt("concat"),At=function(e){if(!Y(e))return!1;var t=e[Tt];return void 0!==t?!!t:ut(e)};ct({target:"Array",proto:!0,forced:!Dt||!It},{concat:function(e){var t,n,i,r,o,a=ht(this),s=_t(a,0),l=0;for(t=-1,i=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");dt(s,l++,o)}return s.length=l,s}});var Et,Pt=Object.keys||function(e){return Ye(e,Xe)},Lt=R?Object.defineProperties:function(e,t){re(e);for(var n,i=Pt(t),r=i.length,o=0;r>o;)ae.f(e,n=i[o++],t[n]);return e},Nt=je("document","documentElement"),jt=we("IE_PROTO"),Rt=function(){},zt=function(e){return"